From 4c572ecd8d3179cdb86b3601f79813feb9bd0ccd Mon Sep 17 00:00:00 2001 From: Jeff Atwood <jatwood@codinghorror.com> Date: Tue, 12 Feb 2013 22:43:21 -0800 Subject: [PATCH] clean up some copy --- app/views/list/list.erb | 13 +++++++------ app/views/topics/show.html.erb | 8 ++++++-- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app/views/list/list.erb b/app/views/list/list.erb index 10cce0849..468841f15 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -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 →</a></p> <% end %> + +<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> \ No newline at end of file diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index f43444c8b..e4125c15d 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -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 →</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> \ No newline at end of file