gitlab-org--gitlab-foss/app/views/projects/blob/_text.html.haml
Dmitriy Zaporozhets 32ecb02784
Refactor scss
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-20 13:51:22 +02:00

13 lines
337 B
Text

- if gitlab_markdown?(blob.name)
.file-content.wiki
= preserve do
= markdown(blob.data)
- elsif markup?(blob.name)
.file-content.wiki
= render_markup(blob.name, blob.data)
- else
.file-content.code
- unless blob.empty?
= render 'shared/file_hljs', blob: blob
- else
.nothing-here-block Empty file