|
|
@ -71,19 +71,30 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-3"></div>
|
|
|
|
<div class="pure-u-1-3"></div>
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<div class="pure-u-1-3"> <!-- Sort by -->
|
|
|
|
<div class="pure-g" style="text-align:right">
|
|
|
|
<div class="pure-menu pure-menu-horizontal" style="">
|
|
|
|
|
|
|
|
<ul class="pure-menu-list", style="float: right">
|
|
|
|
|
|
|
|
<li class="pure-menu-item pure-menu-has-children pure-menu-allow-hover">
|
|
|
|
|
|
|
|
<a class="pure-menu-link">Sort By</a> <!-- Translate! -->
|
|
|
|
|
|
|
|
<ul class="pure-menu-children">
|
|
|
|
<% sort_options.each do |sort| %>
|
|
|
|
<% sort_options.each do |sort| %>
|
|
|
|
<div class="pure-u-1 pure-md-1-3">
|
|
|
|
|
|
|
|
<% if sort_by == sort %>
|
|
|
|
<% if sort_by == sort %>
|
|
|
|
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>?page=<%= page %>&sort_by=<%= sort %>">
|
|
|
|
<b><%= translate(locale, sort) %></b>
|
|
|
|
<b><%= translate(locale, sort) %></b>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<a href="/channel/<%= channel.ucid %>?page=<%= page %>&sort_by=<%= sort %>">
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>?page=<%= page %>&sort_by=<%= sort %>">
|
|
|
|
<%= translate(locale, sort) %>
|
|
|
|
<%= translate(locale, sort) %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|