Skip to content

Commit

Permalink
Style changes and some home page news updates
Browse files Browse the repository at this point in the history
  • Loading branch information
suttree committed Apr 2, 2011
1 parent d06f0f5 commit c7c300e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/home_controller.rb
Expand Up @@ -55,7 +55,7 @@ def read
def find_next_unread_article def find_next_unread_article
redirect_to '/' and return if current_user.articles.unread.count == 0 redirect_to '/' and return if current_user.articles.unread.count == 0


@article = current_user.articles.unread.first @article = current_user.articles.unread.last
@article.mark_as_read @article.mark_as_read
@total_unread = current_user.articles.unread.count @total_unread = current_user.articles.unread.count
end end
Expand Down
7 changes: 7 additions & 0 deletions app/views/home/index.html.erb
Expand Up @@ -28,6 +28,13 @@
<% end %> <% end %>
</b> </b>


<h3>Recent updates</h3>
<ul>
<li>02-04-2011: Displaying a reverse chronological unread list because it's cooler to be late to the party than ahead of the curve.</li>
<li>26-03-2011: Various formatting and style changes.</li>
<li><i>See more updates on <a href='https://github.com/suttree/Give-Good-Sunflower/commits/master'>GitHub</a></i></li>
</ul>

<ol> <ol>
<li>Sign in and all the links in your twitter stream will be pseudo-<a href='http://instapaper.com'>instapaper'd</a> and available to read.</li> <li>Sign in and all the links in your twitter stream will be pseudo-<a href='http://instapaper.com'>instapaper'd</a> and available to read.</li>
<li>Why? See <a href=' http://suttree.com/2011/01/04/twitter-from-the-inside-out/'> http://suttree.com/2011/01/04/twitter-from-the-inside-out</a>.</li> <li>Why? See <a href=' http://suttree.com/2011/01/04/twitter-from-the-inside-out/'> http://suttree.com/2011/01/04/twitter-from-the-inside-out</a>.</li>
Expand Down
4 changes: 4 additions & 0 deletions app/views/layouts/application.html.erb
Expand Up @@ -2,6 +2,10 @@
<html> <html>
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="robots" content="index, follow" />
<meta name="description" content="Give Good Sunflower parses your twitter feed and creates a custom list of articles from the websites that the people you follow on twitter are linking to" />
<meta name="keywords" content="news, twitter, scrape, instapaper, readability, duncan gough, suttree, give good sunflower, sunflower, magazine, flipboard, articles, heroku, rails3" />
<meta name="author" content="Duncan Gough, suttree" />
<title><%= @title_prefix || "Give Good Sunflower" %></title> <title><%= @title_prefix || "Give Good Sunflower" %></title>
<link href="/stylesheets/sunflower.css" media="screen" rel="stylesheet" type="text/css" /> <link href="/stylesheets/sunflower.css" media="screen" rel="stylesheet" type="text/css" />
<%= javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js' %> <%= javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js' %>
Expand Down

0 comments on commit c7c300e

Please sign in to comment.