Skip to content
Snippets Groups Projects
Commit 99410a47 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Fetch locals to avoid undefined method/local error

parent b9b508ad
No related branches found
No related tags found
No related merge requests found
- ref = local_assigns.fetch(:ref)
- status = commit.status(ref)
- if status
= link_to builds_namespace_project_commit_path(commit.project.namespace, commit.project, commit), class: "ci-status ci-#{status}" do
Loading
Loading
- ref = local_assigns.fetch(:ref)
- if @note_counts
- note_count = @note_counts.fetch(commit.id, 0)
- else
Loading
Loading
- ref = local_assigns.fetch(:ref)
- commits, hidden = limited_commits(@commits)
 
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
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