adds active class to profile tab in dash nav, cleans up markup a bit
parent
14dac8e035
commit
f3c3f4e467
|
@ -21,11 +21,11 @@
|
|||
<ul>
|
||||
<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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue