BigW Consortium Gitlab

Commit 7069fac3 by Dmitriy Zaporozhets

Add custom sing-in text & google analytics

parent aee110e2
......@@ -26,3 +26,7 @@
- resource_class.omniauth_providers.each do |provider|
%span
= link_to authbutton(provider, 32), omniauth_authorize_path(resource_name, provider)
- if extra_config.has_key?('sign_in_text')
%hr
= markdown(extra_config.sign_in_text)
......@@ -19,7 +19,7 @@
%ul.well-list
%li
Email your
= mail_to Gitlab.config.gitlab.support_email, "support contact"
= mail_to gitlab_config.support_email, "support contact"
%li
Use the
= link_to "search bar", '#', onclick: "$('#search').focus();"
......
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{gitlab_config.google_analytics_id}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
......@@ -9,6 +9,8 @@
= csrf_meta_tags
= include_gon
= render 'layouts/google_analytics' if gitlab_config.has_key?('google_analytics_id')
-# Atom feed
- if current_user
- if controller_name == 'projects' && action_name == 'index'
......
......@@ -78,7 +78,7 @@
.input
= f.submit 'Save username', class: "btn btn-save"
- if Gitlab.config.gitlab.signup_enabled
- if gitlab_config.signup_enabled
%fieldset.remove-account
%legend
Remove account
......
.input-prepend.input-append.project_clone_holder
%button{class: "btn active", :"data-clone" => @project.ssh_url_to_repo} SSH
%button{class: "btn", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.gitlab.protocol.upcase
%button{class: "btn", :"data-clone" => @project.http_url_to_repo}= gitlab_config.protocol.upcase
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span7", readonly: true
%span.add-on
- if @project.public
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment