Commit 0f19ad65 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Apply styles for selected/current profile page

parent 20f04942
......@@ -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()}
......@@ -10,16 +10,16 @@
{% endblock %}
{% block page.nav.items %}
<li class="{% block profile_class %}{% endblock %}">
<li class="{% if tab == "profile" %}active{% endif %}">
<a href="{% url astakos.im.views.edit_profile %}">Profile</a>
</li>
<li class="{% block password_class %}{% endblock %}">
<li class="{% if not tab %}active{% endif %}">
<a href="{% url django.contrib.auth.views.password_change %}">Change password</a>
</li>
<li class="{% block invitations_class %}{% endblock %}">
<li class="{% if tab == "invitations" %}active{% endif %}">
<a href="{% url astakos.im.views.invite %}">Invitations</a>
</li>
<li class="{% block feedback_class %}{% endblock %}">
<li class="{% if tab == "feedback" %}active{% endif %}">
<a href="{% url astakos.im.views.send_feedback %}">Send feedback</a>
</li>
{% endblock %}
......
......@@ -58,6 +58,8 @@
$("form input").attr('autocomplete', 'off');
$("form .form-row").formErrors();
})
console.log("{{ tab }}");
</script>
</head>
......
......@@ -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',
......
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