45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
<div class="box wide">
|
|
<div class="legend">
|
|
<%= t('.filteredtags') %>
|
|
</div>
|
|
|
|
<p>
|
|
<%=raw(t('.filteredtagsdesc')) %>
|
|
</p>
|
|
|
|
<% if !@user %>
|
|
<p>
|
|
<%=raw(t('.filteredtagsnotloggedindesc')) %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= form_tag "/filters", :method => :post do %>
|
|
<table class="data zebra" cellspacing=0 width="75%">
|
|
<tr>
|
|
<th width="7%"><%=t('.filteredhide') %></th>
|
|
<th width="13%"><%=t('.filteredtag') %></th>
|
|
<th width="65%"><%=t('.filtereddesc') %></th>
|
|
<th width="5%" style="text-align: right; padding-right: 1em;"><%=t('.filteredstories') %></th>
|
|
</tr>
|
|
<% @tags.each do |tag| %>
|
|
<tr>
|
|
<td><%= check_box_tag "tags[]", tag.tag,
|
|
@filtered_tags.include?(tag) %></td>
|
|
<td><%= link_to tag.tag, tag_path(tag), :class => tag.css_class %></td>
|
|
<td><%= tag.description %>
|
|
<% if tag.hotness_mod != 0 %>
|
|
|
|
<em>(hotness mod <%= tag.hotness_mod > 0 ? "+" : ""%><%=
|
|
tag.hotness_mod %>)</em>
|
|
<% end %></td>
|
|
<td style="text-align: right; padding-right: 1em;"><%=
|
|
tag.stories_count %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
<p>
|
|
<%= submit_tag t('.filteredsave') %>
|
|
</p>
|
|
<% end %>
|
|
</div>
|