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
0f19ad65
Commit
0f19ad65
authored
Feb 03, 2012
by
Kostas Papadimitriou
Browse files
Apply styles for selected/current profile page
parent
20f04942
Changes
4
Hide whitespace changes
Inline
Side-by-side
astakos/im/context_processors.py
View file @
0f19ad65
...
...
@@ -48,7 +48,3 @@ def invitations(request):
def
media
(
request
):
return
{
'IM_MEDIA_URL'
:
getattr
(
settings
,
'IM_MEDIA_URL'
,
'/static/im/'
)}
def
current_url
(
request
):
from
django.core.urlresolvers
import
resolve
return
{
'CURRENT_URL'
:
request
.
get_full_path
()}
astakos/im/templates/account_base.html
View file @
0f19ad65
...
...
@@ -10,16 +10,16 @@
{% endblock %}
{% block page.nav.items %}
<li
class=
"{%
block profile_class %}
{% end
block
%}"
>
<li
class=
"{%
if tab == "
profile
"
%}
active
{%
end
if
%}"
>
<a
href=
"{% url astakos.im.views.edit_profile %}"
>
Profile
</a>
</li>
<li
class=
"{%
block password_class %}
{% end
block
%}"
>
<li
class=
"{%
if not tab %}active
{% end
if
%}"
>
<a
href=
"{% url django.contrib.auth.views.password_change %}"
>
Change password
</a>
</li>
<li
class=
"{%
block
invitations
_class %}
{% end
block
%}"
>
<li
class=
"{%
if tab == "
invitations
"
%}
active
{%
end
if
%}"
>
<a
href=
"{% url astakos.im.views.invite %}"
>
Invitations
</a>
</li>
<li
class=
"{%
block feedback_class %}
{% end
block
%}"
>
<li
class=
"{%
if tab == "
feedback
"
%}
active
{%
end
if
%}"
>
<a
href=
"{% url astakos.im.views.send_feedback %}"
>
Send feedback
</a>
</li>
{% endblock %}
...
...
astakos/im/templates/base.html
View file @
0f19ad65
...
...
@@ -58,6 +58,8 @@
$
(
"
form input
"
).
attr
(
'
autocomplete
'
,
'
off
'
);
$
(
"
form .form-row
"
).
formErrors
();
})
console
.
log
(
"
{{ tab }}
"
);
</script>
</head>
...
...
astakos/settings.d/00-apps.conf
View file @
0f19ad65
...
...
@@ -41,7 +41,6 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.media'
,
'django.core.context_processors.request'
,
'astakos.im.context_processors.media'
,
'astakos.im.context_processors.current_url'
,
'astakos.im.context_processors.im_modules'
,
'astakos.im.context_processors.next'
,
'astakos.im.context_processors.code'
,
...
...
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