Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 1122 Bytes
1 | ######################################################################## |
2 | # File:: help_helper.rb |
3 | # (C):: Hipposoft 2010 |
4 | # |
5 | # Purpose:: Utility methods for views providing help text. |
6 | # ---------------------------------------------------------------------- |
7 | # 15-Jan-2010 (ADH): Created. |
8 | # 18-Feb-2011 (ADH): Imported from Artisan. |
9 | ######################################################################## |
10 | |
11 | module HelpHelper |
12 | |
13 | # Pass the name of a help view parial, e.g. "user_geography" or |
14 | # "attach_video". Returns HTML consisting of an image linked to the |
15 | # associated help page in a blank target window. |
16 | # |
17 | def help_link( partial ) |
18 | help_url( help_path( partial ) ) |
19 | end |
20 | |
21 | # Pass a URL. Returns HTML consisting of an image linked to the given URL |
22 | # on the assumption that this URL is for some kind of help page. |
23 | # |
24 | def help_url( url ) |
25 | link_to( |
26 | image_tag( |
27 | 'icons/help.png', |
28 | :size => '16x16', |
29 | :alt => '?', |
30 | :align => 'top', |
31 | :class => 'help' |
32 | ), |
33 | url, |
34 | :target => '_blank', |
35 | :class => 'help' |
36 | ) |
37 | end |
38 | end |