Commit 2cd3d421817a225dcd6068ce9aeac0689b5b97f0
1 parent
164f9d87
Exists in
master
and in
4 other branches
Use gitlab_config intead of Gitlab.config.gitlab in views
Showing
5 changed files
with
5 additions
and
5 deletions
Show diff stats
app/helpers/profile_helper.rb
app/views/devise/sessions/new.html.haml
app/views/devise/shared/_links.erb
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <%= link_to "Sign in", new_session_path(resource_name), class: "btn" %><br /> |
3 | 3 | <% end -%> |
4 | 4 | |
5 | -<%- if devise_mapping.registerable? && controller_name != 'registrations' && Gitlab.config.gitlab.signup_enabled %> | |
5 | +<%- if devise_mapping.registerable? && controller_name != 'registrations' && gitlab_config.signup_enabled %> | |
6 | 6 | <%= link_to "Sign up", new_registration_path(resource_name) %><br /> |
7 | 7 | <% end -%> |
8 | 8 | ... | ... |
app/views/projects/new.html.haml
... | ... | @@ -51,7 +51,7 @@ |
51 | 51 | = f.label :public do |
52 | 52 | %span Public project |
53 | 53 | .controls |
54 | - = f.check_box :public, { checked: Gitlab.config.gitlab.default_projects_features.public }, true, false | |
54 | + = f.check_box :public, { checked: gitlab_config.default_projects_features.public }, true, false | |
55 | 55 | %span.help-inline Make project visible to everyone |
56 | 56 | |
57 | 57 | .form-actions | ... | ... |
app/views/projects/wikis/git_access.html.haml
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | .form-horizontal |
12 | 12 | .input-prepend.project_clone_holder |
13 | 13 | %button{class: "btn active", :"data-clone" => @gollum_wiki.ssh_url_to_repo} SSH |
14 | - %button{class: "btn", :"data-clone" => @gollum_wiki.http_url_to_repo}= Gitlab.config.gitlab.protocol.upcase | |
14 | + %button{class: "btn", :"data-clone" => @gollum_wiki.http_url_to_repo}= gitlab_config.protocol.upcase | |
15 | 15 | = text_field_tag :project_clone, @gollum_wiki.url_to_repo, class: "one_click_select input-xxlarge", readonly: true |
16 | 16 | .git-empty |
17 | 17 | %fieldset | ... | ... |