summaryrefslogtreecommitdiff
path: root/app/controllers/snippets_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Render 404 instead of 500 if trying to see snippets of unexisting userDmitriy Zaporozhets2014-03-141-0/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove deprecated findersskv2014-01-191-1/+1
|
* Use navless layout for snippets pageDmitriy Zaporozhets2013-06-181-0/+8
|
* Restyle snippetsDmitriy Zaporozhets2013-06-051-12/+21
|
* Typos fixedAndrew8xx82013-03-251-2/+2
|
* Codestyle improvedAndrew8xx82013-03-251-7/+4
|
* Personal snippets controlelr refactoredAndrew8xx82013-03-251-28/+31
|
* Snippets feature refactored. Tests now use spinachAndrew8xx82013-03-241-1/+1
|
* fixed check for snippets module enabledDmitriy Zaporozhets2013-03-181-1/+1
|
* Move snippets to own tab as feature. Make it disabled for new projects by ↵Dmitriy Zaporozhets2013-03-181-0/+5
| | | | default
* Merge commit 'master' into discussionsRiyad Preukschas2013-01-151-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: app/assets/stylesheets/sections/notes.scss app/contexts/notes/load_context.rb app/models/project.rb app/observers/note_observer.rb app/roles/votes.rb app/views/commit/show.html.haml app/views/merge_requests/_show.html.haml app/views/merge_requests/diffs.js.haml app/views/merge_requests/show.js.haml app/views/notes/_note.html.haml features/steps/project/project_merge_requests.rb spec/models/note_spec.rb
| * Fix network test and snippets expiredDmitriy Zaporozhets2013-01-051-1/+1
| |
* | Merge branch 'master' into discussionsRiyad Preukschas2012-12-231-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: app/assets/stylesheets/main.scss app/models/project.rb app/views/notes/_common_form.html.haml app/views/notes/_per_line_form.html.haml lib/gitlab/markdown.rb spec/models/note_spec.rb
| * added NamespacedProject role. Extended project info displayed for admin. ↵Dmitriy Zaporozhets2012-12-141-2/+2
| | | | | | | | Fixed project limit
* | Refactor discussion replyRiyad Preukschas2012-12-031-0/+2
|/
* rename ProjectController to ProjectResourceControllerCyril2012-09-271-1/+1
|
* Merge branch 'master' into simplify_controllers2Cyril2012-09-271-1/+0
|\ | | | | | | | | | | Conflicts: app/controllers/commits_controller.rb app/controllers/refs_controller.rb
| * Remove unused render_full_content filterRobert Speicher2012-09-261-1/+0
| |
* | factorize before_filters and layout for projects related controllersCyril2012-09-261-6/+1
|/
* remove duplicate before_filterCyril2012-09-251-1/+0
|
* Fully embrace Ruby 1.9 hash syntaxRobert Speicher2012-08-101-8/+8
| | | | Didn't bother with files in db/, config/, or features/
* Styled snippets. Raw button for snippetrandx2012-06-121-1/+11
|