From 5e600db21ce5d6544f559ea6d25aab2858dd465e Mon Sep 17 00:00:00 2001 From: "micael.bergeron" Date: Thu, 27 Jul 2017 16:38:52 -0400 Subject: fix #35161, add a first-time contributor badge a new badge will be added when an user that doesn't yet have any merged merge request is discussing on either issues or merge requests that he created. this is indented for people to use extra care when discussing with a new contributor. --- app/views/projects/notes/_actions.html.haml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/views/projects/notes') diff --git a/app/views/projects/notes/_actions.html.haml b/app/views/projects/notes/_actions.html.haml index fb07141d2ac..38548cbe93a 100644 --- a/app/views/projects/notes/_actions.html.haml +++ b/app/views/projects/notes/_actions.html.haml @@ -1,6 +1,9 @@ - access = note_max_access_for_user(note) - if access %span.note-role= access +- if note_first_contribution_for_user?(note) + %span.note-role.has-tooltip{ title: _("This user hasn't yet contributed code to this project. Handle with care.")} + = _('First-time contributor') - if note.resolvable? - can_resolve = can?(current_user, :resolve_note, note) -- cgit v1.2.1