Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
8fb818e3
Commit
8fb818e3
authored
Feb 06, 2013
by
Kostas Papadimitriou
Committed by
Georgios D. Tsoukalas
Feb 14, 2013
Browse files
A bit of cleanup in login templates
parent
4c50a585
Changes
2
Show whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/templates/im/auth/local_login_prompt.html
View file @
8fb818e3
<form
action=
"{% url astakos.im.target.local.login %}
#other-login-methods
"
method=
"post"
<form
action=
"{% url astakos.im.target.local.login %}"
method=
"post"
class=
"login-form login innerlabels"
>
{% csrf_token %}
<p>
{{ provider.get_login_prompt_display }}
...
...
snf-astakos-app/astakos/im/templates/im/login_base.html
View file @
8fb818e3
...
...
@@ -18,47 +18,14 @@
{% include master_auth_provider.login_template %}
</div>
<div
class=
"extralogin"
{%
comment
%}
style=
"{% if not last_login_method or last_login_method == master_auth_provider.module %}display:none{% endif %}"
{%
endcomment
%}
>
<div
class=
"extralogin"
>
{% for provider in auth_providers %}
{% if not provider == master_auth_provider %}
{% include provider.login_prompt_template %}
{% endif %}
{% endfor %}
{% comment %}
<div
class=
"bottom"
>
{% block body.signup %}
{% for provider in auth_providers %}
{% if provider.is_available_for_create %}
{% include provider.signup_prompt_template %}
{% endif %}
{% endfor %}
{% endblock body.signup %}
</div>
{% endcomment %}
</div>
</div>
<script>
$
(
document
).
ready
(
function
(){
if
(
window
.
location
.
toString
().
match
(
/#other-login-methods/
))
{
$
(
"
.extralogin
"
).
show
();
}
$
(
"
.other-logins
"
).
click
(
function
(
e
){
e
.
preventDefault
();
$
(
"
.extralogin
"
).
slideToggle
();
if
(
window
.
location
.
toString
().
match
(
/#other-login-methods/
))
{
window
.
location
=
window
.
location
.
hash
=
"
#
"
}
else
{
window
.
location
=
window
.
location
.
hash
=
"
#other-login-methods
"
}
})
});
</script>
{% endblock body.right%}
Write
Preview
Markdown
is supported
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