Source

Lightning Talks / lightning / templates / _layouts / base.html

Diff from to

File lightning/templates/_layouts/base.html

 		<div class="topbar-inner">
 			<div class="container">
 				<h3><a href="{% url home %}">Lightning Talks</a></h3>
+				<ul class="nav">
+				{% if request.user.is_authenticated %}
+					<li><a href="{% url create_talk %}">Create a talk</a></li>
+					{% if request.user.talks.all %}
+					<li><a href="{% url talks %}">Your talks</a></li>
+					{% endif %}
+				{% endif %}
+				</ul>
 				<form action="">
 					<input type="text" placeholder="Search">
 				</form>
 				<ul class="nav secondary-nav">
-					<li class="dropdown">
-						<a href="#" class="dropdown-toggle">Your Account</a>
-						<ul class="dropdown-menu">
-							{% if request.user.is_authenticated %}
-							<li><a href="{% url profile %}">Your Profile</a></li>
-							<li><a href="{% url create_talk %}">Create a talk</a></li>
-							<li class="divider"></li>
-							<li><a href="{% url logout %}">Logout</a></li>
-							{% else %}
-							<li><a href="{% url socialauth_begin 'twitter' %}">Login with Twitter</a></li>
-							<li><a href="{% url socialauth_begin 'facebook' %}">Login with Facebook</a></li>
-							{% endif %}
-						</ul>
-					</li>
+				{% if request.user.is_authenticated %}
+					<li><a href="{% url profile %}">Your Profile</a></li>
+					<li><a href="{% url logout %}">Logout</a></li>
+				{% else %}
+					<li><a href="{% url socialauth_begin 'twitter' %}">Login with Twitter</a></li>
+					<li><a href="{% url socialauth_begin 'facebook' %}">Login with Facebook</a></li>
+				{% endif %}
 				</ul>
 			</div>
 		</div><!-- /topbar-inner -->