-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make js dropdown work properly for sorting mappings
- Loading branch information
Showing
3 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<li class="if-no-js-hide"> | ||
<ul class="dropdown"> | ||
<li class="if-no-js-hide sort-by"> | ||
<% sorted_by = @sorted_by_traffic ? 'Traffic' : 'Path' %> | ||
<%= filter_option_link(@site, sorted_by) %> | ||
<ul class="dropdown-menu" role="menu"> | ||
<li> | ||
<%= link_to 'Sort by path', sort_by_path_path, class: 'inherit' %> | ||
<%= link_to 'Path', sort_by_path_path, class: 'inherit' %> | ||
</li> | ||
<li> | ||
<%= link_to 'Sort by traffic', sort_by_traffic_path, class: 'inherit' %> | ||
<%= link_to 'Traffic', sort_by_traffic_path, class: 'inherit' %> | ||
</li> | ||
</ul> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters