diff options
author | Rémy Coutable <remy@rymai.me> | 2017-09-25 21:35:14 +0000 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-09-26 11:43:31 +0200 |
commit | 3c32ffd553a20d4dffff8271d20551a10f8358f1 (patch) | |
tree | 7ffea865de945deabe8413c180c00fd4dc70a2d3 | |
parent | f91668eca7c0897f0545488a1ded177fef8474ee (diff) | |
download | gitlab-ce-3c32ffd553a20d4dffff8271d20551a10f8358f1.tar.gz |
Merge branch '37912-fix-dash-in-note-access-role' into 'master'
Fix a dash being rendered in the note's access role
Closes #37912
See merge request gitlab-org/gitlab-ce!14450
-rw-r--r-- | app/views/projects/notes/_actions.html.haml | 3 | ||||
-rw-r--r-- | changelogs/unreleased/37912-fix-dash-in-note-access-role.yml | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/app/views/projects/notes/_actions.html.haml b/app/views/projects/notes/_actions.html.haml index de76832331a..ab87b5e0005 100644 --- a/app/views/projects/notes/_actions.html.haml +++ b/app/views/projects/notes/_actions.html.haml @@ -1,7 +1,8 @@ +- access = note_max_access_for_user(note) - if note.has_special_role?(Note::SpecialRole::FIRST_TIME_CONTRIBUTOR) %span.note-role.note-role-special.has-tooltip{ title: _("This is the author's first Merge Request to this project. Handle with care.") } = issuable_first_contribution_icon -- if access = note_max_access_for_user(note) +- if access.nonzero? %span.note-role.note-role-access= Gitlab::Access.human_access(access) - if note.resolvable? diff --git a/changelogs/unreleased/37912-fix-dash-in-note-access-role.yml b/changelogs/unreleased/37912-fix-dash-in-note-access-role.yml new file mode 100644 index 00000000000..f9f4120479c --- /dev/null +++ b/changelogs/unreleased/37912-fix-dash-in-note-access-role.yml @@ -0,0 +1,5 @@ +--- +title: Notes will not show an empty bubble when the author isn't a member. +merge_request: 14450 +author: +type: fixed |