Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicael Bergeron <mbergeron@gitlab.com>2017-09-26 00:35:13 +0300
committerRémy Coutable <remy@rymai.me>2017-09-26 00:35:13 +0300
commit6e65c7558de49a94aaacaf30a57b6af1771a2b5d (patch)
tree63f16b029dc91217d4a40ab10085e1b6e27bd5f2 /app/views/projects/notes/_actions.html.haml
parenta4ffde6efe7d0218fc79e7d5b1307caa675dd358 (diff)
Fix a dash being rendered in the note's access role
Diffstat (limited to 'app/views/projects/notes/_actions.html.haml')
-rw-r--r--app/views/projects/notes/_actions.html.haml3
1 files changed, 2 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?