2013-11-06 15:13:21 +00:00
|
|
|
= render "home_panel"
|
2013-10-21 10:05:20 +00:00
|
|
|
|
2013-03-06 20:56:48 +00:00
|
|
|
.row
|
2014-01-06 12:05:39 +00:00
|
|
|
.col-md-9
|
2013-04-19 18:06:53 +00:00
|
|
|
= render "events/event_last_push", event: @last_push
|
2013-08-26 13:30:03 +00:00
|
|
|
= render 'shared/event_filter'
|
2013-06-04 13:35:08 +00:00
|
|
|
.content_list
|
2014-02-05 18:30:57 +00:00
|
|
|
= spinner
|
2014-01-06 12:05:39 +00:00
|
|
|
.col-md-3.project-side.hidden-sm
|
2013-10-21 10:05:20 +00:00
|
|
|
.clearfix
|
2013-12-18 13:02:31 +00:00
|
|
|
- if @project.archived?
|
2014-03-24 13:10:21 +00:00
|
|
|
.alert.alert-warning
|
|
|
|
%h4
|
2013-12-18 13:02:31 +00:00
|
|
|
%i.icon-warning-sign
|
|
|
|
Archived project!
|
|
|
|
%p Repository is read-only
|
|
|
|
|
|
|
|
|
2013-10-21 10:05:20 +00:00
|
|
|
- if @project.forked_from_project
|
|
|
|
.alert.alert-success
|
2013-11-12 10:56:20 +00:00
|
|
|
%i.icon-code-fork.project-fork-icon
|
2013-10-21 10:05:20 +00:00
|
|
|
Forked from:
|
2013-11-12 10:56:20 +00:00
|
|
|
%br
|
2013-10-21 10:05:20 +00:00
|
|
|
= link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project)
|
|
|
|
- unless @project.empty_repo?
|
|
|
|
- if current_user && can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace
|
|
|
|
- if current_user.already_forked?(@project)
|
|
|
|
= link_to project_path(current_user.fork_of(@project)), class: 'btn btn-block' do
|
2013-11-12 10:56:20 +00:00
|
|
|
%i.icon-compass
|
|
|
|
Go to fork
|
2013-10-21 10:05:20 +00:00
|
|
|
- else
|
|
|
|
= link_to fork_project_path(@project), title: "Fork", class: "btn btn-block", method: "POST" do
|
|
|
|
%i.icon-code-fork
|
|
|
|
Fork repository
|
2013-03-06 20:56:48 +00:00
|
|
|
|
2013-10-21 10:05:20 +00:00
|
|
|
- if can? current_user, :download_code, @project
|
2014-01-02 16:31:25 +00:00
|
|
|
= render 'projects/repositories/download_archive', btn_class: 'btn-block btn-group-justified', split_button: true
|
|
|
|
|
|
|
|
= link_to project_compare_index_path(@project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do
|
|
|
|
Compare code
|
2013-11-29 11:52:10 +00:00
|
|
|
|
|
|
|
- if @repository.readme
|
|
|
|
- readme = @repository.readme
|
|
|
|
= link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do
|
|
|
|
= readme.name
|
|
|
|
|
2013-11-12 10:56:20 +00:00
|
|
|
.prepend-top-10
|
2013-07-09 07:44:47 +00:00
|
|
|
%p
|
2013-10-22 02:38:15 +00:00
|
|
|
%span.light Created on
|
2013-07-09 07:44:47 +00:00
|
|
|
#{@project.created_at.stamp('Aug 22, 2013')}
|
|
|
|
%p
|
|
|
|
%span.light Owned by
|
|
|
|
- if @project.group
|
2014-02-18 07:04:30 +00:00
|
|
|
#{link_to @project.group.name, @project.group} group
|
2013-07-09 07:44:47 +00:00
|
|
|
- else
|
|
|
|
#{link_to @project.owner_name, @project.owner}
|
2013-05-14 10:31:29 +00:00
|
|
|
|
2013-07-09 14:44:35 +00:00
|
|
|
|
|
|
|
- if @project.gitlab_ci?
|
|
|
|
%hr
|
|
|
|
= link_to @project.gitlab_ci_service.builds_path do
|
|
|
|
= image_tag @project.gitlab_ci_service.status_img_path, alt: "build status"
|