Commit graph

14 commits

Author SHA1 Message Date
Toon Claes
abc82a2508 Fix ProjectCacheWorker for plain READMEs
The ProjectCacheWorker refreshes cache periodically, but it runs outside Rails
context. So include the ActionView helpers so the `content_tag` method is
available.
2017-05-18 21:10:10 +02:00
Robert Speicher
cb2f739d48 Merge branch '27144-enforce-rubocop-trailing_commas-no_comma-style' into 'master'
Resolve "Use consistent style for trailing commas"

Closes #27144

See merge request !11063
2017-05-10 21:43:34 +00:00
Rémy Coutable
d40e1f547e Enable the Style/TrailingCommaInLiteral cop
Use the EnforcedStyleForMultiline: no_comma option.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Robert Speicher
99996b6bc7 Merge branch 'bvl-security-9-1-markup-pipeline'
(security-9-1) Render asciidoc & other markup using banzai in a pipeline

See merge request !2098
2017-05-10 16:44:20 +02:00
Douwe Maan
0be3187a56 Pull preserve into render helpers 2017-04-28 11:37:19 -05:00
Toon Claes
35fd7e6c53 Avoid including the MarkupHelper 2017-04-27 13:22:18 +02:00
Toon Claes
5473f3dcd6 Add commit to the Banzai::post_process context 2017-04-27 13:22:17 +02:00
Toon Claes
af114f1280 markdown helper is not used with pre-rendered content 2017-04-27 13:22:17 +02:00
Toon Claes
677101b916 Make the _unsafe methods private 2017-04-27 13:22:17 +02:00
Toon Claes
310c3b21d1 Single quotes in MarkupHelper where possible 2017-04-27 13:22:17 +02:00
Douwe Maan
4f2d6b3e21 Refactor MarkupHelper 2017-04-27 13:22:17 +02:00
Toon Claes
05e0f50453 Cache the rendered README, but post-process on show
Because the post-processing of the rendered README is dependent on the
context (i.e. the current user), do the post-processing when the
README is being displayed.
2017-04-27 13:22:17 +02:00
Toon Claes
ef4d4446e9 Move some methods from ApplicationHelper to MarkupHelper 2017-04-27 13:22:17 +02:00
Toon Claes
d95bffc6da Rename GitlabMarkdownHelper -> MarkupHelper
It does more than solely GitLab Markdown, so rename to MarkupHelper.
2017-04-27 13:22:17 +02:00
Renamed from app/helpers/gitlab_markdown_helper.rb (Browse further)