summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/_readme.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-23 19:47:22 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-23 19:47:22 +0300
commit2ed7cbfba4ff3c6a4cf3e72515a0375544998de0 (patch)
treeae6d7530745c80633cd993c99f7820e1452f3e1b /app/views/projects/tree/_readme.html.haml
parent95791316f4037273af7b747ce1851d5f4e46933f (diff)
downloadgitlab-ce-2ed7cbfba4ff3c6a4cf3e72515a0375544998de0.tar.gz
Move projects controllers/views in Projects module
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)