Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 377
- Log:
Various files are in the gem, but apparently not in the source distribution
on GitHub. These have been copied in from the working gem.
- Author:
- rool
- Date:
- Mon Mar 21 13:46:18 +0000 2011
- Size:
- 958 Bytes
- Properties:
- Property svn:executable is set to *
1 | class ArchiveMonthIndexPage < Page |
2 | |
3 | description %{ |
4 | To create a month index for an archive, create a child page for the |
5 | archive and assign the "Archive Month Index" page type to it. |
6 | |
7 | A month index page makes following tags available to you: |
8 | |
9 | <r:archive:children>...</r:archive:children> |
10 | Grants access to a subset of the children of the archive page |
11 | that match the specific year which the index page is rendering. |
12 | } |
13 | |
14 | include ArchiveIndexTagsAndMethods |
15 | desc %{ |
16 | Grants access to a subset of the children of the archive page |
17 | that match the specific month which the index page is rendering. |
18 | |
19 | *Usage*: |
20 | <pre><code><r:archive:children>...</r:archive:children></code></pre> |
21 | } |
22 | tag "archive:children" do |tag| |
23 | year, month = $1, $2 if request_uri =~ %r{/(\d{4})/(\d{2})/?$} |
24 | tag.locals.children = ArchiveFinder.month_finder(parent.children, year, month) |
25 | tag.expand |
26 | end |
27 | |
28 | end |