Add data-is-deprecated attribute to tags
Allows using custom CSS to highlight deprecated tags, fixes #5110
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @missed_searches.each do |search, count| %>
|
||||
<tr class="tag-type-<%= Tag.find_by_name(search)&.category.to_i %>">
|
||||
<tr class="tag-type-<%= Tag.find_by_name(search)&.category.to_i %>" data-is-deprecated=<%= Tag.find_by_name(search)&.is_deprecated? %>>
|
||||
<td><%= link_to search, posts_path(tags: search) %></td>
|
||||
<td>
|
||||
<% unless WikiPage.titled(search).exists? %>
|
||||
|
||||
Reference in New Issue
Block a user