Improve link to comment targets on dashboard

This commit is contained in:
Dmitriy Zaporozhets 2013-01-17 22:53:40 +02:00
parent 309e2ceaf8
commit bf753e99e7
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
.btn { .btn {
@include linear-gradient(#f7f7f7, #d5d5d5); @include linear-gradient(#f7f7f7, #d5d5d5);
border-color: #aaa; border-color: #BBB;
&:hover { &:hover {
@include bg-gray-gradient; @include bg-gray-gradient;
border-color: #bbb; border-color: #bbb;

View file

@ -1,15 +1,17 @@
.event-title .event-title
%span.author_name= link_to_author event %span.author_name= link_to_author event
%span.event_label commented on #{event.note_target_type} %span.event_label commented on
- if event.note_target - if event.note_target
- if event.note_commit? - if event.note_commit?
= event.note_target_type
= link_to event.note_short_commit_id, project_commit_path(event.project, event.note_commit_id), class: "commit_short_id" = link_to event.note_short_commit_id, project_commit_path(event.project, event.note_commit_id), class: "commit_short_id"
- else - else
= link_to [event.project, event.note_target] do = link_to [event.project, event.note_target] do
%strong= truncate event.note_target_id %strong
#{event.note_target_type} ##{truncate event.note_target_id}
- elsif event.wall_note? - elsif event.wall_note?
-# nothing here = link_to 'wall', wall_project_path(event.project)
- else - else
%strong (deleted) %strong (deleted)
at at