debian-mirror-gitlab/app/views/users/calendar_activities.html.haml

34 lines
1.2 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%h4.prepend-top-20
Contributions for
2017-08-17 22:00:37 +05:30
%strong= @calendar_date.to_s(:short)
2015-04-26 12:48:37 +05:30
- if @events.any?
%ul.bordered-list
- @events.sort_by(&:created_at).each do |event|
%li
%span.light
%i.fa.fa-clock-o
= event.created_at.to_s(:time)
- if event.push?
2017-08-17 22:00:37 +05:30
#{event.action_name} #{event.ref_type}
%strong
- commits_path = namespace_project_commits_path(event.project.namespace, event.project, event.ref_name)
= link_to_if event.project.repository.branch_exists?(event.ref_name), event.ref_name, commits_path
2015-04-26 12:48:37 +05:30
- else
= event_action_name(event)
2017-08-17 22:00:37 +05:30
%strong
- if event.note?
= link_to event.note_target.to_reference, event_note_target_path(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
%strong
- if event.project
= link_to_project event.project
- else
= event.project_name
- else
%p
No contributions found for #{@calendar_date.to_s(:short)}