2015-09-25 12:07:36 +05:30
|
|
|
- avatar = true unless local_assigns[:avatar] == false
|
|
|
|
- stars = true unless local_assigns[:stars] == false
|
2016-04-02 18:10:28 +05:30
|
|
|
- forks = false unless local_assigns[:forks] == true
|
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]
|
2016-04-02 18:10:28 +05:30
|
|
|
- show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true && project.commit
|
|
|
|
- css_class += " no-description" if project.description.blank? && !show_last_commit_as_description
|
2016-06-02 11:05:42 +05:30
|
|
|
- cache_key = [project.namespace, project, controller.controller_name, controller.action_name, current_application_settings, 'v2.3']
|
|
|
|
- cache_key.push(project.commit.status) if project.commit.try(:status)
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
%li.project-row{ class: css_class }
|
2016-01-14 18:37:52 +05:30
|
|
|
= cache(cache_key) do
|
2016-06-02 11:05:42 +05:30
|
|
|
.controls
|
2016-09-13 17:45:13 +05:30
|
|
|
- if project.archived
|
|
|
|
%span.label.label-warning archived
|
2016-06-02 11:05:42 +05:30
|
|
|
- if project.commit.try(:status)
|
2016-04-02 18:10:28 +05:30
|
|
|
%span
|
2016-06-02 11:05:42 +05:30
|
|
|
= render_commit_status(project.commit)
|
2016-04-02 18:10:28 +05:30
|
|
|
- if forks
|
|
|
|
%span
|
|
|
|
= icon('code-fork')
|
2016-09-29 09:46:39 +05:30
|
|
|
= number_with_delimiter(project.forks_count)
|
2015-09-25 12:07:36 +05:30
|
|
|
- if stars
|
2015-10-24 18:46:33 +05:30
|
|
|
%span
|
2016-04-02 18:10:28 +05:30
|
|
|
= icon('star')
|
2016-09-29 09:46:39 +05:30
|
|
|
= number_with_delimiter(project.star_count)
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.visibility-icon.has-tooltip{data: { container: 'body', placement: 'left' }, title: visibility_icon_description(project)}
|
2016-09-13 17:45:13 +05:30
|
|
|
= visibility_level_icon(project.visibility_level, fw: true)
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
.title
|
|
|
|
= link_to project_path(project), class: dom_class(project) do
|
|
|
|
- if avatar
|
|
|
|
.dash-project-avatar
|
|
|
|
- if use_creator_avatar
|
|
|
|
= image_tag avatar_icon(project.creator.email, 40), class: "avatar s40", alt:''
|
|
|
|
- else
|
|
|
|
= project_icon(project, alt: '', class: 'avatar project-avatar s40')
|
|
|
|
%span.project-full-name
|
|
|
|
%span.namespace-name
|
|
|
|
- if project.namespace && !skip_namespace
|
|
|
|
= project.namespace.human_name
|
|
|
|
\/
|
|
|
|
%span.project-name.filter-title
|
|
|
|
= project.name
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
- if show_last_commit_as_description
|
2016-06-02 11:05:42 +05:30
|
|
|
.description
|
2016-04-02 18:10:28 +05:30
|
|
|
= link_to_gfm project.commit.title, namespace_project_commit_path(project.namespace, project, project.commit),
|
|
|
|
class: "commit-row-message"
|
|
|
|
- elsif project.description.present?
|
2016-06-02 11:05:42 +05:30
|
|
|
.description
|
2016-11-03 12:29:30 +05:30
|
|
|
= markdown_field(project, :description)
|