Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/tree/_readme.html.haml')
-rw-r--r--app/views/projects/tree/_readme.html.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/projects/tree/_readme.html.haml b/app/views/projects/tree/_readme.html.haml
new file mode 100644
index 00000000000..e9bb112745b
--- /dev/null
+++ b/app/views/projects/tree/_readme.html.haml
@@ -0,0 +1,13 @@
+.file_holder#README
+ .file_title
+ %i.icon-file
+ = readme.name
+ .file_content.wiki
+ - if gitlab_markdown?(readme.name)
+ = preserve do
+ = markdown(readme.data)
+ - elsif plain_text_readme?(readme.name)
+ %pre.clean
+ = readme.data
+ - else
+ = raw GitHub::Markup.render(readme.name, readme.data)