BigW Consortium Gitlab

calendar_activities.html.haml 1.2 KB
Newer Older
1
%h4.prepend-top-20
2
  Contributions for
3
  %strong= @calendar_date.to_s(:medium)
4

5 6 7 8 9 10
- if @events.any?
  %ul.bordered-list
    - @events.sort_by(&:created_at).each do |event|
      %li
        %span.light
          %i.fa.fa-clock-o
11
          = event.created_at.strftime('%-I:%M%P')
12
        - if event.push?
13 14
          #{event.action_name} #{event.ref_type}
          %strong
15
            - commits_path = project_commits_path(event.project, event.ref_name)
16
            = link_to_if event.project.repository.branch_exists?(event.ref_name), event.ref_name, commits_path
17
        - else
18
          = event_action_name(event)
19 20
          %strong
            - if event.note?
21
              = link_to event.note_target.to_reference, event_note_target_path(event), class: 'has-tooltip', title: event.target_title
22
            - elsif event.target
23
              = link_to event.target.to_reference, [event.project.namespace.becomes(Namespace), event.project, event.target], class: 'has-tooltip', title: event.target_title
24 25 26 27 28 29 30 31 32

        at
        %strong
          - if event.project
            = link_to_project event.project
          - else
            = event.project_name
- else
  %p
33
    No contributions found for #{@calendar_date.to_s(:medium)}