debian-mirror-gitlab/app/views/dashboard/_projects_head.html.haml

30 lines
1.3 KiB
Text
Raw Normal View History

2015-12-23 02:04:40 +05:30
= content_for :flash_message do
= render 'shared/project_limit'
2017-09-10 17:25:29 +05:30
2018-12-13 13:39:08 +05:30
.page-title-holder
%h1.page-title= _('Projects')
- if current_user.can_create_project?
.page-title-controls
= link_to "New project", new_project_path, class: "btn btn-success"
2017-08-17 22:00:37 +05:30
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
.fade-left= icon('angle-left')
.fade-right= icon('angle-right')
2018-11-08 19:23:39 +05:30
%ul.nav-links.scrolling-tabs.mobile-separator.nav.nav-tabs
= nav_link(page: [dashboard_projects_path, root_path]) do
2018-03-17 18:26:18 +05:30
= link_to dashboard_projects_path, class: 'shortcuts-activity', data: {placement: 'right'} do
2017-08-17 22:00:37 +05:30
Your projects
2019-03-02 22:35:43 +05:30
%span.badge.badge-pill= limited_counter_with_delimiter(@total_user_projects_count)
= nav_link(page: starred_dashboard_projects_path) do
2018-03-17 18:26:18 +05:30
= link_to starred_dashboard_projects_path, data: {placement: 'right'} do
2017-08-17 22:00:37 +05:30
Starred projects
2019-03-02 22:35:43 +05:30
%span.badge.badge-pill= limited_counter_with_delimiter(@total_starred_projects_count)
2016-04-02 18:10:28 +05:30
= nav_link(page: [explore_root_path, trending_explore_projects_path, starred_explore_projects_path, explore_projects_path]) do
2018-03-17 18:26:18 +05:30
= link_to explore_root_path, data: {placement: 'right'} do
2017-08-17 22:00:37 +05:30
Explore projects
2015-12-23 02:04:40 +05:30
2018-03-17 18:26:18 +05:30
.nav-controls
2017-08-17 22:00:37 +05:30
= render 'shared/projects/search_form'
2016-06-02 11:05:42 +05:30
= render 'shared/projects/dropdown'