summaryrefslogtreecommitdiff
path: root/app/views/projects/new.html.haml
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-03-12 01:20:22 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2017-03-12 01:20:22 +1100
commitd274bbb9b93183cb74f7ba4c3de286ebd5b0cb5a (patch)
tree32993599f2acc29791292971a3b962d80ef28ea5 /app/views/projects/new.html.haml
parent6625d605ec8405b1d687b13e7624b10ced832fd2 (diff)
downloadgitlab-ce-d274bbb9b93183cb74f7ba4c3de286ebd5b0cb5a.tar.gz
Fix specs
Diffstat (limited to 'app/views/projects/new.html.haml')
-rw-r--r--app/views/projects/new.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 1a51f777bd9..560e3439fc2 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -1,6 +1,6 @@
- page_title 'New Project'
- header_title "Projects", dashboard_projects_path
-- visibility_level = params.try(:[], :project).try(:[], :visibility_level).to_i || default_project_visibility
+- visibility_level = params.try(:[], :project).try(:[], :visibility_level) || default_project_visibility
.project-edit-container
.project-edit-errors
@@ -96,7 +96,7 @@
= f.label :visibility_level, class: 'label-light' do
Visibility Level
= link_to icon('question-circle'), help_page_path("public_access/public_access")
- = render 'shared/visibility_level', f: f, visibility_level: visibility_level, can_change_visibility_level: true, form_model: @project, with_label: false
+ = render 'shared/visibility_level', f: f, visibility_level: visibility_level.to_i, can_change_visibility_level: true, form_model: @project, with_label: false
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
= link_to 'Cancel', dashboard_projects_path, class: 'btn btn-cancel'