diff options
author | micael.bergeron <micael.bergeron@solutionstlm.com> | 2017-08-15 16:21:27 +0300 |
---|---|---|
committer | micael.bergeron <micael.bergeron@solutionstlm.com> | 2017-09-06 16:00:57 +0300 |
commit | b44a1bcd0b94a68f680c24d0dfd6d3402af9a881 (patch) | |
tree | b20c07b3bfaf86f00255a27f7428e1000c930fca /app/helpers/issuables_helper.rb | |
parent | 45b83ed99afc5cfe24a8d84869894124d93d5b51 (diff) |
rework the contributor badge
- only show in merge-requests
- show as a little glyph
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r-- | app/helpers/issuables_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index 11fae16f04d..fbc1ba55d42 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -138,7 +138,7 @@ module IssuablesHelper end output << " ".html_safe - output << issuable_first_contribution_icon if issuable.first_contribution? + output << content_tag(:span, (issuable_first_contribution_icon if issuable.first_contribution?), class: 'has-tooltip', title: _('1st contribution!')) output << content_tag(:span, (issuable.task_status if issuable.tasks?), id: "task_status", class: "hidden-xs hidden-sm") output << content_tag(:span, (issuable.task_status_short if issuable.tasks?), id: "task_status_short", class: "hidden-md hidden-lg") @@ -176,7 +176,7 @@ module IssuablesHelper end def issuable_first_contribution_icon - content_tag(:span, class: 'fa-stack has-tooltip', title: _('1st contribution!')) do + content_tag(:span, class: 'fa-stack') do concat(icon('certificate', class: "fa-stack-2x")) concat(content_tag(:strong, '1', class: 'fa-inverse fa-stack-1x')) end |