gitlab-org--gitlab-foss/app/views/projects/_home_panel.html.haml

43 lines
1.5 KiB
Text
Raw Normal View History

- empty_repo = @project.empty_repo?
.project-home-panel.cover-block.clearfix{:class => ("empty-project" if empty_repo)}
.project-identicon-holder
= project_icon(@project, alt: '', class: 'project-avatar avatar s90')
.project-home-desc
2015-08-06 09:10:51 -04:00
%h1= @project.name
- if @project.description.present?
= markdown(@project.description, pipeline: :description)
- if forked_from_project = @project.forked_from_project
%p
Forked from
= link_to project_path(forked_from_project) do
= forked_from_project.namespace.try(:name)
.cover-controls.left
.visibility-level-label.has_tooltip{title: project_visibility_level_description(@project.visibility_level), data: { container: 'body' } }
= visibility_level_icon(@project.visibility_level, fw: false)
= visibility_level_label(@project.visibility_level)
.cover-controls
- if can?(current_user, :admin_project, @project)
= link_to edit_project_path(@project), class: 'btn btn-gray' do
= icon('pencil')
- if current_user
 
= link_to namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), class: 'btn btn-gray' do
= icon('rss')
.project-repo-buttons
2015-12-18 14:17:19 -05:00
.split-one.count-buttons
= render 'projects/buttons/star'
2015-11-12 06:44:33 -05:00
= render 'projects/buttons/fork'
= render "shared/clone_panel"
2015-11-12 06:44:33 -05:00
.split-repo-buttons
= render "projects/buttons/download"
= render 'projects/buttons/dropdown'
2015-11-12 06:44:33 -05:00
2015-09-14 19:37:11 -04:00
= render 'projects/buttons/notifications'
2015-12-23 20:36:29 -05:00
:coffeescript
new Star()