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

27 lines
1 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- empty_repo = @project.empty_repo?
2016-08-24 12:49:21 +05:30
.project-home-panel.text-center{ class: ("empty-project" if empty_repo) }
%div{ class: container_class }
2016-09-13 17:45:13 +05:30
= project_icon(@project, alt: @project.name, class: 'project-avatar avatar s70 avatar-tile')
2016-08-24 12:49:21 +05:30
%h1.project-title
= @project.name
%span.visibility-icon.has-tooltip{data: { container: 'body' }, title: visibility_icon_description(@project)}
= visibility_level_icon(@project.visibility_level, fw: false)
2016-08-24 12:49:21 +05:30
.project-home-desc
- if @project.description.present?
= markdown(@project.description, pipeline: :description)
2016-08-24 12:49:21 +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)
2016-08-24 12:49:21 +05:30
.project-repo-buttons.project-action-buttons
.count-buttons
= render 'projects/buttons/star'
= render 'projects/buttons/fork'
2016-08-24 12:49:21 +05:30
.project-clone-holder
= render "shared/clone_panel"