gitlab-org--gitlab-foss/app/views/layouts
Fatih Acet 88fa5916ff Merge branch '22343-honor-user-fixed-layout-pref' into 'master'
Ensure the 'fixed layout' preference is honored whenever possible

## What does this MR do?

Currently, when viewing any Merge Request the user's fixed-layout preference is overridden if they have set "Side-by-Side" view as their preference when viewing diffs.  This makes sense if they are currently viewing a diff, but this is confusing when their layout preference is overridden while they are on another tab (i.e. "Discussion" or "Builds").

This MR moves all responsibility for overriding the fixed layout from the Ruby page layout helper into frontend JavaScript where it is only applied when needed.

## Are there points in the code the reviewer needs to double check?

Check that nothing broke for users which have their layout preference set to "Fluid" as well as those which have it set to "Fixed".  I've already done this but double checking is always good idea 😄.

## Screenshots (if relevant)

![side-by-side-toggle-fixed](/uploads/033dc73e70b73da5692b75606733c938/side-by-side-toggle-fixed.gif)

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- Tests
  - [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?

Closes #22343 

## Other Notes

As @lbennett noted in #22343, this is something of a band-aid.  It fixed most of the issue, but we still need to have a discussion about whether or not is acceptable to override user layout preferences for "Side-by-Side" views in general.  At least this MR limits the scope of this behavior to a single tab within an MR or merge conflict page.

See merge request !6422
2016-10-04 11:58:15 +00:00
..
header ensure the 'fixed layout' preference is honored whenever possible 2016-09-20 00:51:00 -05:00
nav Merge remote-tracking branch 'origin/master' into 21170-cycle-analytics 2016-09-20 14:48:13 +05:30
_bootlint.haml
_broadcast.html.haml
_flash.html.haml Add flash containers and broadcast messages below subnav 2016-10-01 00:21:37 +03:00
_google_analytics.html.haml
_head.html.haml Revert Subresource Integrity pending a fix for Firefox's incorrect hashing implementation. 2016-06-27 07:47:33 -06:00
_init_auto_complete.html.haml Correctly loads gfm autocomplete source on pages where it is required 2016-09-16 10:49:55 +01:00
_page.html.haml Fixes sidebar navigation. 2016-10-03 12:38:21 +03:00
_page_title.html.haml
_piwik.html.haml
_search.html.haml Tidy up the code a bit 2016-08-26 14:50:52 -05:00
_user_styles.html.haml
admin.html.haml Move admin nav to horizontal layout nav 2016-06-15 09:10:16 -05:00
application.html.haml Moved loading GFM source into zen.html.haml 2016-09-16 10:52:41 +01:00
dashboard.html.haml
devise.html.haml Render gon data in the page body, not head 2016-06-06 12:50:31 +05:30
devise_empty.html.haml Render gon data in the page body, not head 2016-06-06 12:50:31 +05:30
devise_mailer.html.haml New confirmation email 🔥 2016-05-25 16:56:06 -04:00
errors.html.haml Render gon data in the page body, not head 2016-06-06 12:50:31 +05:30
explore.html.haml
group.html.haml
group_settings.html.haml
help.html.haml
koding.html.haml Support integration with Koding (online IDE) 2016-08-19 12:10:58 -07:00
notify.html.haml Fix "Unsubscribe" link in notification emails that is triggered by anti-virus 2016-09-20 09:52:57 +02:00
profile.html.haml
project.html.haml Correctly loads gfm autocomplete source on pages where it is required 2016-09-16 10:49:55 +01:00
project_settings.html.haml
search.html.haml
snippets.html.haml