mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 13:35:20 -05:00
FEATURE: Small improvements to the topic list embed (#12881)
* FEATURE: Small improvements to the topic list embed - Ability to wrap the list in a custom class so you can styles different lists using specific CSS - Adds a topic link to the thumbnail when using the complete template * FIX: Be more strict about allowed chars in class name
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</button>
|
||||
<%- end %>
|
||||
<%- end %>
|
||||
<div class='topics-list' data-embed-state='loaded' <%- if @embed_id %>data-embed-id="<%= @embed_id %>"<%- end %>>
|
||||
<div class='topics-list <%= @embed_class %>' data-embed-state='loaded' <%- if @embed_id %>data-embed-id="<%= @embed_id %>"<%- end %>>
|
||||
<%- @list.topics.each do |t| %>
|
||||
<div class='topic-list-item'>
|
||||
<%- if @template == "complete" %>
|
||||
@@ -49,7 +49,9 @@
|
||||
<div class='topic-column featured-image-column'>
|
||||
<%- if t.image_url.present? %>
|
||||
<div class='topic-featured-image'>
|
||||
<img src="<%= t.image_url %>">
|
||||
<a target="_parent" href="<%= t.url %>" class="title raw-link raw-topic-link" data-topic-id="<%= t.id %>">
|
||||
<img src="<%= t.image_url %>">
|
||||
</a>
|
||||
</div>
|
||||
<%- end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user