gitlab-org--gitlab-foss/app/views/shared/snippets/_blob.html.haml
Phil Hughes 704f468376 Replaced hidden div for textarea off-the screen
Element with the content being copied cant be hidden so instead i\'ve moved it off the screen
2016-03-10 13:34:31 +00:00

11 lines
374 B
Text

- unless @snippet.content.empty?
- if markup?(@snippet.file_name)
%textarea.markdown-snippet-copy.blob-content{data: {blob_id: @snippet.id}}
= @snippet.data
.file-content.wiki
= render_markup(@snippet.file_name, @snippet.data)
- else
= render 'shared/file_highlight', blob: @snippet
- else
.file-content.code
.nothing-here-block Empty file