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:
- 15345 Bytes
1 | <% @page_heading = _('Blog settings') %> |
2 | |
3 | <% form_tag :action => 'update' do %> |
4 | |
5 | <div class="tasks"> |
6 | <h3><%= _("Which settings group would you like to edit")%>?</h3> |
7 | <ul> |
8 | <li><a href="#gensettings" onclick="new Effect.ScrollTo('gensettings'); return false"><%= _("General Settings")%></a></li> |
9 | <li><a href="#read" onclick="new Effect.ScrollTo('read'); return false"><%= _("Read")%></a></li> |
10 | <li><a href="#write" onclick="new Effect.ScrollTo('write'); return false"><%= _("Write")%></a></li> |
11 | <li><a href="#discuss" onclick="new Effect.ScrollTo('discuss'); return false"><%= _("Discuss")%></a></li> |
12 | <li><a href="#notification" onclick="new Effect.ScrollTo('notification'); return false"><%= _("Notification")%></a></li> |
13 | <li><a href="#spam" onclick="new Effect.ScrollTo('spam'); return false"><%= _("Spam Protection")%></a></li> |
14 | <li><a href="#resources" onclick="new Effect.ScrollTo('resources'); return false"><%= _("Resource Settings")%></a></li> |
15 | <li><a href="#misc" onclick="new Effect.ScrollTo('misc'); return false"><%= _("Cache")%></a></li> |
16 | </ul> |
17 | <p style="clear:both;"></p> |
18 | </div> |
19 | |
20 | <div class="admin"> |
21 | <fieldset id="gensettings" class="set" style="margin-top:10px;"> |
22 | <legend><%= _("General settings")%></legend> |
23 | |
24 | <ul> |
25 | <li> |
26 | <label for="blog_name" class="float"><%= _("Blog name")%>:</label> |
27 | <input name="setting[blog_name]" id="blog_name" type="text" value="<%=h this_blog.blog_name %>" size="<%= this_blog.blog_name.length %>" /> |
28 | </li> |
29 | <li> |
30 | <label class="float" for="blog_subtitle"><%= _("Blog subtitle")%>:</label> |
31 | <input name="setting[blog_subtitle]" id="blog_subtitle" type="text" value="<%=h this_blog.blog_subtitle %>" size="<%= this_blog.blog_subtitle.length%>" /> |
32 | </li> |
33 | <li> |
34 | <label class="float" for="base_url"><%= _("Blog URL")%>:</label> |
35 | <input name="setting[base_url]" id="base_url" type="text" value="<%=h this_blog.base_url %>" size="<%= this_blog.base_url.length %> " /> |
36 | </li> |
37 | <li> |
38 | <label class="float" for="geourl_location"><%= _("Latitude, Longitude")%>:</label> |
39 | <input name="setting[geourl_location]" size="20" id="geourl_location" type="text" value="<%= this_blog.geourl_location %>" /> |
40 | <span class="float"><%= _("Display")%> <a href="http://geourl.org"><%= _("your lattitude and longitude")%></a> (<%= _("exemple")%> <tt>47.774,-122.201</tt>)</span> |
41 | </li> |
42 | <li> |
43 | <label class="float"><%= _("Show blog name")%>:</label> |
44 | <input type="radio" name="setting[title_prefix]" value="1" id="blog_title_prefix_1" <%= 'checked="checked"' if this_blog.title_prefix == 1 %>/> |
45 | <label for="blog_title_prefix_1"><%= _("At the beginning of page title")%></label> |
46 | <span class="float"> |
47 | <input type="radio" name="setting[title_prefix]" value="2" id="blog_title_prefix_2" <%= 'checked="checked"' if this_blog.title_prefix == 2 %>/> |
48 | <label for="blog_title_prefix_2"><%= _("At the end of page title")%></label> |
49 | </span> |
50 | <span class="float"> |
51 | <input type="radio" name="setting[title_prefix]" value="0" id="blog_title_prefix_0" <%= 'checked="checked"' if this_blog.title_prefix == 0 %>/> |
52 | <label for="blog_title_prefix_0"><%= _("Don't show blog name in page title")%></label> |
53 | </span> |
54 | </li> |
55 | </ul> |
56 | <p class="r"><%= save(_("Save Settings")) %></p> |
57 | </fieldset> |
58 | |
59 | <fieldset id="read" class="set"> |
60 | <legend><%= _("Read")%></legend> |
61 | |
62 | <ul> |
63 | <li> |
64 | <label for="limit_article_display" class="float"><%= _("Display")%> </label> |
65 | <input name="setting[limit_article_display]" size="4" id="limit_article_display" type="text" value="<%= this_blog.limit_article_display %>" /> |
66 | <%= _("articles on my homepage by default")%> |
67 | </li> |
68 | <li> |
69 | <label for="limit_rss_display" class="float"><%= _("Display")%> </label> |
70 | <input name="setting[limit_rss_display]" size="4" id="limit_rss_display" type="text" value="<%= this_blog.limit_rss_display %>" /> |
71 | <%= _("articles in my news feed by default")%>. |
72 | </li> |
73 | <li class="checkbox"> |
74 | <label class="float" for="show_extended_on_rss"><%= _("Show full article on feed")%>:</label> |
75 | <input name="setting[show_extended_on_rss]" id="show_extended_on_rss" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.show_extended_on_rss%> /> |
76 | <input name="setting[show_extended_on_rss]" type="hidden" value="0" /> |
77 | </li> |
78 | </ul> |
79 | <p class="r"><%= save(_("Save Settings")) %></p> |
80 | </fieldset> |
81 | |
82 | <fieldset id="write" class="set"> |
83 | <legend><%= _("Write")%></legend> |
84 | |
85 | <ul> |
86 | <li> |
87 | <label class="float" for="text_filter"><%= _("Article filter")%>:</label> |
88 | <select name="setting[text_filter]" id="text_filter"> |
89 | <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.text_filter) %> |
90 | </select> |
91 | </li> |
92 | <li> |
93 | <label for="comment_text_filter" class="float"><%= _("Comments filter")%>:</label> |
94 | <select name="setting[comment_text_filter]" id="comment_text_filter"> |
95 | <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.comment_text_filter) %> |
96 | </select> |
97 | </li> |
98 | <li> |
99 | <%= _("When publishing articles, Typo can send trackbacks to websites that you link to. This should be disabled for private blogs as it will leak non-public information to sites that you're discussing. For public blogs, there's no real point in disabling this.")%> |
100 | </li> |
101 | <li class="checkbox"> |
102 | <label class="float" for="send_outbound_pings"><%= _("Send trackbacks")%>:</label> |
103 | <input name="setting[send_outbound_pings]" id="send_outbound_pings" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.send_outbound_pings%> /> |
104 | <input name="setting[send_outbound_pings]" type="hidden" value="0" /> |
105 | </li> |
106 | <li> |
107 | <label class="float" for="ping_urls"><%= _("URLs to ping automatically")%>:</label> |
108 | <textarea name="setting[ping_urls]" id="ping_urls" rows="5" cols="50"><%=h this_blog.ping_urls %></textarea> |
109 | </li> |
110 | </ul> |
111 | <p class="r"><%= save(_("Save Settings")) %></p> |
112 | </fieldset> |
113 | |
114 | <fieldset id="discuss" class="set"> |
115 | <legend><%= _("Discuss")%></legend> |
116 | <ul> |
117 | <li> |
118 | <%= _("This setting allows you to disable trackbacks for every article in your blog. It won't remove existing trackbacks, but it will prevent any further attempt to add a trackback anywhere on your blog.")%> |
119 | </li> |
120 | <li class="checkbox"> |
121 | <label class="float" for="global_pings_disable"><%= _("Disable trackbacks site-wide")%>:</label> |
122 | <input name="setting[global_pings_disable]" id="global_pings_disable" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.global_pings_disable%> /> |
123 | <input name="setting[global_pings_disable]" type="hidden" value="0" /> |
124 | </li> |
125 | <li class="checkbox"> |
126 | <label class="float" for="default_allow_pings"><%= _("Enable Trackbacks by default")%>:</label> |
127 | <input name="setting[default_allow_pings]" id="default_allow_pings" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.default_allow_pings%> /> |
128 | <input name="setting[default_allow_pings]" type="hidden" value="0" /> |
129 | </li> |
130 | <li><%= _("You can enable site wide comment moderation. If you do so, no comment or trackback will appear on your blog unless you validate it")%>.</li> |
131 | <li class="checkbox"> |
132 | <label class="float" for="default_moderate_comments"><%= _("Enable comments moderation")%>:</label> |
133 | <input name="setting[default_moderate_comments]" id="default_moderate_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.default_moderate_comments %> /> |
134 | <input name="setting[default_moderate_comments]" type="hidden" value="0" /> |
135 | </li> |
136 | <li class="checkbox"> |
137 | <label class="float" for="default_allow_comments"><%= _("Enable comments by default")%>:</label> |
138 | <input name="setting[default_allow_comments]" id="default_allow_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.default_allow_comments%> /> |
139 | <input name="setting[default_allow_comments]" type="hidden" value="0" /> |
140 | </li> |
141 | <li class="checkbox"> |
142 | <label class="float" for="link_to_author"><%= _("Show your email address") %>:</label> |
143 | <input name="setting[link_to_author]" id="link_to_author" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.link_to_author%> /> |
144 | <input name="setting[link_to_author]" type="hidden" value="0" /> |
145 | </li> |
146 | <li class="checkbox"> |
147 | <label class="float" for="use_gravatar"><%= _("Enable gravatars")%>:</label> |
148 | <input name="setting[use_gravatar]" id="use_gravatar" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.use_gravatar %> /> |
149 | <input name="setting[use_gravatar]" type="hidden" value="0" /> |
150 | </li> |
151 | <li> |
152 | <%= _("You can optionally disable non-Ajax comments. Typo will always use Ajax for comment submission if Javascript is enabled, so non-Ajax comments are either from spammers or users without Javascript.")%> |
153 | </li> |
154 | <li class="checkbox"> |
155 | <label for="sp_allow_non_ajax_comments" class="float"><%= _("Allow non-ajax comments") %>:</label> |
156 | <input name="setting[sp_allow_non_ajax_comments]" id="sp_allow_non_ajax_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.sp_allow_non_ajax_comments%> /> |
157 | <input name="setting[sp_allow_non_ajax_comments]" type="hidden" value="0" /> |
158 | </li> |
159 | <li> |
160 | <label for="sp_article_auto_close" class="float"><%= _("Disable comments after")%></label> |
161 | <input name="setting[sp_article_auto_close]" size="4" id="sp_article_auto_close" type="text" value="<%= this_blog.sp_article_auto_close %>" /> <%= _("days") %> |
162 | <span class="float"><%= _("Set to 0 to never disable comments")%></span> |
163 | </li> |
164 | <li> |
165 | <p><%= _("Typo will automatically reject comments and trackbacks which contain over a certain amount of links in them")%>.</p> |
166 | <label class="float" for="sp_url_limit"><%= _("Max Links")%>:</label> |
167 | <input name="setting[sp_url_limit]" size="4" id="sp_url_limit" type="text" value="<%= this_blog.sp_url_limit %>" /> |
168 | <span class="float"><%= _("Set to 0 to never reject comments")%></span> |
169 | </li> |
170 | </ul> |
171 | |
172 | <p class="r"><%= save(_("Save Settings")) %></p> |
173 | </fieldset> |
174 | |
175 | <fieldset id="notification" class="set"> |
176 | <legend><%= _("Notification")%></legend> |
177 | <ul> |
178 | <li><%= _("Typo can notify you when new articles or comments are posted")%></li> |
179 | <li> |
180 | <label class="float" for="email_from"><%= _("Source Email")%>:</label> |
181 | <input name="setting[email_from]" size="25" id="email_from" type="text" value="<%= this_blog.email_from %>" /> |
182 | <span class="float"><%= _("Email address used by Typo to send notifications")%>.</span> |
183 | </li> |
184 | <li> |
185 | <label for="jabber_address" class="float"><%=_("Jabber account")%>:</label> |
186 | <input name="setting[jabber_address]" size="20" id="jabber_address" type="text" value="<%= this_blog.jabber_address %>" /> |
187 | <span class="float"><%= _("Jabber account to use when sending Jabber notifications") %>.</span> |
188 | </li> |
189 | <li> |
190 | <label class="float" for="jabber_password"><%= _("Jabber password")%>:</label> |
191 | <input name="setting[jabber_password]" size="20" id="jabber_password" type="password" value="<%= this_blog.jabber_password %>" /> |
192 | </li> |
193 | </ul> |
194 | <p class="r"><%= save(_("Save Settings")) %></p> |
195 | </fieldset> |
196 | |
197 | <fieldset id="spam" class="set"> |
198 | <legend><%= _("Spam protection")%></legend> |
199 | |
200 | <ul> |
201 | <li><%= _("Enabling spam protection will make typo compare the IP address of posters as well as the contents of their posts against local and remote blacklists. Good defense against spam bots")%>.</li> |
202 | <li class="checkbox"> |
203 | <label for="sp_global" class="float"><%= _("Enable spam protection")%>:</label> |
204 | <input name="setting[sp_global]" id="sp_global" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.sp_global%> /><input name="setting[sp_global]" type="hidden" value="0" /> |
205 | </li> |
206 | <li><%= _("Typo can (optionally) use the %s spam-filtering service. You need to register with Akismet and receive an API key before you can use their service. If you have an Akismet key, enter it here", '<a href="http://akismet.com">Akismet</a>')%> . |
207 | </li> |
208 | <li> |
209 | <label class="float" for="sp_akismet_key"><%= _("Akismet Key")%>:</label> |
210 | <input name="setting[sp_akismet_key]" id="sp_akismet_key" type="text" value="<%=h this_blog.sp_akismet_key %>" /> |
211 | </li> |
212 | </ul> |
213 | <p class="r"><%= save(_("Save Settings")) %></p> |
214 | </fieldset> |
215 | |
216 | <fieldset id="resources" class="set"> |
217 | <legend><%= _("Resource Settings")%></legend> |
218 | <ul> |
219 | <li><%= _("The below settings act as defaults when you choose to publish an enclosure with iTunes metadata")%>.</li> |
220 | <li> |
221 | <label for="itunes_author" class="float"><%= _("Author")%>:</label> |
222 | <input name="setting[itunes_author]" size="25" id="itunes_author" type="text" value="<%= this_blog.itunes_author %>" /> |
223 | </li> |
224 | <li> |
225 | <label for="itunes_subtitle" class="float"><%= _("Subtitle")%>: <span class="mandatory">*</span></label> |
226 | <input name="setting[itunes_subtitle]" size="25" id="itunes_subtitle" type="text" value="<%= this_blog.itunes_subtitle %>" /> |
227 | </li> |
228 | <li> |
229 | <label class="float" for="itunes_summary"><%= _("Summary")%>: <span class="mandatory">*</span></label> |
230 | <textarea name="setting[itunes_summary]" cols="40" rows="3"><%=h this_blog.itunes_summary %></textarea> |
231 | <span class="float mandatory">* <%= _("Setting for channel")%></span> |
232 | </li> |
233 | <li> |
234 | <label class="float" for="itunes_email"><%= _("Email")%>: <span class="mandatory">**</span></label> |
235 | <input name="setting[itunes_email]" size="25" id="itunes_email" type="text" value="<%= this_blog.itunes_email %>" /> |
236 | </li> |
237 | <li> |
238 | <label class="float" for="itunes_name"><%= _("Optional Name")%>: <span class="mandatory">**</span></label> |
239 | <input name="setting[itunes_name]" size="25" id="itunes_name" type="text" value="<%= this_blog.itunes_name %>" /> |
240 | <span class="float mandatory">** <%= _("Not published by Apple")%></span> |
241 | </li> |
242 | <li> |
243 | <label class="float" for="itunes_copyright"><%= _("Copyright Information")%>:</label> |
244 | <input name="setting[itunes_copyright]" size="25" id="itunes_copyright" type="text" value="<%= this_blog.itunes_copyright %>" /> |
245 | </li> |
246 | <li class="checkbox"> |
247 | <label class="float" for="itunes_explicit"><%= _("Explicit")%>:</label> |
248 | <input name="setting[itunes_explicit]" id="itunes_explicit" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.itunes_explicit%> /> |
249 | <input name="setting[itunes_explicit]" type="hidden" value="0" /> |
250 | </li> |
251 | </ul> |
252 | <p class="r"><%= save(_("Save Settings")) %></p> |
253 | </fieldset> |
254 | |
255 | <fieldset id="misc" class="set"> |
256 | <legend><%= _("Cache")%></legend> |
257 | <ul> |
258 | <li><%= link_to _('Empty Fragment Cache'), :controller => '/admin/cache', :action => 'sweep' %></li> |
259 | <li><%= link_to _('Rebuild cached HTML'), :controller => '/admin/cache', :action => 'sweep_html' %></li> |
260 | <p id="users"><%= _("There are %d entries in the cache", @page_cache_size) %></p> |
261 | </ul> |
262 | </fieldset> |
263 | |
264 | <div id="operations" class="tasks"> |
265 | <%= save(_("Save Settings")) %> |
266 | </div> |
267 | </div> |
268 | <% end %> |