Merge pull request #5160 from NamelessContributor/feat-data-is-deprecated

Add data-is-deprecated attribute to tags
This commit is contained in:
evazion
2022-05-11 00:10:13 -05:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -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? %>

View File

@@ -14,7 +14,7 @@
</thead>
<tbody>
<% @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 style="text-align: right;"><%= count.to_i %></td>
</tr>