summaryrefslogtreecommitdiff
path: root/app/controllers/projects/snippets_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-10-071-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-03-231-4/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-03-221-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-08-111-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-07-221-0/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-211-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-03-161-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-10-121-17/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-10-061-4/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-08-181-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-101-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-221-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-161-83/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-131-9/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-201-10/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-101-1/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-091-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-251-1/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-051-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-231-12/+12
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-171-8/+15
|
* Add controller concern for paginated collections65988-optimize-snippet-listingsMarkus Koller2019-09-101-3/+2
| | | | | | We had similar code in a few places to redirect to the last page if the given page number is out of range. This unifies the handling in a new controller concern and adds usage of it in all snippet listings.
* Optimize queries for snippet listingsMarkus Koller2019-09-101-7/+9
| | | | | - Avoid N+1 queries for authors and comment counts - Avoid an additional snippet existence query
* Rewrite `if:` argument in before_action and alike when `only:` is also usedGeorge Thomas2019-07-181-1/+2
| | | | | | Closes #55564 This is first discovered in #54739 (comment 122609857) that if both if: and only: are used in a before_action or after_action or alike, if: is completely ignored.
* Block private snippets from being embeddableMark Chao2018-12-201-1/+8
|
* Enable even more frozen string in app/controllersgfyoung2018-09-251-0/+2
| | | | | | | | | | | | 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.
* Show the status of a user in interactionsBob Van Landuyt2018-07-301-1/+1
| | | | | | | | | | | | | | | The status is shown for - The author of a commit when viewing a commit - Notes on a commit (regular/diff) - The user that triggered a pipeline when viewing a pipeline - The author of a merge request when viewing a merge request - The author of notes on a merge request (regular/diff) - The author of an issue when viewing an issue - The author of notes on an issue - The author of a snippet when viewing a snippet - The author of notes on a snippet - A user's profile page - The list of members of a group/user
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-1/+1
|
* embedded snippets supporthaseeb2018-02-281-0/+3
|
* WIP: refactor the first-contributor to Issuablemicael.bergeron2017-09-061-1/+1
| | | | | | | this will remove the need make N queries (per-note) at the cost of having to mark notes with an attribute this opens up the possibility for other special roles for notes
* Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-2/+6
|
* Use the new check_project_feature_available! method in project controllersNick Thomas2017-06-211-5/+1
|
* Merge branch '12910-snippets-description' into 'master'Phil Hughes2017-06-071-1/+1
|\ | | | | | | | | | | | | Support descriptions for snippets Closes #31894 See merge request !11071
| * Support descriptions for snippetsJarka Kadlecova2017-05-311-1/+1
| |
* | Add a rubocop rule to check if a method 'redirect_to' is used without ↵31840-add-a-rubocop-that-forbids-redirect_to-inside-a-controller-destroy-action-without-an-explicit-statusblackst0ne2017-06-071-1/+1
| | | | | | | | explicitly set 'status' in 'destroy' actions of controllers
* | Consistent diff and blob size limit namesDouwe Maan2017-05-291-1/+1
|/
* Merge branch 'snippets-finder-visibility' into 'security'Douwe Maan2017-05-101-3/+2
| | | | | | Refactor snippets finder & dont return internal snippets for external users See merge request !2094
* Use blob viewers for snippetsDouwe Maan2017-04-301-5/+18
|
* Address review commentsDouwe Maan2017-04-051-1/+1
|
* Add option to start a new discussion on an MRDouwe Maan2017-04-051-1/+4
|
* Spam check and reCAPTCHA improvements28093-snippet-and-issue-spam-check-on-editOswaldo Ferreira2017-02-211-13/+8
|
* Download snippets with LF line-endings by defaultJarka Kadlecova2017-02-201-12/+1
|
* Check public snippets for spamSean McGivern2017-02-021-3/+5
| | | | | | Apply the same spam checks to public snippets (either personal snippets that are public, or public snippets on public projects) as to issues on public projects.
* adds specs for respective behaviourTiago Botelho2016-12-211-2/+4
|
* Prevent empty pagination when list is not emptyTiago Botelho2016-12-211-1/+2
|
* add scope filters to project snippets pageMike Greiling2016-12-101-3/+5
|
* Start Frontend work, fix routing problemZ.J. van de Weg2016-09-191-1/+4
|
* Project tools visibility levelFelipe Artur2016-09-011-1/+1
|
* Fix snippets comments not displayed19388-fix-snippets-notes-not-shownRémy Coutable2016-07-011-1/+1
| | | | | | | The issue was that @notes were not passed to Banzai::NoteRenderer.render in Projects::SnippetsController#show. This was forgotten in d470f3d1. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Ensure project snippets have their own access levelRémy Coutable2016-03-251-1/+1
|