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:
- 5308 Bytes
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3 | |
4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
5 | <head> |
6 | <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> |
7 | <%= csrf_meta_tag.gsub( /^/, ' ' ) %> |
8 | |
9 | <title><%= apphelp_title %></title> |
10 | |
11 | <%= include_prototype_if_used( ' ' ) -%> |
12 | <%= include_lightwindow_if_used( ' ' ) -%> |
13 | <%= include_leightbox_if_used( ' ' ) -%> |
14 | <% if using_quiet_prototype? -%> |
15 | <%= javascript_include_tag( 'canvass/redcloth_preview.js' ) %> |
16 | <% end -%> |
17 | <link href="/hub/stylesheets/shared.css" media="all" rel="stylesheet" type="text/css" /> |
18 | <%= stylesheet_link_tag( 'default_general', :media => :all ) %> |
19 | <%= stylesheet_link_tag( 'default_print', :media => :print ) %> |
20 | </head> |
21 | <body> |
22 | <div id="header_and_content"> |
23 | <%= render 'shared/fixed_header' %> |
24 | <%= ""#render :partial => 'layouts/header' |
25 | %> |
26 | |
27 | <!-- Canvass content table --> |
28 | |
29 | <div id="template_body_background"><div id="template_body_shadow_left" class="template_shadow_left"><div id="template_body_shadow_right" class="template_shadow_right"><div id="template_body_content" class="template_body_content template_overall_content"> |
30 | |
31 | <br /> |
32 | <table width="100%" cellspacing="0" cellpadding="0" align="center"> |
33 | <tr valign="top" align="left"> |
34 | <td width="75%"> |
35 | <div class="flash"><%= hubssolib_flash_tags -%></div> |
36 | <div class="content"> |
37 | <% unless controller.skip_main_heading? -%> |
38 | <h1><%= apphelp_heading() %></h1> |
39 | <% end -%> |
40 | <%= yield %> |
41 | </div> |
42 | |
43 | <td> </td> |
44 | <td bgcolor="#bbbbbb" class="template_column_divider"><%= image_tag(image_path("shared/blank.gif"), :size => "1x1", :border => 0, :alt => '.') %></td> |
45 | <td> </td> |
46 | |
47 | <td width="25%"> |
48 | <div id="sidebar"> |
49 | <div class="template_sidebar_node"> |
50 | <h3><%= apphelp_generic( :actions ) %></h3> |
51 | |
52 | <ul> |
53 | <%= |
54 | buttons = [] |
55 | |
56 | if ( logged_in? && current_user.admin? ) |
57 | buttons << [ |
58 | :index, |
59 | { |
60 | :controller => PollsController, |
61 | :method => :user_polls_path, |
62 | :text => apphelp_view_hint( :your_polls, PollsController ) |
63 | }, |
64 | { |
65 | :user_id => current_user.id |
66 | } |
67 | ] |
68 | end |
69 | |
70 | buttons << [ |
71 | :index, |
72 | { |
73 | :controller => PollsController, |
74 | :method => :polls_path |
75 | } |
76 | ] |
77 | |
78 | if ( logged_in? ) |
79 | buttons << [ |
80 | :index, |
81 | { |
82 | :controller => DonationsController, |
83 | :method => :user_donations_path, |
84 | :text => apphelp_view_hint( :your_donations, DonationsController ) |
85 | }, |
86 | { |
87 | :user_id => current_user.nil? ? 0 : current_user.id |
88 | } |
89 | ] |
90 | |
91 | if ( current_user.admin? ) |
92 | buttons << [ |
93 | :index, |
94 | { |
95 | :controller => DonationsController, |
96 | :method => :donations_path |
97 | } |
98 | ] |
99 | end |
100 | end |
101 | |
102 | buttons += [ |
103 | [ |
104 | :index, |
105 | { |
106 | :controller => AuditersController, |
107 | :method => :auditers_path |
108 | } |
109 | ], |
110 | [ |
111 | :index, |
112 | { |
113 | :controller => UsersController, |
114 | :method => :users_path |
115 | } |
116 | ], |
117 | [ |
118 | :index, |
119 | { |
120 | :controller => CurrenciesController, |
121 | :method => :currencies_path |
122 | } |
123 | ] |
124 | ] |
125 | |
126 | apphelp_protected_links_to( |
127 | { :prefix => '<li>', :suffix => '</li>' }, |
128 | *buttons |
129 | ) |
130 | %> |
131 | </ul> |
132 | </div> |
133 | |
134 | <p /> |
135 | <%= render 'shared/fixed_sidebar' %> |
136 | |
137 | <p /> |
138 | <div class="template_sidebar_node"> |
139 | <h3>Site security</h3> |
140 | |
141 | <p /> |
142 | SSL logo here, if you want it. |
143 | </div> |
144 | </div> |
145 | </td> |
146 | </tr> |
147 | </table> |
148 | <br /> |
149 | |
150 | </div></div></div></div> |
151 | |
152 | <div id="above_footer"></div> |
153 | </div> |
154 | |
155 | <%= render 'shared/fixed_footer' %> |
156 | <%= #render :partial => 'layouts/footer' |
157 | %> |
158 | </body> |
159 | </html> |