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

35 lines
1.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
2015-10-24 18:46:33 +05:30
.split-one
= render 'projects/buttons/star'
- unless empty_repo
= render 'projects/buttons/fork'
= render "shared/clone_panel"
.split-repo-buttons
- unless empty_repo
- 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')
= render 'projects/buttons/dropdown'
2015-09-25 12:07:36 +05:30
= render 'projects/buttons/notifications'
2015-10-24 18:46:33 +05:30