journalduhacker/app/views/filters/index.html.erb

45 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-07-04 05:24:18 +02:00
<div class="box wide">
<div class="legend">
2016-11-08 17:46:43 +01:00
<%= t('.filteredtags') %>
</div>
2012-07-04 05:24:18 +02:00
<p>
2016-11-08 17:46:43 +01:00
<%=raw(t('.filteredtagsdesc')) %>
2012-07-04 05:24:18 +02:00
</p>
<% if !@user %>
<p>
2016-11-08 17:46:43 +01:00
<%=raw(t('.filteredtagsnotloggedindesc')) %>
</p>
<% end %>
2012-07-04 05:24:18 +02:00
<%= form_tag "/filters", :method => :post do %>
<table class="data zebra" cellspacing=0 width="75%">
<tr>
2016-11-08 17:46:43 +01:00
<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>
2012-07-04 05:24:18 +02:00
</tr>
<% @tags.each do |tag| %>
2012-07-04 05:24:18 +02:00
<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>
2015-01-05 19:18:42 +01:00
<td><%= tag.description %>
<% if tag.hotness_mod != 0 %>
&nbsp;
<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>
2012-07-04 05:24:18 +02:00
</tr>
<% end %>
</table>
<p>
2016-11-08 17:46:43 +01:00
<%= submit_tag t('.filteredsave') %>
2012-07-04 05:24:18 +02:00
</p>
<% end %>
</div>