gitlab-org--gitlab-foss/app/views/users/calendar_activities.html.haml
Phil Hughes 93c0bb8041 Fixed issue with selected date not loading correctly
Added loading icon to selected date box
2016-05-16 12:22:17 +01:00

27 lines
793 B
Text

%h4.prepend-top-20
Contributions for
%strong #{@calendar_date.to_s(:short)}
- 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?
#{event.action_name} #{event.ref_type} #{event.ref_name}
- else
= event_action_name(event)
- if event.target
%strong= link_to "##{event.target_iid}", [event.project.namespace.becomes(Namespace), event.project, event.target]
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)}