adds active class to profile tab in dash nav, cleans up markup a bit

rtd2
Bobby Grace 2010-09-03 23:56:18 -04:00
parent 14dac8e035
commit f3c3f4e467
3 changed files with 8 additions and 4 deletions

View File

@ -19,13 +19,13 @@
</ul>
<ul>
<li class="first last {% block dash-nav-profile %}{% endblock %}">
<li class="first last {% block dash-nav-profile %}{% endblock %}">
{% if request.user.get_profile %}
<a href="{% url profiles_profile_edit %}">Edit Profile</a></li>
<a href="{% url profiles_profile_edit %}">Edit Profile</a>
{% else %}
<a href="{% url profiles_profile_create %}">Create Profile</a></li>
<a href="{% url profiles_profile_create %}">Create Profile</a>
{% endif %}
</li>
</ul>
</div>

View File

@ -2,6 +2,8 @@
{% block title %}Create your profile{% endblock %}
{% block dash-nav-profile %}active{% endblock %}
{% block content-header %}
<h1>Create your profile</h1>
{% endblock %}

View File

@ -2,6 +2,8 @@
{% block title %}Edit your profile{% endblock %}
{% block dash-nav-profile %}active{% endblock %}
{% block content-header %}
<h1>Edit your profile</h1>
{% endblock %}