20 lines
966 B
Text
20 lines
966 B
Text
- event = last_push_event
|
|
- if event && show_last_push_widget?(event)
|
|
= render Pajamas::AlertComponent.new(variant: :success,
|
|
alert_options: { class: 'gl-mt-3' },
|
|
close_button_options: { class: 'js-close-banner' }) do |c|
|
|
= c.body do
|
|
%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'
|
|
|
|
- if event.project != @project
|
|
%span= s_("LastPushEvent|at")
|
|
%strong= link_to_project event.project
|
|
|
|
#{time_ago_with_tooltip(event.created_at)}
|
|
|
|
- if create_mr_button_from_event?(event)
|
|
= c.actions do
|
|
= 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')
|