Commit 80a013ef authored by Phil Hughes's avatar Phil Hughes

removed show_new_nav? references

parent 2aa8a75f
...@@ -16,35 +16,19 @@ module GroupsHelper ...@@ -16,35 +16,19 @@ module GroupsHelper
full_title = '' full_title = ''
group.ancestors.reverse.each_with_index do |parent, index| group.ancestors.reverse.each_with_index do |parent, index|
if show_new_nav? && index > 0 if index > 0
add_to_breadcrumb_dropdown(group_title_link(parent, hidable: false, show_avatar: true), location: :before) add_to_breadcrumb_dropdown(group_title_link(parent, hidable: false, show_avatar: true), location: :before)
else else
full_title += if show_new_nav? full_title += breadcrumb_list_item group_title_link(parent, hidable: false)
breadcrumb_list_item group_title_link(parent, hidable: false)
else
"#{group_title_link(parent, hidable: true)} <span class='hidable'> / </span>".html_safe
end
end end
end end
if show_new_nav?
full_title += render "layouts/nav/breadcrumbs/collapsed_dropdown", location: :before, title: _("Show parent subgroups") full_title += render "layouts/nav/breadcrumbs/collapsed_dropdown", location: :before, title: _("Show parent subgroups")
end
full_title += if show_new_nav? full_title += breadcrumb_list_item group_title_link(group)
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 breadcrumb-item-text js-breadcrumb-item-text') if name full_title += ' &middot; '.html_safe + link_to(simple_sanitize(name), url, class: 'group-path breadcrumb-item-text js-breadcrumb-item-text') if name
if show_new_nav?
full_title.html_safe full_title.html_safe
else
content_tag :span, class: 'group-title' do
full_title.html_safe
end
end
end end
def projects_lfs_status(group) def projects_lfs_status(group)
...@@ -86,7 +70,7 @@ module GroupsHelper ...@@ -86,7 +70,7 @@ module GroupsHelper
def group_title_link(group, hidable: false, show_avatar: false) def group_title_link(group, hidable: false, show_avatar: false)
link_to(group_path(group), class: "group-path breadcrumb-item-text js-breadcrumb-item-text #{'hidable' if hidable}") do link_to(group_path(group), class: "group-path breadcrumb-item-text js-breadcrumb-item-text #{'hidable' if hidable}") do
output = output =
if (group.try(:avatar_url) || show_avatar)) && !Rails.env.test? if (group.try(:avatar_url) || show_avatar) && !Rails.env.test?
image_tag(group_icon(group), class: "avatar-tile", width: 15, height: 15) image_tag(group_icon(group), class: "avatar-tile", width: 15, height: 15)
else else
"" ""
......
...@@ -127,20 +127,7 @@ module IssuablesHelper ...@@ -127,20 +127,7 @@ module IssuablesHelper
def issuable_meta(issuable, project, text) def issuable_meta(issuable, project, text)
output = "" output = ""
output << "Opened #{time_ago_with_tooltip(issuable.created_at)} by ".html_safe
unless show_new_nav?
output << content_tag(:strong, class: "identifier") do
concat("#{text} ")
concat(to_url_reference(issuable))
end
end
opened_text = if show_new_nav?
"Opened"
else
" opened"
end
output << "#{opened_text} #{time_ago_with_tooltip(issuable.created_at)} by ".html_safe
output << content_tag(:strong) do output << content_tag(:strong) do
author_output = link_to_member(project, issuable.author, size: 24, mobile_classes: "hidden-xs", tooltip: true) author_output = link_to_member(project, issuable.author, size: 24, mobile_classes: "hidden-xs", tooltip: true)
author_output << link_to_member(project, issuable.author, size: 24, by_username: true, avatar: false, mobile_classes: "hidden-sm hidden-md hidden-lg") author_output << link_to_member(project, issuable.author, size: 24, by_username: true, avatar: false, mobile_classes: "hidden-sm hidden-md hidden-lg")
......
...@@ -82,11 +82,7 @@ module PageLayoutHelper ...@@ -82,11 +82,7 @@ module PageLayoutHelper
else else
return @header_title unless @header_title_url return @header_title unless @header_title_url
if show_new_nav?
breadcrumb_list_item(link_to(@header_title, @header_title_url)) breadcrumb_list_item(link_to(@header_title, @header_title_url))
else
link_to(@header_title, @header_title_url)
end
end end
end end
......
...@@ -60,7 +60,7 @@ module ProjectsHelper ...@@ -60,7 +60,7 @@ module ProjectsHelper
link_to(simple_sanitize(owner.name), user_path(owner)) link_to(simple_sanitize(owner.name), user_path(owner))
end end
project_link = link_to project_path(project), { class: ("project-item-select-holder" unless show_new_nav?) } do project_link = link_to project_path(project) do
output = output =
if project.avatar_url && !Rails.env.test? if project.avatar_url && !Rails.env.test?
project_icon(project, alt: project.name, class: 'avatar-tile', width: 15, height: 15) project_icon(project, alt: project.name, class: 'avatar-tile', width: 15, height: 15)
...@@ -72,12 +72,10 @@ module ProjectsHelper ...@@ -72,12 +72,10 @@ module ProjectsHelper
output.html_safe output.html_safe
end end
if show_new_nav?
namespace_link = breadcrumb_list_item(namespace_link) unless project.group namespace_link = breadcrumb_list_item(namespace_link) unless project.group
project_link = breadcrumb_list_item project_link project_link = breadcrumb_list_item project_link
end
"#{namespace_link} #{('/' unless show_new_nav?)} #{project_link}".html_safe "#{namespace_link} #{project_link}".html_safe
end end
def remove_project_message(project) def remove_project_message(project)
......
...@@ -2,18 +2,12 @@ ...@@ -2,18 +2,12 @@
- breadcrumb_title @page.title.capitalize - breadcrumb_title @page.title.capitalize
- wiki_breadcrumb_dropdown_links(@page.slug) - wiki_breadcrumb_dropdown_links(@page.slug)
- page_title @page.title.capitalize, "Wiki" - page_title @page.title.capitalize, "Wiki"
- add_to_breadcrumbs "Wiki", get_project_wiki_path(@project)
- if show_new_nav?
- add_to_breadcrumbs "Wiki", get_project_wiki_path(@project)
.wiki-page-header.has-sidebar-toggle .wiki-page-header.has-sidebar-toggle
%button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" } %button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
= icon('angle-double-left') = icon('angle-double-left')
- unless show_new_nav?
.wiki-breadcrumb
%span= breadcrumb(@page.slug)
.nav-text .nav-text
%h2.wiki-page-title= @page.title.capitalize %h2.wiki-page-title= @page.title.capitalize
%span.wiki-last-edit-by %span.wiki-last-edit-by
......
...@@ -3,14 +3,8 @@ ...@@ -3,14 +3,8 @@
%span.sr-only %span.sr-only
= visibility_level_label(@snippet.visibility_level) = visibility_level_label(@snippet.visibility_level)
= visibility_level_icon(@snippet.visibility_level, fw: false) = visibility_level_icon(@snippet.visibility_level, fw: false)
- unless show_new_nav?
%strong.item-title
Snippet #{@snippet.to_reference}
%span.creator %span.creator
- if show_new_nav?
Authored Authored
- else
authored
= time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago') = time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')
by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title", avatar_class: "hidden-xs")} by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title", avatar_class: "hidden-xs")}
......
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