summaryrefslogtreecommitdiff
path: root/app/controllers/projects/snippets_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Ensure private project snippets are not viewable by unauthorized peopleRémy Coutable2016-03-251-1/+5
| | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/14607.
* Use the configured Kaminari "per page" defaultrs-use-kaminari-defaultRobert Speicher2016-03-191-1/+1
|
* Fix autocomplete for new issues/MRs/snippetsfix-autocomplete-new-issuesYorick Peterse2016-01-151-1/+1
|
* Update style of snippets pagesDouwe Maan2015-10-181-0/+1
|
* Fix 500 error when try to create project snippet without contentDmitriy Zaporozhets2015-08-261-3/+8
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Update controller filtersDmitriy Zaporozhets2015-06-261-3/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-261-1/+1
| | | | | | | | | | | | | | | | | write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fixed the Rails/ActionFilter copJeroen van Baarsen2015-04-201-6/+6
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Enforce restricted visibilities for snippetsVinnie Okada2015-03-081-14/+10
| | | | | | Add new service classes to create and update project and personal snippets. These classes are responsible for enforcing restricted visibility settings for non-admin users.
* Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-3/+4
| | | | | | Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
* Sanitize snippet file name in raw headersDmitriy Zaporozhets2014-12-121-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Snippets: public/internal/privateValery Sizov2014-10-091-2/+5
|
* Set charset encoding to UTF-8 for snippetsJeroen van Baarsen2014-08-161-1/+1
| | | | | | Fixes #2678 Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Project hook, milestone, snippet strong paramsDmitriy Zaporozhets2014-06-261-2/+6
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Update commentable controllers with new note varsDmitriy Zaporozhets2013-12-251-2/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Make note anchors actually workDmitriy Zaporozhets2013-12-251-1/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Modify permissions for project and groupDmitriy Zaporozhets2013-09-251-2/+0
| | | | | | | * Hooks and team pages allowed only for masters/owners * Group page allowed for admin * Corrent authentication for Projects controller * Hide some project elements from visitor
* Move projects controllers/views in Projects moduleDmitriy Zaporozhets2013-06-231-1/+1
|
* Codestyle improvedAndrew8xx82013-03-251-5/+2
|
* Permissions for Project Snippet fixedAndrew8xx82013-03-251-6/+6
|
* Tests fixedAndrew8xx82013-03-251-2/+2
|
* Snippets feature refactored. Tests now use spinachAndrew8xx82013-03-241-7/+7
|
* Project Snippets now part of projectAndrew8xx82013-03-241-0/+2
|
* Project snippets moved to /projectsAndrew8xx82013-03-231-1/+1
|