summaryrefslogtreecommitdiff
path: root/app/controllers/snippets_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Merge branch 'master' into fix-restricted-visibilityVinnie Okada2015-03-141-2/+2
|\ | | | | | | | | Conflicts: db/schema.rb
| * Use same constant for amount of items per pageDmitriy Zaporozhets2015-03-121-2/+2
| |
* | Enforce restricted visibilities for snippetsVinnie Okada2015-03-081-12/+6
|/ | | | | | 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.
* Link head panel titles to relevant root page.Douwe Maan2015-02-131-0/+1
|
* Rubocop enabled for: Use spaces inside hash literal bracesDmitriy Zaporozhets2015-02-021-1/+1
|
* Sanitize snippet file name in raw headersDmitriy Zaporozhets2014-12-121-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix raw view for public snippetsValery Sizov2014-10-271-1/+1
|
* fix for public snippetValery Sizov2014-10-241-1/+1
|
* Snippets: public/internal/privateValery Sizov2014-10-091-20/+22
|
* Snippets: rename public to internalValery Sizov2014-10-071-4/+4
|
* 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>
* Rename snippets scopes to plural names.Marin Jankovski2014-06-041-6/+6
|
* Replace snippets scopes in view and controller.Marin Jankovski2014-06-031-5/+5
|
* Replace now forbidden keywords public and private for snippets scopeMarin Jankovski2014-06-031-1/+1
|