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

21 lines
995 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|
2023-07-09 08:55:56 +05:30
- c.with_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)
2023-07-09 08:55:56 +05:30
- c.with_actions do
2023-01-13 00:05:48 +05:30
= render Pajamas::ButtonComponent.new(variant: :confirm, href: create_mr_path_from_push_event(event), button_options: { data: { qa_selector: 'create_merge_request_button' }}) do
2022-08-27 11:52:29 +05:30
= _('Create merge request')