Add timestamps to Topic. Add fields on topic list.
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
<% topics.each do |topic| %>
|
||||
<div id="<%= dom_id(topic) %>">
|
||||
<%= link_to topic.title, community_topic_path(@community, topic) %>
|
||||
<br>
|
||||
<%= topic.author.name %>
|
||||
<br>
|
||||
<%= I18n.l topic.created_at %>
|
||||
<% if topic.author == current_user %>
|
||||
<%= link_to t("topic.edit"), edit_community_topic_path(@community.id, topic), class: 'button expanded' %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user