Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 5910 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="#misc" onclick="new Effect.ScrollTo('misc'); return false">Cache</a></li> |
12 | </ul> |
13 | <div style="clear:both;"></div> |
14 | </div> |
15 | |
16 | <div id="settings"> |
17 | <div id="gensettings" class="set" style="margin-top:10px;"> |
18 | <h3>General Settings</h3> |
19 | <p> |
20 | <label for="blog_name">Blog name:</label> |
21 | <input name="setting[blog_name]" id="blog_name" type="text" value="<%=h config_value(:blog_name) %>" /> |
22 | </p> |
23 | <p> |
24 | <label for="blog_subtitle">Blog subtitle:</label> |
25 | <input name="setting[blog_subtitle]" id="blog_subtitle" type="text" value="<%=h config_value(:blog_subtitle) %>" /> |
26 | </p> |
27 | <p> |
28 | <input name="setting[default_allow_comments]" id="default_allow_comments" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:default_allow_comments)%> /> |
29 | <input name="setting[default_allow_comments]" type="hidden" value="0"/> |
30 | <label for="default_allow_comments">Enable comments by default</label> |
31 | </p> |
32 | <p> |
33 | <input name="setting[default_allow_pings]" id="default_allow_pings" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:default_allow_pings)%> /> |
34 | <input name="setting[default_allow_pings]" type="hidden" value="0"/> |
35 | <label for="default_allow_pings">Enable Trackbacks by default</label> |
36 | </p> |
37 | <p> |
38 | <label for="limit_article_display">Display </label> |
39 | <input name="setting[limit_article_display]" size="4" id="limit_article_display" type="text" value="<%= config_value(:limit_article_display) %>" /> articles on my homepage by default. |
40 | </p> |
41 | <p> |
42 | <label for="limit_rss_display">Display </label> |
43 | <input name="setting[limit_rss_display]" size="4" id="limit_rss_display" type="text" value="<%= config_value(:limit_rss_display) %>" /> articles in my rss feed by default. |
44 | </p> |
45 | |
46 | <p>Should the blog show mailto: links to your email address?</p> |
47 | <p><input name="setting[link_to_author]" id="link_to_author" type="checkbox" value="1" <%= 'checked="checked"' if config_value(: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> |
48 | |
49 | <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> |
50 | |
51 | <p> |
52 | <label for="geourl_location">Latitude, Longitude:</label> |
53 | <input name="setting[geourl_location]" size="20" id="geourl_location" type="text" value="<%= config_value(:geourl_location) %>" /> |
54 | </p> |
55 | |
56 | <p class="r"><%= save("Save My Settings") %></p> |
57 | </div> |
58 | |
59 | |
60 | <div id="textfilter" class="set"> |
61 | <h3>Text Filter</h3> |
62 | <p class="note">Your options depend on which gems you have installed. Following configurations are supported. <a href="http://www.whytheluckystiff.net/ruby/redcloth/" title="gem install redcloth">RedCloth</a>, <a href="http://www.deveiate.org/projects/BlueCloth">BlueCloth</a> and <a href="http://chneukirchen.org/blog/static/projects/rubypants.html">RubyPants</a> gems are supported.</p> |
63 | <p> |
64 | <select name="setting[text_filter]" id="text_filter"> |
65 | <%= options_for_select text_filter_options, config_value(:text_filter) %> |
66 | </select> |
67 | <label for="text_filter">Article filter</label> |
68 | </p> |
69 | <p> |
70 | <select name="setting[comment_text_filter]" id="comment_text_filter"> |
71 | <%= options_for_select text_filter_options, config_value(:comment_text_filter) %> |
72 | </select> |
73 | <label for="comment_text_filter">Comments filter</label> |
74 | </p> |
75 | <p class="r"><%= save("Save My Settings") %></p> |
76 | </div> |
77 | |
78 | |
79 | <div id="spam" class="set"> |
80 | <h3>Spam Protection</h3> |
81 | <p>Enabling spam protection will make typo compare the IP address of posters against blacklists. Good defense against spam bots.</p> |
82 | <p> |
83 | <input name="setting[sp_global]" id="sp_global" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:sp_global)%> /><input name="setting[sp_global]" type="hidden" value="0"/> |
84 | <label for="sp_global">Enable spam protection</label> |
85 | </p> |
86 | <p> |
87 | <label for="sp_article_auto_close">Disable comments after</label> |
88 | <input name="setting[sp_article_auto_close]" size="4" id="sp_article_auto_close" type="text" value="<%= config_value(:sp_article_auto_close) %>" /> days |
89 | <br /><small>(Set to 0 to never disable comments)</small> |
90 | </p> |
91 | <p>Typo will automatically reject comments and trackbacks which contain over a certain amount of links in them.</p> |
92 | <p> |
93 | <label for="sp_url_limit">Max URLs:</label> |
94 | <input name="setting[sp_url_limit]" size="4" id="sp_url_limit" type="text" value="<%= config_value(:sp_url_limit) %>" /> links |
95 | <br /><small>(Set to 0 to never reject comments)</small> |
96 | </p> |
97 | <p class="r"><%= save("Save My Settings") %></p> |
98 | </div> |
99 | </div> |
100 | |
101 | <div id="misc" class="set"> |
102 | <h3>Cache</h3> |
103 | <%= link_to 'Empty Page Cache', :controller => 'cache', :action => 'sweep' %> |
104 | <div id="users"> |
105 | <p>There are <%= @page_cache_size %> entries in the page cache</p> |
106 | </div> |
107 | </div> |
108 | |
109 | |
110 | <div id="operations" class="tasks"> |
111 | <%= save("Save My Settings") %> |
112 | </div> |
113 | |
114 | <%= end_form_tag %> |