Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 71
- Log:
Start of upgrade to Typo 4.0.0, the latest stable release since
2.6.0. Note test/mocks/themes/azure changes from a file to a
directory, so the file has been removed in this revision and
the directory will be added in the next revision.
- Author:
- adh
- Date:
- Mon Aug 07 22:18:11 +0100 2006
- Size:
- 12555 Bytes
1 | <% @page_heading = 'Blog settings' %> |
2 | |
3 | <%= start_form_tag :action => 'update'%> |
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="#textfilter" onclick="new Effect.ScrollTo('textfilter'); return false">Text Filter</a></li> |
10 | <li><a href="#spam" onclick="new Effect.ScrollTo('spam'); return false">Spam Protection</a></li> |
11 | <li><a href="#resources" onclick="new Effect.ScrollTo('resources'); return false">Resource Defaults</a></li> |
12 | <li><a href="#misc" onclick="new Effect.ScrollTo('misc'); return false">Cache</a></li> |
13 | </ul> |
14 | <div style="clear:both;"></div> |
15 | </div> |
16 | |
17 | <div id="settings"> |
18 | <div id="gensettings" class="set" style="margin-top:10px;"> |
19 | <h3>General Settings</h3> |
20 | <p> |
21 | <label for="blog_name">Blog name:</label> |
22 | <input name="setting[blog_name]" id="blog_name" type="text" value="<%=h this_blog.blog_name %>" /> |
23 | </p> |
24 | <p> |
25 | <label for="blog_subtitle">Blog subtitle:</label> |
26 | <input name="setting[blog_subtitle]" id="blog_subtitle" type="text" value="<%=h this_blog.blog_subtitle %>" /> |
27 | </p> |
28 | <p> |
29 | <label for="canonical_server_url">Canonical Server Url:</label> |
30 | <input name="setting[canonical_server_url]" id="canonical_server_url" type="text" value="<%= this_blog.canonical_server_url %>" /> |
31 | </p> |
32 | <p> |
33 | <input name="setting[default_allow_comments]" id="default_allow_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.default_allow_comments%> /> |
34 | <input name="setting[default_allow_comments]" type="hidden" value="0"/> |
35 | <label for="default_allow_comments">Enable comments by default</label> |
36 | </p> |
37 | <p> |
38 | <input name="setting[default_allow_pings]" id="default_allow_pings" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.default_allow_pings%> /> |
39 | <input name="setting[default_allow_pings]" type="hidden" value="0"/> |
40 | <label for="default_allow_pings">Enable Trackbacks by default</label> |
41 | </p> |
42 | <p> |
43 | <label for="limit_article_display">Display </label> |
44 | <input name="setting[limit_article_display]" size="4" id="limit_article_display" type="text" value="<%= this_blog.limit_article_display %>" /> articles on my homepage by default. |
45 | </p> |
46 | <p> |
47 | <label for="limit_rss_display">Display </label> |
48 | <input name="setting[limit_rss_display]" size="4" id="limit_rss_display" type="text" value="<%= this_blog.limit_rss_display %>" /> articles in my rss feed by default. |
49 | </p> |
50 | <p> |
51 | <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%> /> |
52 | <input name="setting[show_extended_on_rss]" type="hidden" value="0"/> |
53 | <label for="show_extended_on_rss">Show full article on rss feed</label> |
54 | </p> |
55 | |
56 | <hr /> |
57 | |
58 | <p>Should the blog show mailto: links to your email address?</p> |
59 | <p><input name="setting[link_to_author]" id="link_to_author" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.link_to_author%> /><input name="setting[link_to_author]" type="hidden" value="0"/> <label for="link_to_author">Enable E-Mail public display</label></p> |
60 | |
61 | <hr /> |
62 | |
63 | <p>Should the blog use of the <a href="http://www.gravatar.com/">Globally Recognized Avatar (Gravatar)</a> service in comments?</p> |
64 | <p> |
65 | <input name="setting[use_gravatar]" id="use_gravatar" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.use_gravatar %> /> |
66 | <input name="setting[use_gravatar]" type="hidden" value="0"/> |
67 | <label for="use_gravatar">Enable Gravatar integration</label> |
68 | </p> |
69 | |
70 | <hr /> |
71 | |
72 | <p>Would you like to include your latitude and longitude in your blog's HTML pages? See <a href="http://geourl.org">GeoURL</a> for details. <br/>Example: <tt>47.774,-122.201</tt></p> |
73 | |
74 | <p> |
75 | <label for="geourl_location">Latitude, Longitude:</label> |
76 | <input name="setting[geourl_location]" size="20" id="geourl_location" type="text" value="<%= this_blog.geourl_location %>" /> |
77 | </p> |
78 | |
79 | <hr/> |
80 | |
81 | <p>This setting allows you to disable trackbacks for every article in |
82 | your blog. It won't remove existing trackbacks, but it will prevent |
83 | any further attempt to add a trackback anywhere on your blog. You can |
84 | enable or disable trackbacks per-article using the article's extended |
85 | settings. See also the |
86 | <a href="#gensettings" onclick="new Effect.ScrollTo('gensettings'); return false">"Enable Trackbacks by default" setting</a> above. |
87 | </p> |
88 | <p> |
89 | <input name="setting[global_pings_disable]" id="global_pings_disable" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.global_pings_disable%> /> |
90 | <input name="setting[global_pings_disable]" type="hidden" value="0"/> |
91 | <label for="global_pings_disable">Disable trackbacks site-wide</label> |
92 | |
93 | </p> |
94 | |
95 | <hr /> |
96 | |
97 | <p>Should Typo send trackbacks to websites that you link to? This should be disabled |
98 | for private blogs, as it will leak non-public information to sites that you're discussing. |
99 | For public blogs, there's no real point in disabling this.</p> |
100 | <p> |
101 | <input name="setting[send_outbound_pings]" id="send_outbound_pings" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.send_outbound_pings%> /> |
102 | <input name="setting[send_outbound_pings]" type="hidden" value="0"/> |
103 | <label for="send_outbound_pings">Send trackbacks to external sites</label> |
104 | |
105 | </p> |
106 | |
107 | <p> |
108 | <label for="ping_urls">URLs to ping automatically:</label><br/> |
109 | <textarea name="setting[ping_urls]" id="ping_urls" rows="5" cols="50"><%=h this_blog.ping_urls %></textarea> |
110 | </p> |
111 | |
112 | <p class="r"><%= save("Save My Settings") %></p> |
113 | </div> |
114 | |
115 | |
116 | <div id="textfilter" class="set"> |
117 | <h3>Text Filter</h3> |
118 | <p class="note">Typo supports a number of text filtering options. To add new filters, see the "filters" tab on the toolbar above.</p> |
119 | <p> |
120 | <select name="setting[text_filter]" id="text_filter"> |
121 | <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.text_filter) %> |
122 | </select> |
123 | <label for="text_filter">Article filter</label> |
124 | </p> |
125 | <p> |
126 | <select name="setting[comment_text_filter]" id="comment_text_filter"> |
127 | <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.comment_text_filter) %> |
128 | </select> |
129 | <label for="comment_text_filter">Comments filter</label> |
130 | </p> |
131 | <p class="r"><%= save("Save My Settings") %></p> |
132 | </div> |
133 | |
134 | <div id="notification" class="set"> |
135 | <h3>Notification</h3> |
136 | <p>Typo can notify you when new articles or comments are posted</p> |
137 | <p> |
138 | <label for="email_from">Email address to use in From: field when Typo sends mail:</label> |
139 | <input name="setting[email_from]" size="20" id="email_from" type="text" value="<%= this_blog.email_from %>" /> |
140 | </p> |
141 | <p> |
142 | <label for="jabber_address">Jabber account to use when sending Jabber notifications:</label> |
143 | <input name="setting[jabber_address]" size="20" id="jabber_address" type="text" value="<%= this_blog.jabber_address %>" /> |
144 | </p> |
145 | <p> |
146 | <label for="jabber_password">Password for Jabber account:</label> |
147 | <input name="setting[jabber_password]" size="20" id="jabber_password" type="password" value="<%= this_blog.jabber_password %>" /> |
148 | </p> |
149 | <p class="r"><%= save("Save My Settings") %></p> |
150 | </div> |
151 | |
152 | |
153 | <div id="spam" class="set"> |
154 | <h3>Spam Protection</h3> |
155 | <p>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.</p> |
156 | <p> |
157 | <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"/> |
158 | <label for="sp_global">Enable spam protection</label> |
159 | </p> |
160 | <p>Typo can (optionally) use the <a href="http://akismet.com">Akismet</a> spam-filtering service. You need to register with |
161 | Akismet and receive an API key before you can use their service. If you have an Akismet key, enter it here. |
162 | </p> |
163 | <p> |
164 | <label for="sp_akismet_key">Akismet Key</label> |
165 | <input name="setting[sp_akismet_key]" id="sp_akismet_key" type="text" value="<%=h this_blog.sp_akismet_key %>"/> |
166 | </p> |
167 | <p>You can optionally disable non-Ajax comments. Typo will always use Ajax for comment submission if Javascript is enabled, |
168 | so non-Ajax comments are either from spammers or users without Javascript. |
169 | </p> |
170 | <p> |
171 | <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%> /> |
172 | <input name="setting[sp_allow_non_ajax_comments]" type="hidden" value="0" /> |
173 | <label for="sp_allow_non_ajax_comments">Allow non-ajax comments</label> |
174 | <br /><small>(Spam bots usually don't know anything about ajax comments)</small> |
175 | </p> |
176 | <p> |
177 | <label for="sp_article_auto_close">Disable comments after</label> |
178 | <input name="setting[sp_article_auto_close]" size="4" id="sp_article_auto_close" type="text" value="<%= this_blog.sp_article_auto_close %>" /> days |
179 | <br /><small>(Set to 0 to never disable comments)</small> |
180 | </p> |
181 | <p>Typo will automatically reject comments and trackbacks which contain over a certain amount of links in them.</p> |
182 | <p> |
183 | <label for="sp_url_limit">Max URLs:</label> |
184 | <input name="setting[sp_url_limit]" size="4" id="sp_url_limit" type="text" value="<%= this_blog.sp_url_limit %>" /> links |
185 | <br /><small>(Set to 0 to never reject comments)</small> |
186 | </p> |
187 | <p class="r"><%= save("Save My Settings") %></p> |
188 | </div> |
189 | <div id="resources" class="set"> |
190 | <h3>Resource Defaults</h3> |
191 | <p> |
192 | The below settings act as defaults when you choose to publish an enclosure with iTunes metadata. |
193 | </p> |
194 | <p> |
195 | <label for="itunes_author">Author:</label> |
196 | <input name="setting[itunes_author]" size="25" id="itunes_author" type="text" value="<%= this_blog.itunes_author %>" /> |
197 | </p> |
198 | <p> |
199 | <label for="itunes_subtitle">Subtitle:</label> |
200 | <input name="setting[itunes_subtitle]" size="25" id="itunes_subtitle" type="text" value="<%= this_blog.itunes_subtitle %>" /><small>(setting for channel)</small> |
201 | </p> |
202 | <p> |
203 | <label for="itunes_summary">Summary:<small>(setting for channel)</small> |
204 | </label> <br /> |
205 | <textarea name="setting[itunes_summary]" cols="40" rows="3"><%=h this_blog.itunes_summary %></textarea> |
206 | </p> |
207 | <p> |
208 | <label for="itunes_email">Email:</label> |
209 | <input name="setting[itunes_email]" size="25" id="itunes_email" type="text" value="<%= this_blog.itunes_email %>" /> <small> Not Published by Apple</small> |
210 | </p> |
211 | <p> |
212 | <label for="itunes_name">Optional Name:</label> |
213 | <input name="setting[itunes_name]" size="25" id="itunes_name" type="text" value="<%= this_blog.itunes_name %>" /> <small> Not Published by Apple</small> |
214 | |
215 | </p> |
216 | <p> |
217 | <label for="itunes_copyright">Copyright Information:</label> |
218 | <input name="setting[itunes_copyright]" size="25" id="itunes_copyright" type="text" value="<%= this_blog.itunes_copyright %>" /> |
219 | </p> |
220 | <p> |
221 | <label for="itunes_explicit">Explicit:</label> |
222 | <input name="setting[itunes_explicit]" id="itunes_explicit" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.itunes_explicit%> /><input name="setting[itunes_explicit]" type="hidden" value="0" /> |
223 | </p> |
224 | <p class="r"><%= save("Save My Settings") %></p> |
225 | </div> |
226 | </div> |
227 | |
228 | <div id="misc" class="set"> |
229 | <h3>Cache</h3> |
230 | <%= link_to 'Empty Fragment Cache', :controller => 'cache', :action => 'sweep' %><br /> |
231 | <%= link_to 'Rebuild cached HTML', :controller => 'cache', :action => 'sweep_html' %><br /> |
232 | <div id="users"> |
233 | <p>There are <%= @page_cache_size %> entries in the cache</p> |
234 | </div> |
235 | </div> |
236 | |
237 | |
238 | <div id="operations" class="tasks"> |
239 | <%= save("Save My Settings") %> |
240 | </div> |
241 | |
242 | <%= end_form_tag %> |