diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-11 08:50:56 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-11 08:50:56 +0200 |
commit | 99eb283101108f1f95e95ade8c1352f547578b26 (patch) | |
tree | ed682bc2303d6862af4f2dbd5dd764d7c1e36f31 /app/views/projects/tree/_readme.html.haml | |
parent | 0e3f8ea2ef2a7d6cc51ccb5d7ae854c6244b40eb (diff) | |
download | gitlab-ce-99eb283101108f1f95e95ade8c1352f547578b26.tar.gz |
Use readme we support to render if there are multiple readmes
Diffstat (limited to 'app/views/projects/tree/_readme.html.haml')
-rw-r--r-- | app/views/projects/tree/_readme.html.haml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/projects/tree/_readme.html.haml b/app/views/projects/tree/_readme.html.haml index 6257ba8c09a..9d0292059d6 100644 --- a/app/views/projects/tree/_readme.html.haml +++ b/app/views/projects/tree/_readme.html.haml @@ -3,10 +3,4 @@ %i.icon-file = readme.name .wiki - - if gitlab_markdown?(readme.name) - = preserve do - = markdown(readme.data) - - elsif markup?(readme.name) - = render_markup(readme.name, readme.data) - - else - = simple_format(readme.data) + = render_readme(readme) |