From b8425cf173841eb2f7ba95141f364241a81a52a8 Mon Sep 17 00:00:00 2001 From: randx Date: Tue, 10 Jul 2012 21:26:01 +0300 Subject: [PATCH] Last push widget improved --- app/assets/stylesheets/common.scss | 8 ++++++-- app/views/events/_event_last_push.html.haml | 5 +---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 32dbf830..0db803aa 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -604,7 +604,11 @@ li.note { border-style: solid; border-width: 1px; @include border-radius(4px); - min-height:42px; + min-height:22px; + + .avatar { + width:24px; + } } .supp_diff_link, @@ -695,4 +699,4 @@ li.note { border:1px solid #B8B; } } -} \ No newline at end of file +} diff --git a/app/views/events/_event_last_push.html.haml b/app/views/events/_event_last_push.html.haml index fb4a728e..212ef817 100644 --- a/app/views/events/_event_last_push.html.haml +++ b/app/views/events/_event_last_push.html.haml @@ -5,12 +5,9 @@ %span Your pushed to = event.ref_type = link_to project_commits_path(event.project, :ref => event.ref_name) do - %strong= event.ref_name + %strong= truncate(event.ref_name, :length => 28) at %strong= link_to event.project.name, event.project - %span.cgray - = time_ago_in_words(event.created_at) - ago. = link_to new_mr_path_from_push_event(event), :title => "New Merge Request", :class => "btn very_small primary" do Create Merge Request