client/tags: make headers clickable
This commit is contained in:
parent
27cce56054
commit
27533483b2
@ -10,6 +10,8 @@
|
|||||||
background: $top-nav-color
|
background: $top-nav-color
|
||||||
th, td
|
th, td
|
||||||
padding: 0.1em 0.5em
|
padding: 0.1em 0.5em
|
||||||
|
th
|
||||||
|
background: $top-nav-color
|
||||||
.names
|
.names
|
||||||
width: 30%
|
width: 30%
|
||||||
.implications
|
.implications
|
||||||
|
@ -2,10 +2,34 @@
|
|||||||
<% if (results) { %>
|
<% if (results) { %>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th class='names'>Tag name(s)</th>
|
<th class='names'>
|
||||||
<th class='implications'>Implications</th>
|
<% if (query == 'sort:name' || !query) { %>
|
||||||
<th class='suggestions'>Suggestions</th>
|
<a href='/tags/text=-sort:name'>Tag name(s)</a>
|
||||||
<th class='usages'>Usages</th>
|
<% } else { %>
|
||||||
|
<a href='/tags/text=sort:name'>Tag name(s)</a>
|
||||||
|
<% } %>
|
||||||
|
</th>
|
||||||
|
<th class='implications'>
|
||||||
|
<% if (query == 'sort:implication-count') { %>
|
||||||
|
<a href='/tags/text=-sort:implication-count'>Implications</a>
|
||||||
|
<% } else { %>
|
||||||
|
<a href='/tags/text=sort:implication-count'>Implications</a>
|
||||||
|
<% } %>
|
||||||
|
</th>
|
||||||
|
<th class='suggestions'>
|
||||||
|
<% if (query == 'sort:suggestion-count') { %>
|
||||||
|
<a href='/tags/text=-sort:suggestion-count'>Suggestions</a>
|
||||||
|
<% } else { %>
|
||||||
|
<a href='/tags/text=sort:suggestion-count'>Suggestions</a>
|
||||||
|
<% } %>
|
||||||
|
</th>
|
||||||
|
<th class='usages'>
|
||||||
|
<% if (query == 'sort:usages') { %>
|
||||||
|
<a href='/tags/text=-sort:usages'>Usages</a>
|
||||||
|
<% } else { %>
|
||||||
|
<a href='/tags/text=sort:usages'>Usages</a>
|
||||||
|
<% } %>
|
||||||
|
</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% _.each(results, tag => { %>
|
<% _.each(results, tag => { %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user