debian-mirror-gitlab/app/views/shared/projects/_project.html.haml

35 lines
1.5 KiB
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
- avatar = true unless local_assigns[:avatar] == false
- stars = true unless local_assigns[:stars] == false
2015-10-24 18:46:33 +05:30
- ci = false unless local_assigns[:ci] == true
- skip_namespace = false unless local_assigns[:skip_namespace] == true
2015-09-25 12:07:36 +05:30
- css_class = '' unless local_assigns[:css_class]
- css_class += " no-description" unless project.description.present?
%li.project-row{ class: css_class }
2015-10-24 18:46:33 +05:30
= cache [project.namespace, project, controller.controller_name, controller.action_name, 'v2.2'] do
2015-09-25 12:07:36 +05:30
= link_to project_path(project), class: dom_class(project) do
- if avatar
.dash-project-avatar
= project_icon(project, alt: '', class: 'avatar project-avatar s46')
%span.project-full-name
%span.namespace-name
2015-10-24 18:46:33 +05:30
- if project.namespace && !skip_namespace
2015-09-25 12:07:36 +05:30
= project.namespace.human_name
\/
%span.project-name.filter-title
= project.name
2015-10-24 18:46:33 +05:30
.project-controls
- if ci && !project.empty_repo? && project.commit
- if ci_commit = project.ci_commit(project.commit.sha)
= link_to ci_status_path(ci_commit), class: "c#{ci_status_color(ci_commit)}",
title: "Build status: #{ci_commit.status}", data: {toggle: 'tooltip', placement: 'left'} do
= ci_status_icon(ci_commit)
 
2015-09-25 12:07:36 +05:30
- if stars
2015-10-24 18:46:33 +05:30
%span
2015-09-25 12:07:36 +05:30
%i.fa.fa-star
= project.star_count
- if project.description.present?
.project-description
= markdown(project.description, pipeline: :description)