2015-03-22 02:48:08 -04:00
|
|
|
%h4.prepend-top-20
|
2018-09-07 11:08:55 -04:00
|
|
|
= _("Contributions for <strong>%{calendar_date}</strong>").html_safe % { calendar_date: @calendar_date.to_s(:medium) }
|
2015-03-22 02:48:08 -04:00
|
|
|
|
2016-04-28 06:03:14 -04:00
|
|
|
- if @events.any?
|
|
|
|
%ul.bordered-list
|
|
|
|
- @events.sort_by(&:created_at).each do |event|
|
|
|
|
%li
|
|
|
|
%span.light
|
|
|
|
%i.fa.fa-clock-o
|
2018-11-28 12:43:34 -05:00
|
|
|
= event.created_at.to_time.in_time_zone.strftime('%-I:%M%P')
|
2018-09-07 11:08:55 -04:00
|
|
|
- if event.visible_to_user?(current_user)
|
|
|
|
- if event.push?
|
|
|
|
#{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-02-14 08:56:25 -05:00
|
|
|
%strong
|
2018-09-07 11:08:55 -04:00
|
|
|
- if event.project
|
|
|
|
= link_to_project(event.project)
|
|
|
|
- else
|
|
|
|
= event.project_name
|
2015-03-22 02:48:08 -04:00
|
|
|
- else
|
2018-09-07 11:08:55 -04:00
|
|
|
made a private contribution
|
2016-04-28 06:03:14 -04:00
|
|
|
- else
|
|
|
|
%p
|
2018-09-07 11:08:55 -04:00
|
|
|
= _('No contributions were found')
|