2015-03-22 02:48:08 -04:00
|
|
|
%h4.prepend-top-20
|
2020-07-31 17:10:12 -04:00
|
|
|
= html_escape(_("Contributions for %{calendar_date}")) % { calendar_date: tag.strong(@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
|
2020-08-10 14:09:54 -04:00
|
|
|
= sprite_icon('clock', css_class: 'gl-vertical-align-text-bottom')
|
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)
|
2019-05-13 00:42:06 -04:00
|
|
|
- if event.push_action?
|
2018-09-07 11:08:55 -04:00
|
|
|
#{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
|
2020-07-27 08:09:50 -04:00
|
|
|
= link_to event.target.to_reference, [event.project, event.target], class: 'has-tooltip', title: event.target_title
|
2018-09-07 11:08:55 -04:00
|
|
|
|
2020-05-19 17:08:05 -04:00
|
|
|
= s_('UserProfile|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
|
2019-09-10 06:11:38 -04:00
|
|
|
= event.resource_parent_name
|
2015-03-22 02:48:08 -04:00
|
|
|
- else
|
2020-05-19 17:08:05 -04:00
|
|
|
= s_('UserProfile|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')
|