Skip to content
Snippets Groups Projects
Commit c85df810 authored by Phil Hughes's avatar Phil Hughes
Browse files

improvements to breadcrumb titles, links & nesting

parent 6d3a9cc9
No related branches found
No related tags found
No related merge requests found
Showing
with 46 additions and 6 deletions
Loading
Loading
@@ -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() {
Loading
Loading
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
Loading
Loading
- @breadcrumb_title = "Settings"
- page_title "Settings"
 
%h3.page-title Settings
Loading
Loading
- @breadcrumb_title = "Messages"
- page_title "Broadcast Messages"
 
= render 'form'
- @breadcrumb_title = "Messages"
- page_title "Broadcast Messages"
 
%h3.page-title
Loading
Loading
- @breadcrumb_title = "System Hooks"
- page_title 'System Hooks'
%h3.page-title
System hooks
Loading
Loading
- @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
Loading
Loading
- @breadcrumb_title = "Activity"
- @hide_top_links = true
- @no_container = true
 
Loading
Loading
- @hide_top_links = true
- page_title "Issues"
- header_title "Issues", issues_dashboard_path(assignee_id: current_user.id)
= content_for :meta_tags do
Loading
Loading
- @hide_top_links = true
- page_title "Merge Requests"
- header_title "Merge Requests", merge_requests_dashboard_path(assignee_id: current_user.id)
 
Loading
Loading
- @hide_top_links = true
- @no_container = true
 
- page_title "Starred Projects"
Loading
Loading
- @hide_top_links = true
- page_title "Todos"
- header_title "Todos", dashboard_todos_path
 
Loading
Loading
- @hide_top_links = true
- page_title "Groups"
- header_title "Groups", dashboard_groups_path
 
Loading
Loading
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
 
Loading
Loading
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
 
Loading
Loading
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
 
Loading
Loading
- @breadcrumb_title = "Settings"
= render "groups/settings_head"
.panel.panel-default.prepend-top-default
.panel-heading
Loading
Loading
- @breadcrumb_title = "Members"
- page_title "Members"
 
.project-members-page.prepend-top-default
Loading
Loading
- @breadcrumb_title = "Issues"
- page_title "Issues"
- group_issues_exists = group_issues(@group).exists?
= render "head_issues"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment