Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
projects.thm.de
GitLab FOSS
Commits
7069fac3
Commit
7069fac3
authored
May 08, 2013
by
Dmitriy Zaporozhets
Browse files
Add custom sing-in text & google analytics
parent
aee110e2
Changes
6
Hide whitespace changes
Inline
Side-by-side
app/views/devise/sessions/new.html.haml
View file @
7069fac3
...
...
@@ -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
)
app/views/help/index.html.haml
View file @
7069fac3
...
...
@@ -19,7 +19,7 @@
%ul
.well-list
%li
Email your
=
mail_to
G
itlab
.
config
.
gitlab
.
support_email
,
"support contact"
=
mail_to
g
itlab
_
config
.
support_email
,
"support contact"
%li
Use the
=
link_to
"search bar"
,
'#'
,
onclick:
"$('#search').focus();"
...
...
app/views/layouts/_google_analytics.html.haml
0 → 100644
View file @
7069fac3
: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
);
})();
app/views/layouts/_head.html.haml
View file @
7069fac3
...
...
@@ -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'
...
...
app/views/profiles/account.html.haml
View file @
7069fac3
...
...
@@ -78,7 +78,7 @@
.input
=
f
.
submit
'Save username'
,
class:
"btn btn-save"
-
if
G
itlab
.
config
.
gitlab
.
signup_enabled
-
if
g
itlab
_
config
.
signup_enabled
%fieldset
.remove-account
%legend
Remove account
...
...
app/views/shared/_clone_panel.html.haml
View file @
7069fac3
.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
}=
G
itlab
.
config
.
gitlab
.
protocol
.
upcase
%button
{
class:
"btn"
,
:"data-clone"
=>
@project
.
http_url_to_repo
}=
g
itlab
_
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment