gitlab-org--gitlab-foss/app/views/projects/merge_requests
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
..
conflicts Fix hard coded plural text. 2016-08-13 00:30:44 +03:00
dropdowns Add a title attribute to each branch in the branches dropdown on the New MR page. 2016-05-31 22:38:10 -06:00
show Fix duplicate master entries in the mr versions dropdown 2016-09-28 15:02:01 +03:00
widget Changed mr widget build status to pipeline status with pipeline id, with a link to the pipeline 2016-09-22 14:36:21 +01:00
_discussion.html.haml Fixed comment & resolve button 2016-09-21 10:07:24 +01:00
_form.html.haml
_merge_request.html.haml Merge branch '18849-project-snippets-page-isn-t-really-responsive' into 'master' 2016-09-15 22:26:32 +00:00
_merge_requests.html.haml Add bulk update support for merge requests list 2016-09-08 11:52:20 +03:00
_new_compare.html.haml Added source branch text to dropdown toggle 2016-06-16 08:42:35 +01:00
_new_submit.html.haml Refactor to mark Changes tab as active on new MR page. 2016-08-18 07:33:27 -05:00
_show.html.haml ensure the 'fixed layout' preference is honored whenever possible 2016-09-20 00:51:00 -05:00
branch_from.html.haml
branch_to.html.haml
cancel_merge_when_build_succeeds.js.haml
conflicts.html.haml Don’t hardcode paths 2016-08-12 23:24:50 +03:00
diffs.html.haml
edit.html.haml Remove header title from project pages 2016-05-26 17:58:44 +02:00
index.html.haml Add bulk update support for merge requests list 2016-09-08 11:52:20 +03:00
invalid.html.haml Remove header title from project pages 2016-05-26 17:58:44 +02:00
merge.js.haml Don't allow merges with new commits 2016-06-01 20:34:41 +01:00
new.html.haml Remove header title from project pages 2016-05-26 17:58:44 +02:00
show.html.haml
update_branches.html.haml