debian-mirror-gitlab/app/views/projects/_home_panel.html.haml

34 lines
1 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- empty_repo = @project.empty_repo?
2015-09-11 14:41:01 +05:30
.project-home-panel.clearfix{:class => ("empty-project" if empty_repo)}
2015-04-26 12:48:37 +05:30
.project-identicon-holder
2015-09-11 14:41:01 +05:30
= project_icon(@project, alt: '', class: 'project-avatar avatar s90')
2015-09-25 12:07:36 +05:30
.project-home-desc
2015-09-11 14:41:01 +05:30
%h1= @project.name
- if @project.description.present?
= markdown(@project.description, pipeline: :description)
2014-09-02 18:07:02 +05:30
2015-09-25 12:07:36 +05:30
- 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)
2015-09-11 14:41:01 +05:30
.project-repo-buttons
= render 'projects/buttons/star'
- unless empty_repo
= render 'projects/buttons/fork'
- if can? current_user, :download_code, @project
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn', rel: 'nofollow' do
= icon('download fw')
Download
2015-09-25 12:07:36 +05:30
= render 'projects/buttons/notifications'
2015-09-11 14:41:01 +05:30
= render 'projects/buttons/dropdown'
= render "shared/clone_panel"