William George
1b153d497b
Make getting a user by the username case insensitive
2018-10-18 09:06:44 +00:00
gfyoung
73322a0e55
Enable frozen string in app/controllers/**/*.rb
...
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 .
2018-09-18 21:22:45 -07:00
Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
...
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Bob Van Landuyt
f1d3ea63cf
Show the status of a user in interactions
...
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
2018-07-30 15:01:26 +02:00
Lin Jen-Shin
4ee08b77bc
Updates from `rubocop -a`
2018-07-09 21:13:08 +08:00
haseeb
27e8d38cea
embedded snippets support
2018-02-28 18:48:26 +05:30
Vitaliy @blackst0ne Klachkov
64bb19069d
Add support for markdown preview to group milestones
2017-10-11 20:03:19 +11:00
micael.bergeron
966b1128d8
WIP: refactor the first-contributor to Issuable
...
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
2017-09-06 09:00:57 -04:00
Douwe Maan
fe13f11041
Create and use project path helpers that only need a project, no namespace
2017-07-05 11:11:59 -05:00
Phil Hughes
563ea34692
Merge branch '12910-snippets-description' into 'master'
...
Support descriptions for snippets
Closes #31894
See merge request !11071
2017-06-07 09:26:48 +00:00
Jarka Kadlecova
2e311d9d1a
Support uploads for newly created personal snippets
2017-06-07 07:52:41 +02:00
blackst0ne
a544e46bb0
Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers
2017-06-07 09:45:16 +11:00
Jarka Kadlecova
4464c22d6d
Support descriptions for snippets
2017-05-31 07:17:03 +02:00
Douwe Maan
aed0387f97
Consistent diff and blob size limit names
2017-05-29 17:02:02 -05:00
Douwe Maan
ad309f5d11
Merge branch 'snippets-finder-visibility' into 'security'
...
Refactor snippets finder & dont return internal snippets for external users
See merge request !2094
2017-05-10 16:48:18 +02:00
Sean McGivern
d9ec830a83
Merge branch 'snippets_visibility' into 'security'
...
Fix snippets visibility for show action - external users can not see internal snippets
See merge request !2087
2017-05-10 16:44:20 +02:00
Jarka Kadlecova
e4f7b87ddb
Support comments for personal snippets
2017-05-05 15:45:49 +02:00
Rares Sfirlogea
45e4c66565
Display slash commands outcome when previewing Markdown
...
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".
2017-05-04 17:02:25 +02:00
Sean McGivern
c5dee301f8
Merge branch 'dm-snippet-download-button' into 'master'
...
Add download button to project snippets
See merge request !11004
2017-05-02 15:25:26 +00:00
Jarka Kadlecova
8c3a03c1b9
Display comments for personal snippets
2017-05-02 13:07:53 +02:00
Douwe Maan
2b3fc5e624
Add download button to project snippets
2017-04-30 17:52:49 -05:00
Douwe Maan
60ebd101d0
Use blob viewers for snippets
2017-04-30 11:21:20 -05:00
Jarka Kadlecova
87327c5845
Support preview_markdown action for personal_snippets
2017-04-26 12:51:06 +02:00
Douwe Maan
1fe7501b49
Revert "Prefer leading style for Style/DotPosition"
...
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan
eacae00516
Enable Style/MultilineHashBraceLayout
2017-02-23 09:32:22 -06:00
Douwe Maan
206953a430
Prefer leading style for Style/DotPosition
2017-02-23 09:32:22 -06:00
Sean McGivern
7e8a6a63af
Merge branch '28093-snippet-and-issue-spam-check-on-edit' into 'master'
...
Spam check and reCAPTCHA improvements
Closes #28093
See merge request !9248
2017-02-22 10:13:20 +00:00
Douwe Maan
f40716f48a
No more and/or
2017-02-21 16:31:14 -06:00
Oswaldo Ferreira
2ace39f242
Spam check and reCAPTCHA improvements
2017-02-21 13:32:49 -03:00
Jarka Kadlecova
c9d687d6fe
Download snippets with LF line-endings by default
2017-02-20 07:24:03 +01:00
Sean McGivern
c63194ce6f
Check public snippets for spam
...
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.
2017-02-02 10:23:51 +00:00
Justin DiPierro
32186b4ab8
Added 'Download' button to snippet view
2016-10-11 15:36:59 -04:00
Z.J. van de Weg
25004cbc32
Snippets get award emoji! 👍
2016-09-19 19:47:43 +03:00
Long Nguyen
ffda8a1a0e
user routings refactor
2016-05-08 15:27:33 +07:00
Long Nguyen
ae29ec31e4
Remove unused view and update redirect when destroy snippet
2016-05-05 14:57:34 +07:00
Long Nguyen
8dc19494c3
Remove unused code, update spec, and update changelog
2016-05-05 13:26:36 +07:00
Robert Speicher
085538c2bd
Use the configured Kaminari "per page" default
2016-03-19 17:37:54 -04:00
Douglas Barbosa Alexandre
8dcef120cd
Fix raw private snippets access workflow
2015-11-25 18:16:27 -02:00
Douglas Barbosa Alexandre
93672c5020
Use `read` rather than `show` like the ability name
2015-11-02 14:03:42 -02:00
Douglas Barbosa Alexandre
c8fe421512
Improve personal snippet access workflow. Fixes #3258
2015-10-29 18:42:29 -02:00
Douwe Maan
1489d225d6
Move partial to right place and fix tests.
2015-09-08 15:14:14 +01:00
Douwe Maan
5d785457db
Clean up overlap between dashboard and explore.
...
- 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.
2015-09-08 14:49:20 +01:00
Dmitriy Zaporozhets
d63371ad78
Update controller filters
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-26 16:44:21 +02:00
Dmitriy Zaporozhets
342d553709
Rename abilities to correspond contoller/model action names
...
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>
2015-06-26 15:55:56 +02:00
Douwe Maan
92fd3ccee0
Add helpers for header title and sidebar, and move setting those from controllers to layouts.
2015-05-01 10:39:16 +02:00
Douwe Maan
26ad250989
Add a page title to every page.
2015-04-30 19:12:15 +02:00
Dmitriy Zaporozhets
71f6143552
Merge branch 'master' into new-sidebar
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Conflicts:
app/controllers/snippets_controller.rb
2015-04-23 12:08:03 +03:00
Dmitriy Zaporozhets
4a63573b21
Start applying new layout to snippets pages
2015-04-22 18:17:43 +03:00
Jeroen van Baarsen
5a4ebfb47a
Fixed the Rails/ActionFilter cop
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-04-20 15:39:37 +02:00
Vinnie Okada
ad0ca0499a
Merge branch 'master' into fix-restricted-visibility
...
Conflicts:
db/schema.rb
2015-03-14 10:49:11 -06:00