Skip to content

Commit

Permalink
Merge pull request #6492 from dmarcoux/use-badge-for-group-tasks
Browse files Browse the repository at this point in the history
Use badge for group tasks
  • Loading branch information
hennevogel committed Dec 6, 2018
2 parents 6529f9f + 4cd6073 commit 16b6503
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/app/views/webui2/webui/user/_info.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
Member of the #{'group'.pluralize(groups.size)}
%ul
- groups.each do |group|
%li= link_to("#{group.title} (#{group.tasks})", group_show_path(group))
%li
= link_to(group_show_path(group)) do
#{group.title}
%span.badge.badge-primary
#{group.tasks} #{'task'.pluralize(group.tasks)}

- if role_titles.any?
Has the #{'role'.pluralize(role_titles.size)}
Expand Down

0 comments on commit 16b6503

Please sign in to comment.