Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-17 20:16:04 +0300
committerDouwe Maan <douwe@gitlab.com>2015-10-17 20:16:04 +0300
commit6f0856535e242694805909b824e9e238372e3f65 (patch)
tree5a770cbbd78df17969110e1539f0a21b320710fa /app/views/projects/show.html.haml
parentcfa3602a1303c39e78d5bf23ad0ab34b1966d397 (diff)
Remove redundant helper method.
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index f8c06d8b06b..585caf674c9 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -27,7 +27,7 @@
= link_to project_files_path(@project) do
= repository_size
- - if !prefer_readme? && @repository.readme
+ - if default_project_view != 'readme' && @repository.readme
%li
= link_to 'Readme', readme_path(@project)
@@ -67,9 +67,8 @@
.content-block.second-block.white
= render 'projects/last_commit', commit: @repository.commit, project: @project
-%section
- %div{class: "project-show-#{current_user_default_project_view}"}
- = render current_user_default_project_view
+%div{class: "project-show-#{default_project_view}"}
+ = render default_project_view
- if current_user
- access = user_max_access_in_project(current_user, @project)