Capitalize state filter links, remove commas from sorter links.
To make these two rows look similar. Rather than lowercasing the sorters, let's capitalize the state filters. And rather than adding a ','.join to the state filters, let's just remove commas from the sorters. Good enough.
This commit is contained in:
		
							parent
							
								
									c13f02006b
								
							
						
					
					
						commit
						213278edcc
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		|  | @ -170,9 +170,9 @@ https://stackoverflow.com/a/35153397 | ||||||
|     {% endif %} |     {% endif %} | ||||||
|     {% for statename in all_states %} |     {% for statename in all_states %} | ||||||
|     {% if channel is not none %} |     {% if channel is not none %} | ||||||
|     <a class="merge_params" href="/channel/{{channel.id}}/{{statename}}">{{statename}}</a> |     <a class="merge_params" href="/channel/{{channel.id}}/{{statename}}">{{statename.capitalize()}}</a> | ||||||
|     {% else %} |     {% else %} | ||||||
|     <a class="merge_params" href="/videos/{{statename}}">{{statename}}</a> |     <a class="merge_params" href="/videos/{{statename}}">{{statename.capitalize()}}</a> | ||||||
|     {% endif %} |     {% endif %} | ||||||
|     {% endfor %} |     {% endfor %} | ||||||
|     </span> |     </span> | ||||||
|  | @ -194,9 +194,9 @@ https://stackoverflow.com/a/35153397 | ||||||
|     <p><!-- spacer --></p> |     <p><!-- spacer --></p> | ||||||
| 
 | 
 | ||||||
|     <span>Sort by |     <span>Sort by | ||||||
|     <a class="merge_params" href="?orderby=published">Date</a>, |     <a class="merge_params" href="?orderby=published">Date</a> | ||||||
|     <a class="merge_params" href="?orderby=duration">Duration</a>, |     <a class="merge_params" href="?orderby=duration">Duration</a> | ||||||
|     <a class="merge_params" href="?orderby=views">Views</a>, |     <a class="merge_params" href="?orderby=views">Views</a> | ||||||
|     <a class="merge_params" href="?orderby=random">Random</a> |     <a class="merge_params" href="?orderby=random">Random</a> | ||||||
|     </span> |     </span> | ||||||
|      |      | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue