9920551536
This commit alters views for the following models to use the markdown cache if present: * AbuseReport * Appearance * ApplicationSetting * BroadcastMessage * Group * Issue * Label * MergeRequest * Milestone * Project At the same time, calls to `escape_once` have been moved into the `single_line` Banzai pipeline, so they can't be missed out by accident and the work is done at save, rather than render, time.
14 lines
498 B
Text
14 lines
498 B
Text
- unless @snippet.content.empty?
|
|
- if markup?(@snippet.file_name)
|
|
%textarea.markdown-snippet-copy.blob-content{data: {blob_id: @snippet.id}}
|
|
= @snippet.content
|
|
.file-content.wiki
|
|
- if gitlab_markdown?(@snippet.file_name)
|
|
= preserve(markdown_field(@snippet, :content))
|
|
- else
|
|
= render_markup(@snippet.file_name, @snippet.content)
|
|
- else
|
|
= render 'shared/file_highlight', blob: @snippet
|
|
- else
|
|
.file-content.code
|
|
.nothing-here-block Empty file
|