diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-06-12 18:43:16 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-06-12 18:43:16 +0400 |
commit | e0d1fba15e86771e7ecf820d1bec68aa5c0e9cb1 (patch) | |
tree | 8ca8e881bc3f5583df389b60570062f52a1fc28a /app/views/events/_event_last_push.html.haml | |
parent | 40af6e1ad2870f9c97a0354d80cd30871a546835 (diff) |
Recent push event
Diffstat (limited to 'app/views/events/_event_last_push.html.haml')
-rw-r--r-- | app/views/events/_event_last_push.html.haml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/events/_event_last_push.html.haml b/app/views/events/_event_last_push.html.haml new file mode 100644 index 00000000000..95ae01bd49e --- /dev/null +++ b/app/views/events/_event_last_push.html.haml @@ -0,0 +1,16 @@ +- if event && event.branch_name && event.project.merge_requests_enabled + .event_lp + %div + = image_tag gravatar_icon(event.author_email), :class => "avatar" + %span Your last push was to + = event.ref_type + = link_to project_commits_path(event.project, :ref => event.ref_name) do + %strong= event.ref_name + 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 small padded primary" do + Merge Request |