summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add a `program` tag to Sentry Raven contextrs-sidekiq-sentry-contextRobert Speicher2016-04-091-0/+10
| | | | | | | | | This will let us filter errors by the program environment in which they were encountered. Source: http://stackoverflow.com/a/28370539/223897 Closes #15092
* Merge branch 'master' into issue_12658Douwe Maan2016-03-211-2/+0
|\ | | | | | | | | | | | | | | | | # Conflicts: # app/models/issue.rb # app/views/projects/_home_panel.html.haml # app/views/shared/projects/_project.html.haml # db/schema.rb # spec/models/project_spec.rb
| * Use the configured Kaminari "per page" defaultrs-use-kaminari-defaultRobert Speicher2016-03-191-2/+0
| |
* | Tweaks, refactoring, and specsDouwe Maan2016-03-201-61/+0
|/
* Move method to UserJacob Vosmaer2016-03-101-1/+1
|
* Rename ExpiringLock to ExclusiveLeaseJacob Vosmaer2016-03-101-1/+1
|
* Acquire lock before LDAP syncJacob Vosmaer2016-03-091-0/+2
|
* Fix build and add specsRubén Dávila2016-02-191-1/+8
|
* Provide explicit html format when rendering git_not_found pagers-git_not_foundRobert Speicher2016-02-151-1/+1
| | | | | Prior, if the request format was, for example, .zip, we'd get an `ActionView::MissingTemplate` error.
* Properly render the `errors/git_not_found` pageRobert Speicher2016-02-151-1/+1
|
* Various filter fixesJosh Frye2016-02-041-2/+2
|
* Paginate + ajax filter dashboard projectsJosh Frye2016-02-041-2/+3
|
* Support download access by PRIVATE-TOKEN headerStan Hu2016-02-031-0/+2
| | | | | | | | | Currently there is no way to download a raw file without embedding the token in the URL, which exposes the token in the URL. There should be an way of sending this information via the header as the API does. Closes https://github.com/gitlabhq/gitlabhq/issues/8137
* 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
|