Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 981 Bytes
1 | class NotificationMailer < ActionMailer::Base |
2 | helper :mail |
3 | |
4 | def article(article, user) |
5 | setup(user, article) |
6 | @subject = "[#{article.blog.blog_name}] New article: #{article.title}" |
7 | @body[:article] = article |
8 | end |
9 | |
10 | def comment(comment, user) |
11 | setup(user, comment) |
12 | @subject = "[#{comment.blog.blog_name}] New comment on #{comment.article.title}" |
13 | @body[:article] = comment.article |
14 | @body[:comment] = comment |
15 | end |
16 | |
17 | def trackback(sent_at = Time.now) |
18 | setup(user, trackback) |
19 | @subject = "[#{trackback.blog.blog_name}] New trackback on #{trackback.article.title}" |
20 | @body[:article] = trackback.article |
21 | @body[:trackback] = trackback |
22 | end |
23 | |
24 | private |
25 | def setup(user, content) |
26 | @body[:user] = user |
27 | @body[:blog] = content.blog |
28 | @recipients = user.email |
29 | @from = content.blog.email_from |
30 | @headers = {'X-Mailer' => "Typo #{TYPO_VERSION}"} |
31 | @blog_name = content.blog.blog_name |
32 | end |
33 | |
34 | end |