2015-04-26 12:48:37 +05:30
|
|
|
%h4.prepend-top-20
|
2018-11-20 20:47:30 +05:30
|
|
|
= _("Contributions for <strong>%{calendar_date}</strong>").html_safe % { calendar_date: @calendar_date.to_s(:medium) }
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
- if @events.any?
|
|
|
|
%ul.bordered-list
|
|
|
|
- @events.sort_by(&:created_at).each do |event|
|
|
|
|
%li
|
|
|
|
%span.light
|
|
|
|
%i.fa.fa-clock-o
|
2019-02-15 15:39:39 +05:30
|
|
|
= event.created_at.to_time.in_time_zone.strftime('%-I:%M%P')
|
2018-11-20 20:47:30 +05:30
|
|
|
- if event.visible_to_user?(current_user)
|
2019-09-04 21:01:54 +05:30
|
|
|
- if event.push_action?
|
2018-11-20 20:47:30 +05:30
|
|
|
#{event.action_name} #{event.ref_type}
|
|
|
|
%strong
|
|
|
|
- commits_path = project_commits_path(event.project, event.ref_name)
|
|
|
|
= link_to_if event.project.repository.branch_exists?(event.ref_name), event.ref_name, commits_path
|
|
|
|
- else
|
|
|
|
= event_action_name(event)
|
|
|
|
%strong
|
|
|
|
- if event.note?
|
|
|
|
= link_to event.note_target.to_reference, event_note_target_url(event), class: 'has-tooltip', title: event.target_title
|
|
|
|
- elsif event.target
|
|
|
|
= link_to event.target.to_reference, [event.project.namespace.becomes(Namespace), event.project, event.target], class: 'has-tooltip', title: event.target_title
|
|
|
|
|
|
|
|
at
|
2017-08-17 22:00:37 +05:30
|
|
|
%strong
|
2018-11-20 20:47:30 +05:30
|
|
|
- if event.project
|
|
|
|
= link_to_project(event.project)
|
|
|
|
- else
|
2019-12-04 20:38:33 +05:30
|
|
|
= event.resource_parent_name
|
2015-04-26 12:48:37 +05:30
|
|
|
- else
|
2018-11-20 20:47:30 +05:30
|
|
|
made a private contribution
|
2016-06-16 23:09:34 +05:30
|
|
|
- else
|
|
|
|
%p
|
2018-11-20 20:47:30 +05:30
|
|
|
= _('No contributions were found')
|