Commit b8113334a86639b87d5f89cc78e2279a8ae4e38a
1 parent
0546b9c6
Exists in
master
and in
4 other branches
Highlight voting notes for issues and merge requests
Showing
5 changed files
with
24 additions
and
3 deletions
Show diff stats
app/assets/stylesheets/sections/notes.scss
... | ... | @@ -81,6 +81,19 @@ |
81 | 81 | border-top: 1px solid #eee; |
82 | 82 | } |
83 | 83 | |
84 | +/* mark vote notes */ | |
85 | +.voting_notes .note { | |
86 | + padding: 8px 0 8px 12px; | |
87 | + &.upvote { | |
88 | + padding-left: 8px; | |
89 | + border-left: 4px solid #468847; | |
90 | + } | |
91 | + &.downvote { | |
92 | + padding-left: 8px; | |
93 | + border-left: 4px solid #B94A48; | |
94 | + } | |
95 | +} | |
96 | + | |
84 | 97 | .notes-status { |
85 | 98 | margin: 18px; |
86 | 99 | } | ... | ... |
app/helpers/notes_helper.rb
app/views/issues/show.html.haml
app/views/merge_requests/_show.html.haml
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | %i.icon-list-alt |
16 | 16 | Diff |
17 | 17 | |
18 | -.merge_request_notes#notes{ class: (controller.action_name == 'show') ? "" : "hide" } | |
18 | +.merge_request_notes.voting_notes#notes{ class: (controller.action_name == 'show') ? "" : "hide" } | |
19 | 19 | = render("notes/notes_with_form", tid: @merge_request.id, tt: "merge_request") |
20 | 20 | .merge-request-diffs |
21 | 21 | = render "merge_requests/show/diffs" if @diffs | ... | ... |
app/views/notes/_note.html.haml