diff --git a/app/views/exceptions/_not_found_topics.html.erb b/app/views/exceptions/_not_found_topics.html.erb index 2e6c107e3c6..836122931fc 100644 --- a/app/views/exceptions/_not_found_topics.html.erb +++ b/app/views/exceptions/_not_found_topics.html.erb @@ -1,20 +1,24 @@
- -
-

<%= t 'page_not_found.recent_topics' %>

- <% @recent.each do |t| %> -
- <%= link_to t.title, t.relative_url %><%= category_badge(t.category) %> -
- <% end %> - " class="btn btn-default"><%= t 'page_not_found.see_more' %>… -
+ <% if @top_viewed.count > 0 %> + + <% end %> + <% if @recent.count > 0 %> +
+

<%= t 'page_not_found.recent_topics' %>

+ <% @recent.each do |t| %> +
+ <%= link_to t.title, t.relative_url %><%= category_badge(t.category) %> +
+ <% end %> + " class="btn btn-default"><%= t 'page_not_found.see_more' %>… +
+ <% end %>