Commit 2cd3d421817a225dcd6068ce9aeac0689b5b97f0

Authored by Dmitriy Zaporozhets
1 parent 164f9d87

Use gitlab_config intead of Gitlab.config.gitlab in views

app/helpers/profile_helper.rb
... ... @@ -14,6 +14,6 @@ module ProfileHelper
14 14 end
15 15  
16 16 def show_profile_remove_tab?
17   - Gitlab.config.gitlab.signup_enabled && !current_user.ldap_user?
  17 + gitlab_config.signup_enabled && !current_user.ldap_user?
18 18 end
19 19 end
... ...
app/views/devise/sessions/new.html.haml
... ... @@ -18,7 +18,7 @@
18 18  
19 19 = render 'devise/sessions/oauth_providers' if devise_mapping.omniauthable?
20 20  
21   - - if Gitlab.config.gitlab.signup_enabled
  21 + - if gitlab_config.signup_enabled
22 22 %hr
23 23 %div
24 24 Don't have an account?
... ...
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
... ...