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

updated a bunch of breadcrumb titles

[ci skip]
parent 52252e70
No related branches found
No related tags found
No related merge requests found
Showing
with 72 additions and 105 deletions
@import "framework/variables";
@import 'framework/tw_bootstrap_variables';
@import "bootstrap/variables";
@import "framework/mixins";
 
header.navbar-gitlab-new {
color: $white-light;
Loading
Loading
@@ -293,45 +294,6 @@ header.navbar-gitlab-new {
display: flex;
min-height: 61px;
color: $gl-text-color;
border-bottom: 1px solid $border-color;
.dropdown-toggle-caret {
position: relative;
top: -1px;
padding: 0 5px;
color: $gl-text-color-secondary;
font-size: 10px;
line-height: 1;
background: none;
border: 0;
&:focus {
outline: 0;
}
}
// TODO: fallback to global style
.dropdown-menu {
.divider {
margin: 6px 0;
}
li {
padding: 0 1px;
a {
border-radius: 0;
padding: 8px 16px;
&.is-focused,
&:hover,
&:active,
&:focus {
background-color: $gray-darker;
}
}
}
}
}
 
.breadcrumbs-container {
Loading
Loading
@@ -339,42 +301,14 @@ header.navbar-gitlab-new {
width: 100%;
position: relative;
align-items: center;
.dropdown-menu-projects {
margin-top: -$gl-padding;
margin-left: $gl-padding;
}
border-bottom: 1px solid $border-color;
}
 
.breadcrumbs-links {
flex: 1;
min-width: 0;
align-self: center;
color: $gl-text-color-quaternary;
a {
color: $gl-text-color-secondary;
&:not(:first-child),
&.group-path {
margin-left: 4px;
}
&:not(:last-of-type),
&.group-path {
margin-right: 3px;
}
}
.title {
display: inline-block;
> a {
&:last-of-type:not(:first-child) {
font-weight: 600;
}
}
}
color: $gl-text-color-secondary;
 
.avatar-tile {
margin-right: 5px;
Loading
Loading
@@ -409,13 +343,30 @@ header.navbar-gitlab-new {
> li {
display: flex;
align-items: center;
position: relative;
&:not(:last-child) {
margin-right: 10px;
}
&:not(:first-child) {
margin-left: 10px;
}
}
 
a {
color: $gl-text-color;
@include str-truncated(128px);
color: currentColor;
}
}
 
.breadcrumbs-list-angle {
position: absolute;
right: -12px;
top: 50%;
transform: translateY(-50%);
}
.breadcrumbs-extra {
display: flex;
flex: 0 0 auto;
Loading
Loading
@@ -425,8 +376,12 @@ header.navbar-gitlab-new {
.breadcrumbs-sub-title {
margin: 0;
font-size: $gl-font-size;
font-weight: normal;
font-weight: 600;
line-height: 1;
a {
color: $gl-text-color;
}
}
 
.top-area {
Loading
Loading
Loading
Loading
@@ -22,4 +22,12 @@ module BreadcrumbsHelper
 
@breadcrumb_title = title
end
def breadcrumb_list_item(link)
content_tag "li" do
output = link
output << icon("angle-right", class: "breadcrumbs-list-angle")
output
end
end
end
Loading
Loading
@@ -15,17 +15,27 @@ module GroupsHelper
@has_group_title = true
full_title = ''
 
group.ancestors.reverse.each do |parent|
full_title += group_title_link(parent, hidable: true)
full_title += '<span class="hidable"> / </span>'.html_safe
group.ancestors.reverse.each_with_index do |parent, index|
full_title += if show_new_nav?
breadcrumb_list_item group_title_link(parent, hidable: index > 0)
else
group_title_link(parent, hidable: true)
end
end
 
full_title += group_title_link(group)
full_title += if show_new_nav?
breadcrumb_list_item group_title_link(group)
else
group_title_link(group)
end
full_title += ' &middot; '.html_safe + link_to(simple_sanitize(name), url, class: 'group-path') if name
 
content_tag :span, class: 'group-title' do
if show_new_nav?
full_title.html_safe
else
content_tag :span, class: 'group-title' do
full_title.html_safe
end
end
end
 
Loading
Loading
Loading
Loading
@@ -80,7 +80,11 @@ module PageLayoutHelper
@header_title = title
@header_title_url = title_url
else
@header_title_url ? link_to(@header_title, @header_title_url) : @header_title
if show_new_nav?
@header_title_url ? breadcrumb_list_item(link_to(@header_title, @header_title_url)) : @header_title
else
@header_title_url ? link_to(@header_title, @header_title_url) : @header_title
end
end
end
 
Loading
Loading
Loading
Loading
@@ -71,8 +71,8 @@ module ProjectsHelper
end
 
if show_new_nav?
namespace_link = content_tag "li", namespace_link
project_link = content_tag "li", project_link
namespace_link = breadcrumb_list_item(namespace_link) if project.group.nil?
project_link = breadcrumb_list_item project_link
end
 
if current_user && !show_new_nav?
Loading
Loading
- breadcrumb_title "General Settings"
= render "groups/settings_head"
.panel.panel-default.prepend-top-default
.panel-heading
Loading
Loading
- breadcrumb_title "Projects"
= render "groups/settings_head"
 
.panel.panel-default.prepend-top-default
Loading
Loading
- page_title "Pipelines"
- breadcrumb_title "CI / CD Settings"
- page_title "CI / CD"
= render "groups/settings_head"
 
= render 'ci/variables/index'
- @no_container = true
- breadcrumb_title "Group"
- breadcrumb_title "Details"
 
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, group_url(@group, rss_url_options), title: "#{@group.name} activity")
Loading
Loading
Loading
Loading
@@ -7,16 +7,17 @@
= button_tag class: 'toggle-mobile-nav', type: 'button' do
%span.sr-only Open sidebar
= icon ('bars')
.breadcrumbs-links.js-title-container
%ul.list-unstyled.breadcrumbs-list
.breadcrumbs-links.js-title-container
%ul.list-unstyled.breadcrumbs-list
- unless hide_top_links
- if content_for?(:header_title_before)
%li= yield :header_title_before
= header_title
- if @breadcrumbs_extra_links
- @breadcrumbs_extra_links.each do |extra|
%li= link_to extra[:text], extra[:link]
%li
%h2.breadcrumbs-sub-title= link_to @breadcrumb_title, breadcrumb_link
%li
%h2.breadcrumbs-sub-title= link_to @breadcrumb_title, breadcrumb_link
- if content_for?(:breadcrumbs_extra)
.breadcrumbs-extra.hidden-xs= yield :breadcrumbs_extra
= yield :header_content
- breadcrumb_title "Profile"
- breadcrumb_title "Edit Profile"
- @content_class = "limit-container-width" unless fluid_layout
= render 'profiles/head'
 
Loading
Loading
- @no_container = true
 
- if show_new_nav?
- add_to_breadcrumbs(_("Project"), project_path(@project))
- page_title _("Activity")
= render "projects/head"
 
= render 'projects/last_push'
Loading
Loading
- @no_container = true
- @content_class = "issue-boards-content"
- breadcrumb_title "Issue Board"
- page_title "Boards"
 
- if show_new_nav?
- add_to_breadcrumbs("Issues", project_issues_path(@project))
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'filtered_search'
Loading
Loading
Loading
Loading
@@ -2,9 +2,6 @@
- page_title "Branches"
= render "projects/commits/head"
 
- if show_new_nav?
- add_to_breadcrumbs("Repository", project_tree_path(@project))
%div{ class: container_class }
.top-area.adjust
- if can?(current_user, :admin_project, @project)
Loading
Loading
- @no_container = true
- breadcrumb_title "Commit #{@commit.short_id}"
- container_class = !fluid_layout && diff_view == :inline ? 'container-limited' : ''
- limited_container_width = fluid_layout ? '' : 'limit-container-width'
- @content_class = limited_container_width
Loading
Loading
Loading
Loading
@@ -5,9 +5,6 @@
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, project_commits_url(@project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
 
- if show_new_nav?
- add_to_breadcrumbs("Repository", project_tree_path(@project))
= content_for :sub_nav do
= render "head"
 
Loading
Loading
- @no_container = true
- page_title "Compare"
- if show_new_nav?
- add_to_breadcrumbs("Repository", project_tree_path(@project))
= render "projects/commits/head"
 
%div{ class: container_class }
Loading
Loading
- @no_container = true
- breadcrumb_title "Compare"
- page_title "#{params[:from]}...#{params[:to]}"
- if show_new_nav?
- add_to_breadcrumbs("Repository", project_tree_path(@project))
= render "projects/commits/head"
 
%div{ class: container_class }
Loading
Loading
- @no_container = true
- page_title "Cycle Analytics"
- if show_new_nav?
- add_to_breadcrumbs("Project", project_path(@project))
- content_for :page_specific_javascripts do
= page_specific_javascript_bundle_tag('common_vue')
= page_specific_javascript_bundle_tag('cycle_analytics')
Loading
Loading
- breadcrumb_title "General Settings"
- page_title "General"
- @content_class = "limit-container-width" unless fluid_layout
- expanded = Rails.env.test?
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