2012-10-15 18:56:58 +00:00
|
|
|
- if gitlab_markdown?(blob.name)
|
2013-07-13 06:52:47 +00:00
|
|
|
.file-content.wiki
|
2012-10-15 18:56:58 +00:00
|
|
|
= preserve do
|
|
|
|
= markdown(blob.data)
|
|
|
|
- elsif markup?(blob.name)
|
2013-07-13 06:52:47 +00:00
|
|
|
.file-content.wiki
|
2014-01-08 14:32:03 +00:00
|
|
|
= render_markup(blob.name, blob.data)
|
2012-10-15 18:56:58 +00:00
|
|
|
- else
|
2013-07-13 06:52:47 +00:00
|
|
|
.file-content.code
|
2012-10-15 18:56:58 +00:00
|
|
|
- unless blob.empty?
|
2014-01-27 11:12:58 +00:00
|
|
|
= render 'shared/file_hljs', blob: blob
|
2012-10-15 18:56:58 +00:00
|
|
|
- else
|
2014-02-20 11:51:22 +00:00
|
|
|
.nothing-here-block Empty file
|