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 %}
|
||||
{% for statename in all_states %}
|
||||
{% 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 %}
|
||||
<a class="merge_params" href="/videos/{{statename}}">{{statename}}</a>
|
||||
<a class="merge_params" href="/videos/{{statename}}">{{statename.capitalize()}}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</span>
|
||||
|
@ -194,9 +194,9 @@ https://stackoverflow.com/a/35153397
|
|||
<p><!-- spacer --></p>
|
||||
|
||||
<span>Sort by
|
||||
<a class="merge_params" href="?orderby=published">Date</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=published">Date</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=random">Random</a>
|
||||
</span>
|
||||
|
||||
|
|
Loading…
Reference in a new issue