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

36 lines
1.6 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%h4.prepend-top-20
2020-10-24 23:57:45 +05:30
= html_escape(_("Contributions for %{calendar_date}")) % { calendar_date: tag.strong(@calendar_date.to_s(:medium)) }
2015-04-26 12:48:37 +05:30
- if @events.any?
%ul.bordered-list
- @events.sort_by(&:created_at).each do |event|
%li
2021-12-11 22:18:48 +05:30
%span.light.js-localtime{ :data => { :datetime => event.created_at.utc.strftime('%Y-%m-%dT%H:%M:%SZ'), :toggle => 'tooltip', :placement => 'top' } }
2020-10-24 23:57:45 +05:30
= sprite_icon('clock', css_class: 'gl-vertical-align-text-bottom')
2022-01-26 12:08:38 +05:30
= event.created_at.to_time.in_time_zone(local_timezone_instance(@user.timezone)).strftime('%-I:%M%P')
2018-11-20 20:47:30 +05:30
- if event.visible_to_user?(current_user)
2019-09-04 21:01:54 +05:30
- if event.push_action?
2018-11-20 20:47:30 +05:30
#{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-10-24 23:57:45 +05:30
= link_to event.target.to_reference, [event.project, event.target], class: 'has-tooltip', title: event.target_title
2018-11-20 20:47:30 +05:30
2020-05-24 23:13:21 +05:30
= s_('UserProfile|at')
2017-08-17 22:00:37 +05:30
%strong
2018-11-20 20:47:30 +05:30
- if event.project
= link_to_project(event.project)
- else
2019-12-04 20:38:33 +05:30
= event.resource_parent_name
2015-04-26 12:48:37 +05:30
- else
2020-05-24 23:13:21 +05:30
= s_('UserProfile|made a private contribution')
- else
%p
2018-11-20 20:47:30 +05:30
= _('No contributions were found')