gitlabhq/app/views/tree/_readme.html.haml

14 lines
335 B
Text
Raw Normal View History

2012-10-15 20:51:03 +02:00
.file_holder#README
.file_title
%i.icon-file
= readme.name
.file_content.wiki
- if gitlab_markdown?(readme.name)
= preserve do
= markdown(readme.data)
2012-10-16 08:43:22 +02:00
- elsif plain_text_readme?(readme.name)
%pre.clean
= readme.data
2012-10-15 20:51:03 +02:00
- else
2012-10-16 08:43:22 +02:00
= raw GitHub::Markup.render(readme.name, readme.data)