diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-02-20 22:15:01 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-02-20 22:15:01 +0300 |
commit | d714073d62860bdd80f861baa6882f54d5c57e5f (patch) | |
tree | 8c34b26550409ca9a43f3dfbf9a67511b4f36d98 /app/views/projects/_stat_anchor_list.html.haml | |
parent | 083003bf1eeef8347c8cd8ac40bdf8a0d7f5672e (diff) |
Use OpenStruct instead Hash for statistics buttons
Diffstat (limited to 'app/views/projects/_stat_anchor_list.html.haml')
-rw-r--r-- | app/views/projects/_stat_anchor_list.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/_stat_anchor_list.html.haml b/app/views/projects/_stat_anchor_list.html.haml index 1f237c645bc..055d484cf49 100644 --- a/app/views/projects/_stat_anchor_list.html.haml +++ b/app/views/projects/_stat_anchor_list.html.haml @@ -4,9 +4,9 @@ %ul.nav - anchors.each do |anchor| %li - - if anchor[:link] - = link_to anchor[:link], class: anchor[:enabled] ? 'stat-link' : "btn btn-#{anchor[:class_modifier] || 'missing'}" do - = anchor[:label] + - if anchor.link + = link_to anchor.link, class: anchor.enabled ? 'stat-link' : "btn btn-#{anchor.class_modifier || 'missing'}" do + = anchor.label - else %span.stat-text - = anchor[:label] + = anchor.label |