Permalink
Browse files

Aligning images

  • Loading branch information...
1 parent 5aa9908 commit 9c9b03b96dee06fbc122a77350a1f447ec2e6f35 @suttree committed Feb 9, 2012
Showing with 17 additions and 16 deletions.
  1. +17 −16 app/views/home/r.html.erb
View
@@ -1,6 +1,23 @@
<div class='page'>
<%= render :partial => '/shared/pic' %>
+ <div class='meta'>
+ <span class='tilde'>
+ <a href='/'&nbsp;Home</a>
+ </span>
+ <span class='remaining'>
+ <b><%= current_user.articles.unread.count %></b> <a href='/unread'>unread</a>
+ </span>
+ <span class='attribution'>
+ <a href='http://twitter.com/<%= article.twitter_screen_name %>/statuses/<%= article.tweet_id %>' title="<%= article.tweet_text %>">via <b>@<%= article.twitter_screen_name %></b></a>
+ </span>
+ <span class='archived'>
+ <% if article.read? %>
+ First read <%= time_ago_in_words(article.read_at) %> ago.
+ <% end %>
+ </span>
+ </div>
+
<% @articles.each do |article| %>
<h1 class='<%= article.read? ? 'read' : 'unread' %>'>
<%= truncate(article.title, :length => 100, :separator => ' ') %>&nbsp;<%= link_to '#', read_path(article), :class => 'permalink', :title => 'Permalink' %>
@@ -12,22 +29,6 @@
<%= render :partial => 'ajax_simple_pagination' %>
</div>
<div class='article'>
- <div class='meta'>
- <span class='tilde'>
- <a href='/'&nbsp;Home</a>
- </span>
- <span class='remaining'>
- <b><%= current_user.articles.unread.count %></b> <a href='/unread'>unread</a>
- </span>
- <span class='attribution'>
- <a href='http://twitter.com/<%= article.twitter_screen_name %>/statuses/<%= article.tweet_id %>' title="<%= article.tweet_text %>">via <b>@<%= article.twitter_screen_name %></b></a>
- </span>
- <span class='archived'>
- <% if article.read? %>
- First read <%= time_ago_in_words(article.read_at) %> ago.
- <% end %>
- </span>
- </div>
<%= article.html_body.gsub(/\n/, ' ').html_safe %>
</div>
<div class='cta'>

0 comments on commit 9c9b03b

Please sign in to comment.