2020-10-15 14:08:43 -04:00
|
|
|
- activity_pane_class = Feature.enabled?(:security_auto_fix) && @user.bot? ? "col-12" : "col-md-12 col-lg-6"
|
|
|
|
|
2020-11-16 13:09:15 -05:00
|
|
|
.row.d-none.d-sm-flex
|
|
|
|
.col-12.calendar-block.gl-my-3
|
|
|
|
.user-calendar.light{ data: { calendar_path: user_calendar_path(@user, :json), calendar_activities_path: user_calendar_activities_path, utc_offset: Time.zone.utc_offset } }
|
|
|
|
.spinner.spinner-md.gl-my-8
|
|
|
|
.user-calendar-error.invisible
|
|
|
|
= _('There was an error loading users activity calendar.')
|
|
|
|
%a.js-retry-load{ href: '#' }
|
|
|
|
= s_('UserProfile|Retry')
|
|
|
|
.user-calendar-activities
|
2018-10-04 03:55:37 -04:00
|
|
|
.row
|
2020-10-15 14:08:43 -04:00
|
|
|
%div{ class: activity_pane_class }
|
2018-10-04 03:55:37 -04:00
|
|
|
- if can?(current_user, :read_cross_project)
|
|
|
|
.activities-block
|
2020-06-29 11:08:56 -04:00
|
|
|
.gl-mt-5
|
2020-10-15 14:08:43 -04:00
|
|
|
.gl-display-flex.gl-align-items-center.gl-border-b-1.gl-border-b-gray-100.gl-border-b-solid
|
|
|
|
%h4.gl-flex-grow-1
|
|
|
|
= Feature.enabled?(:security_auto_fix) && @user.bot? ? s_('UserProfile|Bot activity') : s_('UserProfile|Activity')
|
2019-01-07 08:54:47 -05:00
|
|
|
= link_to s_('UserProfile|View all'), user_activity_path, class: "hide js-view-all"
|
2020-12-01 07:09:17 -05:00
|
|
|
.overview-content-list{ data: { href: user_activity_path } }
|
2018-10-04 03:55:37 -04:00
|
|
|
.center.light.loading
|
2020-02-10 07:08:59 -05:00
|
|
|
.spinner.spinner-md
|
2019-01-07 08:54:47 -05:00
|
|
|
|
2020-10-15 14:08:43 -04:00
|
|
|
- unless Feature.enabled?(:security_auto_fix) && @user.bot?
|
|
|
|
.col-md-12.col-lg-6
|
|
|
|
.projects-block
|
|
|
|
.gl-mt-5
|
|
|
|
.gl-display-flex.gl-align-items-center.gl-border-b-1.gl-border-b-gray-100.gl-border-b-solid
|
|
|
|
%h4.gl-flex-grow-1
|
|
|
|
= s_('UserProfile|Personal projects')
|
|
|
|
= link_to s_('UserProfile|View all'), user_projects_path, class: "hide js-view-all"
|
|
|
|
.overview-content-list{ data: { href: user_projects_path } }
|
|
|
|
.center.light.loading
|
|
|
|
.spinner.spinner-md
|