summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-11 08:53:52 +0100
committerPhil Hughes <me@iamphill.com>2017-07-11 08:53:52 +0100
commitaa0a63082c7377b4eae6ff51ac6de14418c37657 (patch)
treedd4d1a24c63c19e17dd3d205799d7c091f14ae51 /app/views/projects
parent0b434daf52cb93ea42cb49ce15aa59dd01599181 (diff)
downloadgitlab-ce-aa0a63082c7377b4eae6ff51ac6de14418c37657.tar.gz
Added limit-container-width to breadcrumbs containerbreadcrumbs-limit-width
This fixes an issue where the content has a limited width but the breadcrumbs remained full width. Instead of creating a new variable specifically for the breadcrumbs, it just re-uses @content_class Closes #34573
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/commit/show.html.haml1
-rw-r--r--app/views/projects/show.html.haml1
-rw-r--r--app/views/projects/tree/show.html.haml1
3 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/commit/show.html.haml b/app/views/projects/commit/show.html.haml
index b778e8af121..07c83c0a590 100644
--- a/app/views/projects/commit/show.html.haml
+++ b/app/views/projects/commit/show.html.haml
@@ -1,6 +1,7 @@
- @no_container = true
- container_class = !fluid_layout && diff_view == :inline ? 'container-limited' : ''
- limited_container_width = fluid_layout ? '' : 'limit-container-width'
+- @content_class = limited_container_width
- page_title "#{@commit.title} (#{@commit.short_id})", "Commits"
- page_description @commit.description
= render "projects/commits/head"
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index d413c4619be..a73e111ad6d 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -1,4 +1,5 @@
- @no_container = true
+- @content_class = "limit-container-width" unless fluid_layout
- flash_message_container = show_new_nav? ? :new_global_flash : :flash_message
= content_for :meta_tags do
diff --git a/app/views/projects/tree/show.html.haml b/app/views/projects/tree/show.html.haml
index 130980556c1..f727f340bb9 100644
--- a/app/views/projects/tree/show.html.haml
+++ b/app/views/projects/tree/show.html.haml
@@ -1,4 +1,5 @@
- @no_container = true
+- @content_class = "limit-container-width" unless fluid_layout
- page_title @path.presence || _("Files"), @ref
= content_for :meta_tags do