-
-
Save kohenkatz/8955426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml | |
index 59075ab..c2af1b1 100644 | |
--- a/app/views/projects/show.html.haml | |
+++ b/app/views/projects/show.html.haml | |
@@ -2,10 +2,16 @@ | |
.row | |
.col-md-9 | |
- = render "events/event_last_push", event: @last_push | |
- = render 'shared/event_filter' | |
- .content_list | |
- .loading.hide | |
+ - readme = @repository.readme | |
+ - if readme && gitlab_markdown?(readme.name) | |
+ .file-content.wiki | |
+ = preserve do | |
+ = markdown(readme.data) | |
+ - else | |
+ = render "events/event_last_push", event: @last_push | |
+ = render 'shared/event_filter' | |
+ .content_list | |
+ .loading.hide | |
.col-md-3.project-side.hidden-sm | |
.clearfix | |
- if @project.archived? | |
@@ -39,11 +45,6 @@ | |
= link_to project_compare_index_path(@project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do | |
Compare code | |
- - if @repository.readme | |
- - readme = @repository.readme | |
- = link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do | |
- = readme.name | |
- | |
.prepend-top-10 | |
%p | |
%span.light Created on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment