Cache project row on dashboard, group and user page
This commit is contained in:
parent
119ebe30a6
commit
38862308f0
1 changed files with 21 additions and 20 deletions
|
@ -1,20 +1,21 @@
|
||||||
= link_to project_path(project), class: dom_class(project) do
|
= cache [project, controller.controller_name, controller.action_name] do
|
||||||
- if avatar
|
= link_to project_path(project), class: dom_class(project) do
|
||||||
.dash-project-avatar
|
- if avatar
|
||||||
= project_icon(project, alt: '', class: 'avatar project-avatar s40')
|
.dash-project-avatar
|
||||||
.dash-project-access-icon
|
= project_icon(project, alt: '', class: 'avatar project-avatar s40')
|
||||||
= visibility_level_icon(project.visibility_level)
|
.dash-project-access-icon
|
||||||
%span.str-truncated
|
= visibility_level_icon(project.visibility_level)
|
||||||
%span.namespace-name
|
%span.str-truncated
|
||||||
- if project.namespace
|
%span.namespace-name
|
||||||
= project.namespace.human_name
|
- if project.namespace
|
||||||
\/
|
= project.namespace.human_name
|
||||||
%span.project-name.filter-title
|
\/
|
||||||
= project.name
|
%span.project-name.filter-title
|
||||||
- if stars
|
= project.name
|
||||||
%span.pull-right.light
|
- if stars
|
||||||
%i.fa.fa-star
|
%span.pull-right.light
|
||||||
= project.star_count
|
%i.fa.fa-star
|
||||||
- else
|
= project.star_count
|
||||||
%span.arrow
|
- else
|
||||||
%i.fa.fa-angle-right
|
%span.arrow
|
||||||
|
%i.fa.fa-angle-right
|
||||||
|
|
Loading…
Reference in a new issue