summaryrefslogtreecommitdiff
path: root/app/controllers/snippets_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Block private snippets from being embeddableMark Chao2018-12-201-1/+7
|
* Make getting a user by the username case insensitiveWilliam George2018-10-181-5/+1
|
* Enable frozen string in app/controllers/**/*.rbrepo-forks/gitlab-ce-frozen-string-app-controllergfyoung2018-09-181-0/+2
| | | | | | | | | | | | Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+4
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* 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/+4
|
* Add support for markdown preview to group milestonesmove_markdown_preview_to_concernVitaliy @blackst0ne Klachkov2017-10-111-11/+1
|
* 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-0/+4
|
* Merge branch '12910-snippets-description' into 'master'Phil Hughes2017-06-071-1/+9
|\ | | | | | | | | | | | | Support descriptions for snippets Closes #31894 See merge request !11071
| * Support uploads for newly created personal snippets12910-snippets-descriptionJarka Kadlecova2017-06-071-1/+1
| |
| * Support descriptions for snippetsJarka Kadlecova2017-05-311-1/+9
| |
* | 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-6/+2
| | | | | | Refactor snippets finder & dont return internal snippets for external users See merge request !2094
* Merge branch 'snippets_visibility' into 'security'Sean McGivern2017-05-101-9/+9
| | | | | | Fix snippets visibility for show action - external users can not see internal snippets See merge request !2087
* Support comments for personal snippetsJarka Kadlecova2017-05-051-0/+1
|
* Display slash commands outcome when previewing Markdownadam-separate-slash-commandsRares Sfirlogea2017-05-041-2/+8
| | | | | | | | | | Remove slash commands from Markdown preview and display their outcome next to the text field. Introduce new "explanation" block to our slash commands DSL. Introduce optional "parse_params" block to slash commands DSL that allows to process a parameter before it is passed to "explanation" or "command" blocks. Pass path for previewing Markdown as "data" attribute instead of setting a variable on "window".
* Merge branch 'dm-snippet-download-button' into 'master' Sean McGivern2017-05-021-11/+3
|\ | | | | | | | | Add download button to project snippets See merge request !11004
| * Add download button to project snippetsdm-snippet-download-buttonDouwe Maan2017-04-301-11/+3
| |
* | Display comments for personal snippets12910-personal-snippets-notes-showJarka Kadlecova2017-05-021-0/+6
|/
* Use blob viewers for snippetsDouwe Maan2017-04-301-0/+13
|
* Support preview_markdown action for personal_snippetsJarka Kadlecova2017-04-261-0/+5
|
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-2/+2
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Enable Style/MultilineHashBraceLayoutDouwe Maan2017-02-231-1/+2
|
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-4/+4
|
* Merge branch '28093-snippet-and-issue-spam-check-on-edit' into 'master'Sean McGivern2017-02-221-5/+8
|\ | | | | | | | | | | | | Spam check and reCAPTCHA improvements Closes #28093 See merge request !9248
| * Spam check and reCAPTCHA improvements28093-snippet-and-issue-spam-check-on-editOswaldo Ferreira2017-02-211-5/+8
| |
* | No more and/orDouwe Maan2017-02-211-1/+1
|/
* Download snippets with LF line-endings by defaultJarka Kadlecova2017-02-201-13/+2
|
* Check public snippets for spamSean McGivern2017-02-021-2/+4
| | | | | | 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.
* Added 'Download' button to snippet viewJustin DiPierro2016-10-111-3/+11
|
* Snippets get award emoji! :thumbsup:Z.J. van de Weg2016-09-191-0/+3
|
* user routings refactorLong Nguyen2016-05-081-2/+20
|
* Remove unused view and update redirect when destroy snippetLong Nguyen2016-05-051-1/+1
|
* Remove unused code, update spec, and update changelogLong Nguyen2016-05-051-19/+1
|
* Use the configured Kaminari "per page" defaultrs-use-kaminari-defaultRobert Speicher2016-03-191-1/+1
|
* Fix raw private snippets access workflowDouglas Barbosa Alexandre2015-11-251-1/+1
|
* Use `read` rather than `show` like the ability nameDouglas Barbosa Alexandre2015-11-021-2/+2
|
* Improve personal snippet access workflow. Fixes #3258Douglas Barbosa Alexandre2015-10-291-1/+8
|
* Move partial to right place and fix tests.Douwe Maan2015-09-081-1/+1
|
* Clean up overlap between dashboard and explore.Douwe Maan2015-09-081-6/+2
| | | | | - Split up SnippetsController into separate dashboard and explore sections. - Use consistent page titles, header titles and sidebars between dashboard and explore sections when signed in or not.
* Update controller filtersDmitriy Zaporozhets2015-06-261-2/+2
| | | | 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>
* Add helpers for header title and sidebar, and move setting those from ↵Douwe Maan2015-05-011-8/+1
| | | | controllers to layouts.
* Add a page title to every page.Douwe Maan2015-04-301-8/+3
|
* Merge branch 'master' into new-sidebarDmitriy Zaporozhets2015-04-231-5/+9
|\ | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: app/controllers/snippets_controller.rb
| * Fixed the Rails/ActionFilter copJeroen van Baarsen2015-04-201-5/+5
| | | | | | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* | Start applying new layout to snippets pagesDmitriy Zaporozhets2015-04-221-22/+18
|/