Commit bf753e99e7d2ba876a62cb5f163375e8fc5fd004
1 parent
309e2cea
Exists in
master
and in
4 other branches
Improve link to comment targets on dashboard
Showing
2 changed files
with
6 additions
and
4 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
app/views/events/event/_note.html.haml
1 | .event-title | 1 | .event-title |
2 | %span.author_name= link_to_author event | 2 | %span.author_name= link_to_author event |
3 | - %span.event_label commented on #{event.note_target_type} | 3 | + %span.event_label commented on |
4 | - if event.note_target | 4 | - if event.note_target |
5 | - if event.note_commit? | 5 | - if event.note_commit? |
6 | + = event.note_target_type | ||
6 | = link_to event.note_short_commit_id, project_commit_path(event.project, event.note_commit_id), class: "commit_short_id" | 7 | = link_to event.note_short_commit_id, project_commit_path(event.project, event.note_commit_id), class: "commit_short_id" |
7 | - else | 8 | - else |
8 | = link_to [event.project, event.note_target] do | 9 | = link_to [event.project, event.note_target] do |
9 | - %strong= truncate event.note_target_id | 10 | + %strong |
11 | + #{event.note_target_type} ##{truncate event.note_target_id} | ||
10 | 12 | ||
11 | - elsif event.wall_note? | 13 | - elsif event.wall_note? |
12 | - -# nothing here | 14 | + = link_to 'wall', wall_project_path(event.project) |
13 | - else | 15 | - else |
14 | %strong (deleted) | 16 | %strong (deleted) |
15 | at | 17 | at |