summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make default sorting preference work for Issues and MRs.issue_5546Rubén Dávila2016-01-221-4/+2
|
* Merge branch 'master' into issue_5546Rubén Dávila2016-01-221-0/+1
|\
| * Merge branch 'master' into issue_3945Douwe Maan2016-01-201-0/+11
| |\
| * \ Merge branch 'master' into issue_3945Douwe Maan2016-01-201-1/+1
| |\ \
| * \ \ Merge branch 'master' into issue_3945Rubén Dávila2016-01-141-1/+1
| |\ \ \
| * | | | Change strategy to highlight diffs. #3945Rubén Dávila2016-01-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Now we apply syntax highlighting to the whole old and new files. This basically help us to highlight adequately multiline content.
* | | | | Make sorting preference reusable for all projects.Rubén Dávila2016-01-221-6/+15
| | | | |
* | | | | Make cookie suffix more simpler.Rubén Dávila2016-01-211-2/+2
| | | | |
* | | | | Little refactor plus some specs.Rubén Dávila2016-01-211-12/+6
| | | | |
* | | | | Remember last sort option used.Rubén Dávila2016-01-201-1/+21
| |_|_|/ |/| | |
* | | | Send user context to SentryDouwe Maan2016-01-201-0/+11
| |_|/ |/| |
* | | Consider that URL can end with '/' before redirecting. #7975issue_7975Rubén Dávila2016-01-131-1/+1
| |/ |/|
* | Sort by ID when sorting using "Recently created"Yorick Peterse2016-01-071-1/+1
|/ | | | | | | | | Sorting by "id" has the same effect as sorting by created_at while performing far better and without the need of an extra index (in case one wanted to speed up sorting by "created_at"). Sorting by "Recently updated" still uses the physical "updated_at" column as there's no way to use the "id" column for this instead.
* Fixed codestyle and added 2FA documentationfeature/force-tfaGabriel Mazetto2015-12-241-2/+2
|
* specs for forced two-factor authentication and grace periodGabriel Mazetto2015-12-241-7/+3
| | | | simplified code and fixed stuffs
* Grace period support for TFAGabriel Mazetto2015-12-241-2/+18
|
* WIP require two factor authenticationGabriel Mazetto2015-12-241-0/+12
|
* add CAS authentication supporttduehr2015-12-141-0/+15
|
* Only redirect to homepage url when its not the root urlJeroen van Baarsen2015-11-021-7/+15
| | | | | | | | | | | It was possible to create an infi redirect when the user set up the `home_page_url` to redirect to the main URL of the gitlab instance. This fix makes sure this redirect is not possible. Fixes !1020 Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Merge branch 'project-path-case-sensitivity' into 'master' Robert Speicher2015-10-221-1/+0
|\ | | | | | | | | | | | | Prefer project with exact path to differently cased one when both exist. Fixes #3113. See merge request !1649
| * Move case sensitivity check to find_with_namespace.Douwe Maan2015-10-211-2/+1
| |
| * Prefer project with exact path to differently cased one when both exist.Douwe Maan2015-10-201-2/+2
| |
* | Redirect to a default path if HTTP_REFERER is not setStan Hu2015-10-201-0/+4
|/ | | | | | | | | | Safari 9.0 does not yet honor the HTML5 `origin-when-cross-origin` mode, and it's possible load balancers/proxies strip the HTTP_REFERER from the request header. In these cases, default to some default path. Closes #3122 Closes https://github.com/gitlabhq/gitlabhq/issues/9731
* Merge branch 'master' into git-archive-golanggit-archive-golangDouwe Maan2015-10-151-5/+1
|\
| * Only render 404 page from /publicinified_404_errorValery Sizov2015-10-131-5/+1
| |
* | Always return HTML in git_not_foundJacob Vosmaer2015-10-141-1/+1
|/ | | | This allows us to give a nice 404 for e.g. archive.zip.
* Redirect case sensitive project path to the normalized oneFrancesco Levorato2015-09-181-1/+6
|
* Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-gDmitriy Zaporozhets2015-09-091-5/+11
|\
| * FogBugz project importJared Szechy2015-09-081-1/+6
| |
| * Merge branch 'rs-remove-user-color-scheme-class' into 'master'Douwe Maan2015-08-271-4/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply syntax highlighting to fenced code blocks client-side Instead of applying the syntax highlighting scheme class to these blocks server-side, we use Javascript and Gon to apply the user's color scheme (or the default) client-side. This will make it easier to cache these blocks in the future because they're no longer state-dependent. See merge request !1203
| | * Remove user_color_scheme_classRobert Speicher2015-08-251-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Move helpers back to original directoryDmitriy Zaporozhets2015-09-091-6/+2
| | |
* | | Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-gDouwe Maan2015-08-261-1/+3
|\ \ \ | |/ /
| * | Prevent too many redirects error when home page URL set to external_urllStan Hu2015-08-261-1/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many users naively set the home page URL setting to external_url (e.g. https://mydomain.com). When an unauthenticated user signs in, this causes endless redirections. For example, this is occuring: 1. Unauthenticated user attempts to access https://mydomain.com/dashboard 2. Application redirects to the home page URL: https://mydomain.com 3. Repeat step 2 In step 3, ApplicationController should have redirected the user to https://mydomain.com/users/sign_in. Disabling the redirection if home page URL is the same as external_url prevents users from messing up. Closes https://github.com/gitlabhq/gitlabhq/issues/8843 Closes #2057
* | Groundwork for merging CI into CEDouwe Maan2015-08-251-5/+6
|/
* Import sources: show only enabled sourcesArtem Sidorenko2015-08-201-1/+29
|
* Allow custom label to be set for authentication providers.auth-icons-labelsDouwe Maan2015-07-231-3/+3
|
* Only enable HSTS header for HTTPS and port 443Stan Hu2015-07-121-1/+4
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9449
* Ensure `@sort` is set by set_filters_paramsrs-issue-1750Robert Speicher2015-07-081-0/+1
| | | | Closes #1750
* Fix redirection to home page URL for unauthorized usersDaniel Gerhardt2015-07-031-1/+1
| | | | | | | | | Redirection to the home page URL was broken by changing the target for `root_url` from `DashboardController` to `RootController` in 94d3c1433df9380ca83f1f35a540074ff0690410. This regression was introduced in the 7.12.0 release. Fixes #1916.
* Fix 403 Access Denied error messages when accessing Labels section in a ↵Stan Hu2015-06-181-6/+1
| | | | | | project that has MRs disabled but issues enabled Closes #1813
* Allow to configure a URL to show after sign outAlex Lossent2015-05-291-1/+1
|
* Set milestone on new issue when creating issue from index with milestone ↵Douwe Maan2015-05-271-4/+4
| | | | filter active.
* Fix Devise parameter sanitizer for otp_attemptRobert Speicher2015-05-091-1/+1
|
* Turn 2-factor authentication into 2 steps process. Disabled 2fa UI for ldap ↵Dmitriy Zaporozhets2015-05-091-1/+1
| | | | users since it is not supported
* Merge pull request #9234 from dsander/group-milestones-by-titleDmitriy Zaporozhets2015-05-031-25/+0
|\ | | | | Group milestones by title in the dashboard and all other issue views
| * Removed unused ApplicationController#set_filter_values methodDominik Sander2015-05-011-25/+0
| | | | | | | | | | The instance variables assigned in `set_filter_values` are not used by anything anymore.
* | Add helpers for header title and sidebar, and move setting those from ↵Douwe Maan2015-05-011-0/+1
|/ | | | controllers to layouts.
* Remove duplicate settings for default_url_optionsRobert Speicher2015-04-251-12/+0
| | | | Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2269
* Merge branch 'sign-out-to-sign-in' into 'master'Dmitriy Zaporozhets2015-04-231-0/+4
|\ | | | | | | | | | | | | | | Redirect to sign in page after signing out. Addresses internal issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2125. See merge request !541