Set page title based on content in dashboard area
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
b008273883
commit
0145e8ea21
15 changed files with 30 additions and 24 deletions
|
@ -3,5 +3,5 @@
|
|||
= link_to dashboard_groups_path, title: 'Your groups', data: {placement: 'right'} do
|
||||
Your Groups
|
||||
= nav_link(page: [explore_groups_path]) do
|
||||
= link_to explore_groups_path, title: 'Explore groups', data: {toggle: 'tooltip', placement: 'bottom'} do
|
||||
= link_to explore_groups_path, title: 'Explore groups', data: {placement: 'bottom'} do
|
||||
Explore Groups
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
= link_to starred_dashboard_projects_path, title: 'Starred Projects', data: {placement: 'right'} do
|
||||
Starred Projects
|
||||
= nav_link(page: [explore_root_path, trending_explore_projects_path, starred_explore_projects_path, explore_projects_path], html_options: { class: 'hidden-xs' }) do
|
||||
= link_to explore_root_path, title: 'Explore', data: {toggle: 'tooltip', placement: 'bottom'} do
|
||||
= link_to explore_root_path, title: 'Explore', data: {placement: 'right'} do
|
||||
Explore Projects
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
- if current_user
|
||||
= auto_discovery_link_tag(:atom, dashboard_url(format: :atom, private_token: current_user.private_token), title: "All activity")
|
||||
|
||||
- header_title "Activity", activity_dashboard_path
|
||||
= render 'dashboard/activity_head'
|
||||
|
||||
%section.activities
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- page_title "Groups"
|
||||
- header_title "Groups", dashboard_groups_path
|
||||
= render 'dashboard/groups_head'
|
||||
|
||||
.gray-content-block
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
- page_title "Issues"
|
||||
- header_title "Issues", issues_dashboard_path(assignee_id: current_user.id)
|
||||
= content_for :meta_tags do
|
||||
- if current_user
|
||||
= auto_discovery_link_tag(:atom, issues_dashboard_url(format: :atom, private_token: current_user.private_token), title: "#{current_user.name} issues")
|
||||
|
||||
%h3.page-title
|
||||
Issues
|
||||
|
||||
%p.light
|
||||
List all issues from all projects you have access to.
|
||||
%hr
|
||||
|
||||
.append-bottom-20
|
||||
.pull-right
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
- page_title "Merge Requests"
|
||||
%h3.page-title
|
||||
Merge Requests
|
||||
|
||||
- header_title "Merge Requests", merge_requests_dashboard_path(assignee_id: current_user.id)
|
||||
|
||||
%p.light
|
||||
List all merge requests from all projects you have access to.
|
||||
%hr
|
||||
|
||||
.append-bottom-20
|
||||
= render 'shared/issuable/filter', type: :merge_requests
|
||||
= render 'shared/merge_requests'
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
- page_title "Milestones"
|
||||
%h3.page-title
|
||||
Milestones
|
||||
%span.pull-right #{@dashboard_milestones.count} milestones
|
||||
- header_title "Milestones", dashboard_milestones_path
|
||||
|
||||
%p.light
|
||||
List all milestones from all projects you have access to.
|
||||
|
||||
%hr
|
||||
|
||||
= render 'shared/milestones_filter'
|
||||
.milestones
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- page_title "Starred Projects"
|
||||
- header_title "Projects", (current_user ? root_path : explore_root_path)
|
||||
= render 'dashboard/projects_head'
|
||||
|
||||
- if @projects.any?
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
- if current_user
|
||||
= auto_discovery_link_tag(:atom, dashboard_url(format: :atom, private_token: current_user.private_token), title: "All activity")
|
||||
|
||||
- header_title "Projects", (current_user ? root_path : explore_root_path)
|
||||
= render 'dashboard/projects_head'
|
||||
|
||||
- if @last_push
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- page_title "Groups"
|
||||
- header_title "Groups", (current_user ? dashboard_groups_path : explore_groups_path)
|
||||
- if current_user
|
||||
= render 'dashboard/groups_head'
|
||||
.gray-content-block.clearfix
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- page_title "Dashboard"
|
||||
- unless @header_title
|
||||
- header_title "Dashboard", root_path
|
||||
- sidebar "dashboard"
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
- page_title "Explore"
|
||||
- if current_user
|
||||
- header_title "Dashboard", root_path
|
||||
- unless @header_title
|
||||
- header_title "Projects", (current_user ? root_path : explore_root_path)
|
||||
- else
|
||||
- header_title "Explore GitLab", explore_root_path
|
||||
- sidebar "dashboard"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- page_title 'Snippets'
|
||||
- if current_user
|
||||
- header_title "Dashboard", root_path
|
||||
- header_title "Snippets", user_snippets_path(current_user)
|
||||
- else
|
||||
- header_title 'Snippets', snippets_path
|
||||
- sidebar "dashboard"
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
- page_title "Your Snippets"
|
||||
= render 'head'
|
||||
|
||||
.slead
|
||||
Share code pastes with others out of git repository
|
||||
|
||||
.gray-content-block
|
||||
.pull-right
|
||||
= link_to new_snippet_path, class: "btn btn-new btn-sm", title: "New Snippet" do
|
||||
= link_to new_snippet_path, class: "btn btn-new", title: "New Snippet" do
|
||||
Add new snippet
|
||||
|
||||
%ul.nav.nav-tabs
|
||||
.oneline
|
||||
Share code pastes with others out of git repository
|
||||
|
||||
%ul.nav.nav-tabs.prepend-top-20
|
||||
= nav_tab :scope, nil do
|
||||
= link_to user_snippets_path(@user) do
|
||||
All
|
||||
|
|
|
@ -2,7 +2,13 @@
|
|||
- if current_user
|
||||
= render 'head'
|
||||
|
||||
.slead
|
||||
.gray-content-block
|
||||
- if current_user
|
||||
.pull-right
|
||||
= link_to new_snippet_path, class: "btn btn-new", title: "New Snippet" do
|
||||
Add new snippet
|
||||
|
||||
.oneline
|
||||
Public snippets created by you and other users are listed here
|
||||
|
||||
= render 'snippets'
|
||||
|
|
Loading…
Reference in a new issue