Use /userid/ links instead of /user/username.
This commit is contained in:
		
							parent
							
								
									e2a97cef9c
								
							
						
					
					
						commit
						7e0c3e2626
					
				
					 4 changed files with 4 additions and 4 deletions
				
			
		|  | @ -246,7 +246,7 @@ const ALBUM_ID = undefined; | ||||||
| 
 | 
 | ||||||
|                 {% set author = album.get_author() %} |                 {% set author = album.get_author() %} | ||||||
|                 {% if author is not none %} |                 {% if author is not none %} | ||||||
|                 <p>Author: <a href="/user/{{author.username}}">{{author.display_name}}</a></p> |                 <p>Author: <a href="/userid/{{author.id}}">{{author.display_name}}</a></p> | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
| 
 | 
 | ||||||
|                 <p>Created on <span title="{{album.created|int|timestamp_to_8601}}">{{album.created|timestamp_to_naturaldate}}.</span></p> |                 <p>Created on <span title="{{album.created|int|timestamp_to_8601}}">{{album.created|timestamp_to_naturaldate}}.</span></p> | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ | ||||||
|     <a class="header_element" href="/search">Search</a> |     <a class="header_element" href="/search">Search</a> | ||||||
|     <a class="header_element" href="/tags">Tags</a> |     <a class="header_element" href="/tags">Tags</a> | ||||||
|     {% if session.user %} |     {% if session.user %} | ||||||
|     <a class="header_element dynamic_user_display_name" href="/user/{{session.user.username}}">{{session.user.display_name}}</a> |     <a class="header_element dynamic_user_display_name" href="/userid/{{session.user.id}}">{{session.user.display_name}}</a> | ||||||
|     <button id="logout_button" class="header_element" onclick="return api.users.logout(common.refresh);" style="flex:0">Logout</button> |     <button id="logout_button" class="header_element" onclick="return api.users.logout(common.refresh);" style="flex:0">Logout</button> | ||||||
|     {% else %} |     {% else %} | ||||||
|     <a class="header_element" href="/login">Log in</a> |     <a class="header_element" href="/login">Log in</a> | ||||||
|  |  | ||||||
|  | @ -178,7 +178,7 @@ | ||||||
|         <ul id="metadata"> |         <ul id="metadata"> | ||||||
|             {% set author = photo.get_author() %} |             {% set author = photo.get_author() %} | ||||||
|             {% if author is not none %} |             {% if author is not none %} | ||||||
|                 <li>Author: <a href="/user/{{author.username}}">{{author.display_name}}</a></li> |                 <li>Author: <a href="/userid/{{author.id}}">{{author.display_name}}</a></li> | ||||||
|             {% endif %} |             {% endif %} | ||||||
|             {% if photo.width %} |             {% if photo.width %} | ||||||
|                 <li title="{{photo.area}} px">Dimensions: {{photo.width}}x{{photo.height}} px</li> |                 <li title="{{photo.area}} px">Dimensions: {{photo.width}}x{{photo.height}} px</li> | ||||||
|  |  | ||||||
|  | @ -73,7 +73,7 @@ body > .nice_link | ||||||
|     <a class="nice_link" href="/albums">Browse albums</a> |     <a class="nice_link" href="/albums">Browse albums</a> | ||||||
|     <a class="nice_link" href="/bookmarks">Bookmarks</a> |     <a class="nice_link" href="/bookmarks">Bookmarks</a> | ||||||
|     {% if session.user %} |     {% if session.user %} | ||||||
|     <a class="nice_link" href="/user/{{session.user.username}}">{{session.user.display_name}}</a> |     <a class="nice_link" href="/userid/{{session.user.id}}">{{session.user.display_name}}</a> | ||||||
|     {% else %} |     {% else %} | ||||||
|     <a class="nice_link" href="/login">Log in</a> |     <a class="nice_link" href="/login">Log in</a> | ||||||
|     {% endif %} |     {% endif %} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue