Skip to content
Snippets Groups Projects
Commit 2a6a385f authored by Josh Frye's avatar Josh Frye
Browse files

Remove ci variable from templates

parent 5b02e306
No related branches found
No related tags found
No related merge requests found
.projects-list-holder
 
= render 'shared/projects/list', projects: @projects, ci: false
= render 'shared/projects/list', projects: @projects
- avatar = true unless local_assigns[:avatar] == false
- stars = true unless local_assigns[:stars] == false
- forks = false unless local_assigns[:forks] == true
- ci = false unless local_assigns[:ci] == true
- skip_namespace = false unless local_assigns[:skip_namespace] == true
- css_class = '' unless local_assigns[:css_class]
- show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true
- css_class += " no-description" if project.description.blank? && !show_last_commit_as_description
- ci_commit = project.ci_commit(project.commit.sha) if ci && !project.empty_repo? && project.commit
- cache_key = [project.namespace, project, controller.controller_name, controller.action_name, current_application_settings, 'v2.2']
- cache_key.push(ci_commit.status) if ci_commit
 
%li.project-row{ class: css_class }
= cache(cache_key) do
Loading
Loading
@@ -28,9 +25,6 @@
= project.name
 
.project-controls
- if ci_commit
= render_ci_status(ci_commit)
 
- if forks
%span
= icon('code-fork')
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment