clean up some copy

This commit is contained in:
Jeff Atwood 2013-02-12 22:43:21 -08:00
parent 36165d4687
commit 4c572ecd8d
2 changed files with 13 additions and 8 deletions
app/views

View file

@ -1,10 +1,11 @@
<table class="topic-list">
<div 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>
<a href="<%= t.relative_url %>"><%= t.title %></a> <span title='posts'>(<%= t.posts_count %>)</span><br/>
<% end %>
</table>
</div>
<% if @list.topics.length > 0 %>
<a href="<%= @list.more_topics_url.sub('.json?','?') %>">next page</a>
<p><a href="<%= @list.more_topics_url.sub('.json?','?') %>">next page &rarr;</a></p>
<% end %>
<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p>

View file

@ -1,7 +1,8 @@
<h2>
<a href="<%= @topic_view.relative_url %>"><%= @topic_view.title %></a>
</h2>
<hr/>
<% @topic_view.posts.each do |post| %>
<div class='creator'>
#<%=post.post_number%> By: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
@ -9,14 +10,17 @@
<div class='post'>
<%= post.cooked.html_safe %>
</div>
<hr/>
<% end %>
<% if @topic_view.next_page %>
<p>
<b><a href="<%= @topic_view.next_page_path %>">next page</a></b>
<a href="<%= @topic_view.next_page_path %>">next page &rarr;</a>
</p>
<% end %>
<%- content_for :canonical do %>
<%= "#{request.protocol}#{request.host_with_port}#{@topic_view.canonical_path}" %>
<%- end %>
<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p>