mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 06:59:06 +08:00
Merge pull request #2800 from riking/nojs-subcategory
FIX: Bracked category link in no-JS view
This commit is contained in:
commit
fa014782e8
@ -2,7 +2,7 @@
|
||||
<% @list.topics.each do |t| %>
|
||||
<a href="<%= t.relative_url %>"><%= t.title %></a>
|
||||
<% if !@category && t.category %>
|
||||
[<a href="/category/<%= t.category.slug.blank? ? t.category.id : t.category.slug %>"><%= t.category.name %></a>]
|
||||
[<a href="<%= t.category.url%>"><%= t.category.name %></a>]
|
||||
<% end %>
|
||||
<span title='<%= t 'posts' %>'>(<%= t.posts_count %>)</span><br/>
|
||||
<% end %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user