Initial release of Discourse

This commit is contained in:
Robin Ward
2013-02-05 14:16:51 -05:00
commit 21b5628528
2932 changed files with 143949 additions and 0 deletions

10
app/views/list/list.erb Normal file
View File

@@ -0,0 +1,10 @@
<table class="topic-list">
<% @list.topics.each do |t| %>
<tr>
<td><a href="<%= t.relative_url %>"><%= t.title %></a> <span title='total posts'>[<%= t.posts_count %>]</span></td>
</tr>
<% end %>
</table>
<% if @list.topics.length > 0 %>
<a href="<%= @list.more_topics_url.sub('.json?','?') %>">next page</a>
<% end %>