Add timestamps to Topic. Add fields on topic list.

This commit is contained in:
taitus
2017-08-07 13:42:12 +02:00
parent 579a174704
commit c6e48946bd
5 changed files with 12 additions and 3 deletions

View File

@@ -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 %>