2015-03-22 06:48:08 +00:00
|
|
|
%h4.prepend-top-20
|
2016-04-28 10:03:14 +00:00
|
|
|
Contributions for
|
2017-08-01 04:14:32 +00:00
|
|
|
%strong= @calendar_date.to_s(:medium)
|
2015-03-22 06:48:08 +00:00
|
|
|
|
2016-04-28 10:03:14 +00:00
|
|
|
- if @events.any?
|
|
|
|
%ul.bordered-list
|
|
|
|
- @events.sort_by(&:created_at).each do |event|
|
|
|
|
%li
|
|
|
|
%span.light
|
|
|
|
%i.fa.fa-clock-o
|
2017-08-01 04:14:32 +00:00
|
|
|
= event.created_at.strftime('%-I:%M%P')
|
2016-04-28 10:03:14 +00:00
|
|
|
- if event.push?
|
2017-02-14 13:56:25 +00:00
|
|
|
#{event.action_name} #{event.ref_type}
|
|
|
|
%strong
|
2017-06-29 17:06:35 +00:00
|
|
|
- commits_path = project_commits_path(event.project, event.ref_name)
|
2017-02-14 13:56:25 +00:00
|
|
|
= link_to_if event.project.repository.branch_exists?(event.ref_name), event.ref_name, commits_path
|
2015-03-22 06:48:08 +00:00
|
|
|
- else
|
2016-04-28 10:03:14 +00:00
|
|
|
= event_action_name(event)
|
2017-02-14 13:56:25 +00:00
|
|
|
%strong
|
|
|
|
- if event.note?
|
2017-03-21 21:06:38 +00:00
|
|
|
= link_to event.note_target.to_reference, event_note_target_path(event), class: 'has-tooltip', title: event.target_title
|
2017-02-14 13:56:25 +00:00
|
|
|
- elsif event.target
|
2017-03-21 21:06:38 +00:00
|
|
|
= link_to event.target.to_reference, [event.project.namespace.becomes(Namespace), event.project, event.target], class: 'has-tooltip', title: event.target_title
|
2016-04-28 10:03:14 +00:00
|
|
|
|
|
|
|
at
|
|
|
|
%strong
|
|
|
|
- if event.project
|
|
|
|
= link_to_project event.project
|
|
|
|
- else
|
|
|
|
= event.project_name
|
|
|
|
- else
|
|
|
|
%p
|
2017-08-01 04:14:32 +00:00
|
|
|
No contributions found for #{@calendar_date.to_s(:medium)}
|