summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/projects/_home_panel.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index 81bb0e20a35..273a8493f44 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -21,6 +21,10 @@
- if can?(current_user, :admin_project, @project)
–
%strong= link_to 'Edit', edit_project_path
+ - elsif @repository.readme
+ - readme = @repository.readme
+ = link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)) do
+ = readme.name
- unless empty_repo
.col-md-5