Extract tree/readme partial
This commit is contained in:
parent
5cff72ad1e
commit
1f4d8eac24
2 changed files with 13 additions and 12 deletions
10
app/views/tree/_readme.html.haml
Normal file
10
app/views/tree/_readme.html.haml
Normal file
|
@ -0,0 +1,10 @@
|
|||
.file_holder#README
|
||||
.file_title
|
||||
%i.icon-file
|
||||
= readme.name
|
||||
.file_content.wiki
|
||||
- if gitlab_markdown?(readme.name)
|
||||
= preserve do
|
||||
= markdown(readme.data)
|
||||
- else
|
||||
= raw GitHub::Markup.render(readme.name, readme.data)
|
Loading…
Add table
Add a link
Reference in a new issue