FIX: provides an emoji helper to replace codes by images (#7802)

This commit is contained in:
Joffrey JAFFEUX
2019-06-26 15:11:04 +02:00
committed by GitHub
parent 65a6e2c860
commit dfde59f631
5 changed files with 104 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
<h2 class="popular-topics-title"><%= t 'page_not_found.popular_topics' %></h2>
<% @top_viewed.each do |t| %>
<div class='not-found-topic'>
<%= link_to t.title, t.relative_url %><%= category_badge(t.category) %>
<%= link_to emoji_codes_to_img(t.fancy_title), t.relative_url %><%= category_badge(t.category) %>
</div>
<% end %>
<a href="<%= path "/top" %>" class="btn btn-default"><%= t 'page_not_found.see_more' %>&hellip;</a>