summaryrefslogtreecommitdiff
path: root/app/views/projects/show.html.haml
diff options
context:
space:
mode:
authorRiccardo Padovani <riccardo@rpadovani.com>2017-09-07 14:18:25 +0000
committerRémy Coutable <remy@rymai.me>2017-09-07 14:18:25 +0000
commitd1cb1bf80d5ec2651ff460902f58643ad369bb8c (patch)
tree54d5d053deeb60f102fab2b4f516e6515f82dcf7 /app/views/projects/show.html.haml
parent0357726d29b51e6593509850c17c01e9c18fa55b (diff)
downloadgitlab-ce-d1cb1bf80d5ec2651ff460902f58643ad369bb8c.tar.gz
#34945: add a div id to the readme section in the project overview
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 3f0a24cfe83..6ee55bba82a 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -27,9 +27,10 @@
= link_to project_tags_path(@project) do
#{n_('Tag', 'Tags', @repository.tag_count)} (#{number_with_delimiter(@repository.tag_count)})
- - if default_project_view != 'readme' && @repository.readme
+ - if @repository.readme
%li
- = link_to _('Readme'), readme_path(@project)
+ = link_to _('Readme'),
+ default_project_view != 'readme' ? readme_path(@project) : '#readme'
- if @repository.changelog
%li