Commit c85df810 authored by Phil Hughes's avatar Phil Hughes
Browse files

improvements to breadcrumb titles, links & nesting

parent 7ed7a1268f1c
......@@ -5,12 +5,15 @@ export default class GroupName {
constructor() {
this.titleContainer = document.querySelector('.js-title-container');
this.title = this.titleContainer.querySelector('.title');
this.titleWidth = this.title.offsetWidth;
this.groupTitle = this.titleContainer.querySelector('.group-title');
this.groups = this.titleContainer.querySelectorAll('.group-path');
this.toggle = null;
this.isHidden = false;
this.init();
if (this.title) {
this.titleWidth = this.title.offsetWidth;
this.groupTitle = this.titleContainer.querySelector('.group-title');
this.groups = this.titleContainer.querySelectorAll('.group-path');
this.toggle = null;
this.isHidden = false;
this.init();
}
}
init() {
......
module BreadcrumbsHelper
def breadcrumbs_extra_links(text, link)
@breadcrumbs_extra_links ||= []
@breadcrumbs_extra_links.push({
text: text,
link: link
})
end
def breadcrumb_title_link
return @breadcrumb_link if @breadcrumb_link
if controller.available_action?(:index)
url_for(action: "index")
else
request.path
end
end
end
- @breadcrumb_title = "Appearance"
- page_title "Appearance"
%h3.page-title
......
- @breadcrumb_title = "Settings"
- page_title "Settings"
%h3.page-title Settings
......
- @breadcrumb_title = "Messages"
- page_title "Broadcast Messages"
= render 'form'
- @breadcrumb_title = "Messages"
- page_title "Broadcast Messages"
%h3.page-title
......
- @breadcrumb_title = "System Hooks"
- page_title 'System Hooks'
%h3.page-title
System hooks
......
- @breadcrumb_title = "Services Templates"
- page_title "Service Templates"
%h3.page-title Service templates
%p.light Service template allows you to set default values for project services
......
- @breadcrumb_title = "Activity"
- @hide_top_links = true
- @no_container = true
......
- @hide_top_links = true
- page_title "Issues"
- header_title "Issues", issues_dashboard_path(assignee_id: current_user.id)
= content_for :meta_tags do
......
- @hide_top_links = true
- page_title "Merge Requests"
- header_title "Merge Requests", merge_requests_dashboard_path(assignee_id: current_user.id)
......
- @hide_top_links = true
- @no_container = true
- page_title "Starred Projects"
......
- @hide_top_links = true
- page_title "Todos"
- header_title "Todos", dashboard_todos_path
......
- @hide_top_links = true
- page_title "Groups"
- header_title "Groups", dashboard_groups_path
......
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
......
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
......
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
......
- @breadcrumb_title = "Settings"
= render "groups/settings_head"
.panel.panel-default.prepend-top-default
.panel-heading
......
- @breadcrumb_title = "Members"
- page_title "Members"
.project-members-page.prepend-top-default
......
- @breadcrumb_title = "Issues"
- page_title "Issues"
- group_issues_exists = group_issues(@group).exists?
= render "head_issues"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment