2013-11-06 10:13:21 -05:00
|
|
|
- empty_repo = @project.empty_repo?
|
|
|
|
.project-home-panel{:class => ("empty-project" if empty_repo)}
|
2013-12-31 07:12:20 -05:00
|
|
|
.visibility-level-label.has_tooltip{'data-title' => "#{visibility_level_label(@project.visibility_level)} project" }
|
2013-12-31 05:40:18 -05:00
|
|
|
= visibility_level_icon(@project.visibility_level)
|
2013-11-06 10:13:21 -05:00
|
|
|
.row
|
2013-12-31 05:40:18 -05:00
|
|
|
.col-sm-6
|
2013-11-06 10:13:21 -05:00
|
|
|
%h4.project-home-title
|
|
|
|
= @project.name_with_namespace
|
|
|
|
|
2013-12-31 05:40:18 -05:00
|
|
|
.col-sm-6
|
2013-11-06 10:13:21 -05:00
|
|
|
- unless empty_repo
|
|
|
|
.project-home-dropdown
|
|
|
|
= render "dropdown"
|
2014-01-07 22:03:27 -05:00
|
|
|
= render "shared/clone_panel"
|
2013-11-06 10:13:21 -05:00
|
|
|
|
2014-01-06 07:05:39 -05:00
|
|
|
.project-home-extra.row
|
|
|
|
.col-md-8
|
|
|
|
.project-home-desc
|
|
|
|
- if @project.description.present?
|
|
|
|
= @project.description
|
|
|
|
- if can?(current_user, :admin_project, @project)
|
|
|
|
–
|
|
|
|
%strong= link_to 'Edit', edit_project_path
|
2013-11-06 10:13:21 -05:00
|
|
|
|
|
|
|
- unless empty_repo
|
2014-01-06 07:05:39 -05:00
|
|
|
.col-md-4
|
|
|
|
.project-home-links
|
|
|
|
= link_to pluralize(@repository.round_commit_count, 'commit'), project_commits_path(@project, @ref || @repository.root_ref)
|
|
|
|
= link_to pluralize(@repository.branch_names.count, 'branch'), project_branches_path(@project)
|
|
|
|
= link_to pluralize(@repository.tag_names.count, 'tag'), project_tags_path(@project)
|
|
|
|
%span.light.prepend-left-20= repository_size
|