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

50 lines
2.6 KiB
Text
Raw Normal View History

2021-01-03 14:25:43 +05:30
- activity_pane_class = Feature.enabled?(:security_auto_fix) && @user.bot? ? "col-12" : "col-md-12 col-lg-6"
2021-01-29 00:20:46 +05:30
.row.d-none.d-sm-flex
.col-12.calendar-block.gl-my-3
2022-01-26 12:08:38 +05:30
.user-calendar.light{ data: { calendar_path: user_calendar_path(@user, :json), calendar_activities_path: user_calendar_activities_path, utc_offset: local_timezone_instance(@user.timezone).now.utc_offset } }
2022-05-07 20:08:51 +05:30
= gl_loading_icon(size: 'md', css_class: 'gl-my-8')
2021-01-29 00:20:46 +05:30
.user-calendar-error.invisible
= _('There was an error loading users activity calendar.')
%a.js-retry-load{ href: '#' }
= s_('UserProfile|Retry')
2022-01-26 12:08:38 +05:30
- if @user.user_readme&.rich_viewer
2021-12-11 22:18:48 +05:30
.row.justify-content-center
.col-12.col-md-10.col-lg-8.gl-my-6
.gl-display-flex
%ol.breadcrumb.gl-breadcrumb-list.gl-mb-4
%li.breadcrumb-item.gl-breadcrumb-item
= link_to @user.username, project_path(@user.user_project)
%span.gl-breadcrumb-separator
= sprite_icon("chevron-right", size: 16)
%li.breadcrumb-item.gl-breadcrumb-item
= link_to @user.user_readme.path, @user.user_project.readme_url
- if current_user == @user
.gl-ml-auto
= link_to _('Edit'), edit_blob_path(@user.user_project, @user.user_project.default_branch, @user.user_readme.path)
= render 'projects/blob/viewer', viewer: @user.user_readme.rich_viewer, load_async: false
2022-04-04 11:22:00 +05:30
.row
.col-12.user-calendar-activities
2018-12-05 23:21:45 +05:30
.row
2021-01-03 14:25:43 +05:30
%div{ class: activity_pane_class }
2018-12-05 23:21:45 +05:30
- if can?(current_user, :read_cross_project)
.activities-block
2020-07-28 23:09:34 +05:30
.gl-mt-5
2021-01-03 14:25:43 +05:30
.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-03-02 22:35:43 +05:30
= link_to s_('UserProfile|View all'), user_activity_path, class: "hide js-view-all"
2021-06-08 01:23:25 +05:30
.overview-content-list{ data: { href: user_activity_path, qa_selector: 'user_activity_content' } }
2022-05-07 20:08:51 +05:30
= gl_loading_icon(size: 'md', css_class: 'loading')
2019-03-02 22:35:43 +05:30
2021-01-03 14:25:43 +05:30
- 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 } }
2022-05-07 20:08:51 +05:30
= gl_loading_icon(size: 'md', css_class: 'loading')