forked from fediversity/fediversity
		
	make login link part of global navigation
this makes navigation uniform and the information architecture easier to reason about
This commit is contained in:
		
							parent
							
								
									fc586273dc
								
							
						
					
					
						commit
						59122901ce
					
				
					 1 changed files with 22 additions and 10 deletions
				
			
		|  | @ -16,17 +16,29 @@ | |||
| 
 | ||||
|   <body> | ||||
|     <header> | ||||
|     {% load custom_tags %} | ||||
|     {% if user.is_authenticated %} | ||||
|       <p>Welcome, {{ user.username }}! <a href="{% auth_url 'logout' %}">Logout</a></p> | ||||
|     {% else %} | ||||
|       <p><a href="{% auth_url 'login' %}">Login</a></p> | ||||
|     {% endif %} | ||||
| 
 | ||||
|       {% block navigation %} | ||||
|       <nav> | ||||
|         <ul> | ||||
|           <li> | ||||
|             <a href="{% url 'index' %}">Start</a> | ||||
|           </li> | ||||
|           <li> | ||||
|             <a href="{% url 'service_list' %}">Services</a> | ||||
|           </li> | ||||
| 
 | ||||
|           {% load custom_tags %} | ||||
|           <li> | ||||
|           {% if user.is_authenticated %} | ||||
|             Welcome, {{ user.username }}! <a id="logout" href="{% auth_url 'logout' %}">Logout</a> | ||||
|           {% else %} | ||||
|             <a id="login" href="{% auth_url 'login' %}">Login</a> | ||||
|           {% endif %} | ||||
|           </li> | ||||
|         </ul> | ||||
|       </nav> | ||||
|       {% endblock navigation %} | ||||
|     </header> | ||||
|     {% block navigation %} | ||||
|     <nav> | ||||
|     </nav> | ||||
|     {% endblock navigation %} | ||||
| 
 | ||||
|     {% block layout %} | ||||
|     <article> | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue