summaryrefslogtreecommitdiff
path: root/app/views/projects/commit
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-04-21 15:09:37 +0100
committerPhil Hughes <me@iamphill.com>2017-04-24 16:20:50 +0100
commit3f2578bce5afbb1f92acab2481ec6de2f38a6296 (patch)
treef53ea7d57645294fa1f71f34cf0393efc80eb4fc /app/views/projects/commit
parentd35515cb5b00fc96c6fe38bbecf20924a48d0653 (diff)
downloadgitlab-ce-3f2578bce5afbb1f92acab2481ec6de2f38a6296.tar.gz
Commit view correctly spans the full width when parallel view
Closes #30881
Diffstat (limited to 'app/views/projects/commit')
-rw-r--r--app/views/projects/commit/show.html.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/commit/show.html.haml b/app/views/projects/commit/show.html.haml
index 0d11da2451a..cdf0f11dc5f 100644
--- a/app/views/projects/commit/show.html.haml
+++ b/app/views/projects/commit/show.html.haml
@@ -1,9 +1,11 @@
- @no_container = true
+- container_class = !fluid_layout && diff_view == :inline ? 'container-limited' : ''
+- limited_container_width = fluid_layout || diff_view == :inline ? '' : 'limit-container-width'
- page_title "#{@commit.title} (#{@commit.short_id})", "Commits"
- page_description @commit.description
= render "projects/commits/head"
-%div{ class: container_class }
+%div.container-fluid{ class: [limited_container_width, container_class] }
= render "commit_box"
- if @commit.status
= render "ci_menu"