Commit Graph

24 Commits

Author SHA1 Message Date
GitLab Bot 0ae8428c8e Add latest changes from gitlab-org/gitlab@master 2021-05-11 21:10:21 +00:00
GitLab Bot 2ac4833015 Add latest changes from gitlab-org/gitlab@master 2020-10-08 18:08:32 +00:00
GitLab Bot a1d7324742 Add latest changes from gitlab-org/gitlab@master 2020-08-26 00:10:31 +00:00
GitLab Bot ae93b28401 Add latest changes from gitlab-org/gitlab@master 2020-04-14 21:09:52 +00:00
GitLab Bot 898e2cc1df Add latest changes from gitlab-org/gitlab@master 2019-12-20 09:24:38 +00:00
GitLab Bot aa10b541b6 Add latest changes from gitlab-org/gitlab@master 2019-12-09 09:08:00 +00:00
GitLab Bot 190e204dec Add latest changes from gitlab-org/gitlab@master 2019-11-17 12:06:19 +00:00
Vladimir Shushlin ddfdd494f0 Allow maintainers to remove pages
Move remove_pages permission to maintainer
Fix before_action in pages controller to check `remove_pages`
permission
Add specs
2019-02-25 11:43:19 +00:00
Rémy Coutable 3a2abc1d50
Enable the Layout/ExtraSpacing cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-24 13:05:45 +01:00
gfyoung 12ee2753c1 Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
2018-09-25 22:43:49 -07:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Yorick Peterse 9606dbbb03
Whitelist existing destroy_all offenses
This whitelists all existing places where we use "destroy_all".
2018-08-16 17:29:37 +02:00
Rob Watson 9d45951fca Add HTTPS-only pages
Closes #28857
2018-03-22 19:58:36 +01:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
blackst0ne a544e46bb0 Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers 2017-06-07 09:45:16 +11:00
Mark Fletcher 3ce95e7c16 Disable navigation to Pages config if Pages is disabled
* Regards project-level pages config
- Nav link is now shown only if Pages is enabled for instance
- Navigation to following controllers denied if Pages disabled:
  * projects/pages_controller
  * projects/pages_domains_controller
- 'disabled' partial removed
+ Test for pages_controller introduced
2017-05-04 14:11:40 +08:00
Kamil Trzcinski 3e6cbcdd00 Fix pages abilities 2017-01-31 22:55:28 +00:00
Kamil Trzcinski 7f12cb0eed Split PagesController into PagesController and PagesDomainsController
1. PagesController is used to show all domains and general overview of Pages
2. PagesDomainsController is used to manage pages domains
2017-01-31 22:53:58 +00:00
Kamil Trzcinski b7fd7daee4 Fix rubocop complains 2017-01-31 22:53:57 +00:00
Kamil Trzcinski e5e2e7b703 Fix the remove_pages 2017-01-31 22:53:57 +00:00
Kamil Trzcinski 13b6bad17e Implement extra domains and save pages configuration 2017-01-31 22:53:57 +00:00
Kamil Trzcinski f034f6b3ec WIP 2017-01-31 22:53:57 +00:00
Kamil Trzcinski 930a7030b5 Implement proper verification of certificate's public_key against the private_key 2017-01-31 22:53:57 +00:00
Kamil Trzcinski 5f7257c27d Initial work on GitLab Pages update 2017-01-31 22:53:57 +00:00