summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-10-18 10:17:08 +0000
committerDouwe Maan <douwe@gitlab.com>2017-10-18 10:17:08 +0000
commit3b462b457756f36142d2450eaac7cf9f3e2061ae (patch)
treed690065777dc7a1dc63c8e9896ec8c2137436f1c /app
parent9c7fba3dc8ff4a3b84d1e3a018aed1d3470d405d (diff)
downloadgitlab-ce-3b462b457756f36142d2450eaac7cf9f3e2061ae.tar.gz
Small code style changes
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/_readme.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/_readme.html.haml b/app/views/projects/_readme.html.haml
index 5a27c6300a0..44aa9eb3826 100644
--- a/app/views/projects/_readme.html.haml
+++ b/app/views/projects/_readme.html.haml
@@ -1,11 +1,11 @@
-- if (readme = @repository.readme) && (readme.rich_viewer)
+- if (readme = @repository.readme) && readme.rich_viewer
%article.file-holder.readme-holder{ id: 'readme', class: ("limited-width-container" unless fluid_layout) }
.js-file-title.file-title
= blob_icon readme.mode, readme.name
= link_to project_blob_path(@project, tree_join(@ref, readme.path)) do
%strong
= readme.name
- = render 'projects/blob/viewer', viewer: readme.rich_viewer, viewer_url: namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.path), viewer: :rich, format: :json)
+ = render 'projects/blob/viewer', viewer: readme.rich_viewer, viewer_url: namespace_project_blob_path(@project.namespace, @project, tree_join(@ref, readme.path), viewer: :rich, format: :json)
- else
.row-content-block.second-block.center