debian-mirror-gitlab/app/views/projects/_last_push.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
966 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- event = last_push_event
- if event && show_last_push_widget?(event)
2022-06-21 17:19:12 +05:30
= render Pajamas::AlertComponent.new(variant: :success,
2022-07-23 23:45:48 +05:30
alert_options: { class: 'gl-mt-3' },
close_button_options: { class: 'js-close-banner' }) do |c|
2022-07-16 23:28:13 +05:30
= c.body do
2021-10-27 15:23:28 +05:30
%span= s_("LastPushEvent|You pushed to")
%strong.gl-display-inline-flex.gl-max-w-50p{ data: { toggle: 'tooltip' }, title: event.ref_name }
= link_to event.ref_name, project_commits_path(event.project, event.ref_name), class: 'ref-name gl-text-truncate'
2015-09-25 12:07:36 +05:30
2021-10-27 15:23:28 +05:30
- if event.project != @project
%span= s_("LastPushEvent|at")
%strong= link_to_project event.project
2017-09-10 17:25:29 +05:30
2021-10-27 15:23:28 +05:30
#{time_ago_with_tooltip(event.created_at)}
2017-09-10 17:25:29 +05:30
2022-08-27 11:52:29 +05:30
- if create_mr_button_from_event?(event)
2022-07-16 23:28:13 +05:30
= c.actions do
2022-08-27 11:52:29 +05:30
= render Pajamas::ButtonComponent.new(variant: :confirm, href: create_mr_path_from_push_event(event), button_options: { class: 'qa-create-merge-request' }) do
= _('Create merge request')