summaryrefslogtreecommitdiff
path: root/app/helpers/preferences_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable frozen string for app/helpers/**/*.rbgfyoung2018-09-061-0/+2
| | | | Partially addresses #47424.
* 'Assigned Issues' and 'Assigned Merge Requests' as dashboard user choicesElias Werberich2018-03-271-6/+8
|
* Move button list logic to project presenterOswaldo Ferreira2018-02-201-26/+0
|
* Merge branch '36679-non-authorized-user-may-see-wikis-or-pipeline-page' into ↵Douwe Maan2017-12-081-1/+1
| | | | | | | | | | | 'security-10-2' Fixes project visibility guidelines See merge request gitlab/gitlabhq!2226 (cherry picked from commit 877c42c0aaf3298d6001614c9706bc366ae4014c) e4fd1c26 Ensure project wiki visibility guidelines are met
* Add readme only option as project viewAnnabel Dunstone Gray2017-10-161-1/+2
|
* Revert "Merge branch 'revert-f2421b2b' into 'master'"revert-2f46c3a8Annabel Dunstone Gray2017-09-111-0/+4
| | | This reverts merge request !14148
* Revert "Merge branch ↵revert-f2421b2bRubén Dávila2017-09-081-4/+0
| | | | | '35012-navigation-add-option-to-change-navigation-color-palette' into 'master'" This reverts merge request !13619
* Small refactor after last code review.35012-navigation-add-option-to-change-navigation-color-paletteRuben Davila2017-09-071-1/+1
|
* Restore some changes from !9199Rubén Dávila2017-09-061-0/+4
|
* Hide clone panel and file list when user is only a guestJames Clark2017-05-071-1/+1
| | | | | | | | | | | | Fixes gitlab-org/gitlab-ce#17489 Fix test finding two of the same element Capybara will raise an exception because it finds two elements that match .nav-links. This means this test would fail, even if the page meets the conditions for passing the test. Add more tests for guest access
* Change project view default for existing users and anonymous visitors to ↵dz-fix-project-viewDmitriy Zaporozhets2017-04-101-1/+5
| | | | | | files+readme Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Change activity view wordingchange-activity-view-wordingAnnabel Dunstone Gray2017-03-071-1/+1
|
* Remove readme-only project view preferenceremove-readme-optionAnnabel Dunstone Gray2017-03-061-3/+2
|
* Change default project view for user from readme to files viewdz-change-project-viewDmitriy Zaporozhets2017-03-031-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove all gitlab theme related codeAnnabel Dunstone Gray2017-02-151-4/+0
|
* Enable `Style/RedundantException` cop and correct offenseRobert Speicher2017-02-101-1/+1
|
* adds fix for security issue when annonymous user does not have access to ↵23990-project-show-error-when-empty-repotiagonbotelho2016-11-171-3/+3
| | | | repository we now display the activity feed instead of the readme
* change empty project view to annonymous user from activity to empty partialtiagonbotelho2016-11-111-3/+5
|
* adds guard clause for readme model method and initializes a new view with ↵tiagonbotelho2016-11-111-1/+3
| | | | proper stylesheets
* Add visibility level to project repositoryissue_19734_2Felipe Artur2016-10-171-1/+15
|
* Implementing 'Groups View' and 'TODOs View' as options for dashboard ↵Elias Werberich2016-03-241-1/+3
| | | | | | preferences. Fixes #14585.
* Remove redundant helper method.Douwe Maan2015-10-171-8/+2
|
* Merge branch 'master' into cristianbica/gitlab-ce-user-project-view-filesDouwe Maan2015-10-171-0/+7
|\
| * improved code style and layout option namingPeter Göbel2015-10-051-2/+2
| |
| * added user preference to change layout widthPeter Göbel2015-10-051-0/+7
| |
* | Allow users to select the Files view as default project viewCristian Bica2015-10-011-1/+7
|/
* Add user preference to view project activity and starred project activity as ↵Stan Hu2015-09-261-1/+3
| | | | | | default dashboard Closes #2662
* Re-add user_color_scheme helperRobert Speicher2015-08-261-1/+5
| | | | Update PreferencesHelper specs
* Remove user_color_scheme_classRobert Speicher2015-08-251-4/+0
| | | | | | | | | Instead of rendering this value server-side, we use Javascript and Gon to apply the user's color scheme (or the default) to any syntax highlighted code blocks. This will make it easier to cache these blocks in the future because they're no longer state-dependent.
* Add Gitlab::ColorSchemes moduleRobert Speicher2015-08-251-23/+2
| | | | | Very similar to Gitlab::Theme, this contains all of the definitions for our syntax highlighting schemes.
* Allow user to specify content he wants to see on project pageproject-default-viewDmitriy Zaporozhets2015-07-131-0/+12
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Refactor dashboard_choicesRobert Speicher2015-06-131-13/+16
|
* Make the dashboard choice text match the text in the sidebarRobert Speicher2015-06-131-2/+2
|
* Add a form field to customize the dashboard preferenceRobert Speicher2015-06-131-0/+19
|
* Add PreferencesHelper moduleRobert Speicher2015-06-131-0/+31
Consolidates the helpers related to user preferences. Renames `app_theme` to `user_application_theme` to better explain what it is.