[macruby-changes] [911] MacRubyWebsite/trunk/content
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 13 19:19:57 PDT 2009
Revision: 911
http://trac.macosforge.org/projects/ruby/changeset/911
Author: rich at infoether.com
Date: 2009-03-13 19:19:57 -0700 (Fri, 13 Mar 2009)
Log Message:
-----------
add paging to the blog
Modified Paths:
--------------
MacRubyWebsite/trunk/content/blog/index.txt
MacRubyWebsite/trunk/content/blog/title_index.txt
MacRubyWebsite/trunk/content/index.txt
Modified: MacRubyWebsite/trunk/content/blog/index.txt
===================================================================
--- MacRubyWebsite/trunk/content/blog/index.txt 2009-03-14 01:53:28 UTC (rev 910)
+++ MacRubyWebsite/trunk/content/blog/index.txt 2009-03-14 02:19:57 UTC (rev 911)
@@ -5,13 +5,13 @@
filter:
- erb
---
-<a style="float:right" href="/blog/title_index.html">Summary Articles</a>
+<a style="float:right" href="/blog/title_index.html">Blog Overview</a>
<h1 class="title"> <%= h(@page.title) %> </h1>
<%
articles = @pages.find(:all, :in_directory => @page.dir, :recursive => true,
:sort_by => "created_at", :reverse => true, :blog_post => true)
articles.delete(@page)
- paginate(articles, 10) do |page|
+ paginate(articles, 3) do |page|
-%>
<div class="article">
<div class="header">
@@ -26,3 +26,7 @@
</div>
</div>
<% end -%>
+<hr size="0" noshade class="doublerule" />
+<p style="text-align: center"><%= @pager.prev? ? "« "+link_to("newer", @pager.prev) : "<span style='color:#999'>« newer</span>" %> | Page <%= @pager.number %> of <%= @pager.number_of_pages %> | <%= @pager.next? ? link_to("older", @pager.next)+" »" : "<span style='color:#999'>older »</span>" %></p>
+
+
Modified: MacRubyWebsite/trunk/content/blog/title_index.txt
===================================================================
--- MacRubyWebsite/trunk/content/blog/title_index.txt 2009-03-14 01:53:28 UTC (rev 910)
+++ MacRubyWebsite/trunk/content/blog/title_index.txt 2009-03-14 02:19:57 UTC (rev 911)
@@ -5,7 +5,7 @@
filter:
- erb
---
-<a style="float:right" href="/blog/index.html">Full Articles</a>
+<a style="float:right" href="/blog/index.html">Full Blog</a>
<h1 class="title"> <%= h(@page.title) %> </h1>
<%
articles = @pages.find(:all, :in_directory => @page.dir, :recursive => true,
Modified: MacRubyWebsite/trunk/content/index.txt
===================================================================
--- MacRubyWebsite/trunk/content/index.txt 2009-03-14 01:53:28 UTC (rev 910)
+++ MacRubyWebsite/trunk/content/index.txt 2009-03-14 02:19:57 UTC (rev 911)
@@ -9,7 +9,7 @@
<hr size="0" noshade class="harvardrule" />
<div id="newsbox">
- <h3><img src="/images/h3_macruby_blog.png" alt="MacRuby Blog" /></h3>
+ <h3><a href="/blog/index.html"><img src="/images/h3_macruby_blog.png" alt="MacRuby Blog" /></a></h3>
<%
articles = @pages.find(:all, :in_directory => File.join(@page.dir, 'blog'), :recursive => true,
@@ -21,7 +21,7 @@
<hr size="0" noshade class="doublerule" />
<% end -%>
- <a href="/blog/index.html"><img src="/images/h3_see-older-articles.png" alt="See Older Articles" /></a>
+ <a href="/blog/index2.html"><img src="/images/h3_see-older-articles.png" alt="See Older Articles" /></a>
</div><!-- //end newsbox -->
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090313/8db81ba3/attachment-0001.html>
More information about the macruby-changes
mailing list