Specs for last push widget

This commit is contained in:
randx 2012-06-12 21:15:34 +03:00
parent e0d1fba15e
commit b96af79bb8
3 changed files with 57 additions and 3 deletions

View file

@ -745,4 +745,5 @@ li.note {
border-style: solid;
border-width: 1px;
@include border-radius(4px);
min-height:42px;
}

View file

@ -1,4 +1,4 @@
- if event && event.branch_name && event.project.merge_requests_enabled
- if event && event.branch_name
.event_lp
%div
= image_tag gravatar_icon(event.author_email), :class => "avatar"
@ -12,5 +12,6 @@
= time_ago_in_words(event.created_at)
ago.
= link_to new_mr_path_from_push_event(event), :title => "New Merge Request", :class => "btn small padded primary" do
Merge Request
- if event.project.merge_requests_enabled
= link_to new_mr_path_from_push_event(event), :title => "New Merge Request", :class => "btn small padded primary" do
Create Merge Request