⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.rhtml

📁 用ruby on rails写的一个博客程序,还不错..ruby on rails的确是个好框架
💻 RHTML
📖 第 1 页 / 共 2 页
字号:
	<% @page_heading = _('Blog settings') %>	<% form_tag :action => 'update' do %>	<div class="tasks">		<h3><%= _("Which settings group would you like to edit")%>?</h3>    	<ul>      		<li><a href="#gensettings" onclick="new Effect.ScrollTo('gensettings'); return false"><%= _("General Settings")%></a></li>      		<li><a href="#read" onclick="new Effect.ScrollTo('read'); return false"><%= _("Read")%></a></li>      		<li><a href="#write" onclick="new Effect.ScrollTo('write'); return false"><%= _("Write")%></a></li>      		<li><a href="#discuss" onclick="new Effect.ScrollTo('discuss'); return false"><%= _("Discuss")%></a></li>      		<li><a href="#notification" onclick="new Effect.ScrollTo('notification'); return false"><%= _("Notification")%></a></li>      		<li><a href="#spam" onclick="new Effect.ScrollTo('spam'); return false"><%= _("Spam Protection")%></a></li>      		<li><a href="#resources" onclick="new Effect.ScrollTo('resources'); return false"><%= _("Resource Settings")%></a></li>      		<li><a href="#misc" onclick="new Effect.ScrollTo('misc'); return false"><%= _("Cache")%></a></li>    	</ul>    <p style="clear:both;"></p>  </div><div class="admin">	<fieldset id="gensettings" class="set" style="margin-top:10px;">		<legend><%= _("General settings")%></legend>		<ul>			<li>				<label for="blog_name" class="float"><%= _("Blog name")%>:</label>				<input name="setting[blog_name]" id="blog_name" type="text" value="<%=h this_blog.blog_name %>" size="<%= this_blog.blog_name.length %>" />			</li>			<li>				<label class="float" for="blog_subtitle"><%= _("Blog subtitle")%>:</label>				<input name="setting[blog_subtitle]" id="blog_subtitle" type="text" value="<%=h this_blog.blog_subtitle %>" size="<%= this_blog.blog_subtitle.length%>" />		    </li>			<li>				<label class="float" for="base_url"><%= _("Blog URL")%>:</label>				<input name="setting[base_url]" id="base_url" type="text" value="<%=h this_blog.base_url %>" size="<%= this_blog.base_url.length %> " />			</li>			<li>				<label class="float" for="geourl_location"><%= _("Latitude, Longitude")%>:</label>				<input name="setting[geourl_location]" size="20" id="geourl_location" type="text" value="<%= this_blog.geourl_location %>" />				<span class="float"><%= _("Display")%> <a href="http://geourl.org"><%= _("your lattitude and longitude")%></a> (<%= _("exemple")%> <tt>47.774,-122.201</tt>)</span>			</li>			<li>				<label class="float"><%= _("Show blog name")%>:</label>				<input type="radio" name="setting[title_prefix]" value="1" id="blog_title_prefix_1" <%= 'checked="checked"' if this_blog.title_prefix == 1 %>/>				<label for="blog_title_prefix_1"><%= _("At the beginning of page title")%></label>				<span class="float">					<input type="radio" name="setting[title_prefix]" value="2" id="blog_title_prefix_2" <%= 'checked="checked"' if this_blog.title_prefix == 2 %>/>					<label for="blog_title_prefix_2"><%= _("At the end of page title")%></label>				</span>				<span class="float">					<input type="radio" name="setting[title_prefix]" value="0" id="blog_title_prefix_0" <%= 'checked="checked"' if this_blog.title_prefix == 0 %>/>				    <label for="blog_title_prefix_0"><%= _("Don't show blog name in page title")%></label>				</span>		  	</li>		</ul>    	<p class="r"><%= save(_("Save Settings")) %></p>  	</fieldset>	<fieldset id="read" class="set">		<legend><%= _("Read")%></legend>		<ul>			<li>				<label for="limit_article_display" class="float"><%= _("Display")%> </label>				<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")%>			</li>			<li>			    <label for="limit_rss_display" class="float"><%= _("Display")%> </label>			    <input name="setting[limit_rss_display]" size="4" id="limit_rss_display" type="text" value="<%= this_blog.limit_rss_display %>" />				<%= _("articles in my news feed by default")%>.			</li>			<li class="checkbox">				<label class="float" for="show_extended_on_rss"><%= _("Show full article on feed")%>:</label>			    <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%> />			    <input name="setting[show_extended_on_rss]" type="hidden" value="0" />			</li>		</ul>	  <p class="r"><%= save(_("Save Settings")) %></p>	</fieldset>	<fieldset id="write" class="set">		<legend><%= _("Write")%></legend>		<ul>			<li>				<label class="float"><%= _("Editor")%>:</label>				<input type="radio" name="setting[editor]" value="2" id="editor_2" <%= 'checked="checked"' if this_blog.editor == 2 %>/>				<label for="editor_2"><%= _("Use visual rich editor")%></label>				<span class="float">					<input type="radio" name="setting[editor]" value="1" id="editor_1" <%= 'checked="checked"' if this_blog.editor == 1 %>/>					<label for="editor_1"><%= _("Use simple editor with live preview (default)")%></label>				</span>				<span class="float">					<input type="radio" name="setting[editor]" value="0" id="editor_0" <%= 'checked="checked"' if this_blog.editor == 0 %>/>				    <label for="editor_0"><%= _("Use simple editor without live preview")%></label>				</span>		  	</li>			<li>		        <label class="float" for="text_filter"><%= _("Article filter")%>:</label>		        <select name="setting[text_filter]" id="text_filter">		          <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.text_filter) %>		        </select>			</li>			<li>				<label for="comment_text_filter" class="float"><%= _("Comments filter")%>:</label>		        <select name="setting[comment_text_filter]" id="comment_text_filter">		        <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.comment_text_filter) %>		        </select>			</li>			<li>				<%= _("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.")%>			</li>			<li class="checkbox">	          <label class="float" for="send_outbound_pings"><%= _("Send trackbacks")%>:</label>		      <input name="setting[send_outbound_pings]" id="send_outbound_pings" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.send_outbound_pings%> />	         <input name="setting[send_outbound_pings]" type="hidden" value="0" />			</li>			<li>				<label class="float" for="ping_urls"><%= _("URLs to ping automatically")%>:</label>		      	<textarea name="setting[ping_urls]" id="ping_urls" rows="5" cols="50"><%=h this_blog.ping_urls %></textarea>			</li>		</ul>		<p class="r"><%= save(_("Save Settings")) %></p>	</fieldset>	<fieldset id="discuss" class="set">		<legend><%= _("Discuss")%></legend>		<ul>			<li>				<%= _("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.")%>			</li>			<li class="checkbox">				<label class="float" for="global_pings_disable"><%= _("Disable trackbacks site-wide")%>:</label>				<input name="setting[global_pings_disable]" id="global_pings_disable" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.global_pings_disable%> />				<input name="setting[global_pings_disable]" type="hidden" value="0" />			</li>			<li class="checkbox">		        <label class="float" for="default_allow_pings"><%= _("Enable Trackbacks by default")%>:</label>		      	<input name="setting[default_allow_pings]" id="default_allow_pings" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.default_allow_pings%> />		      	<input name="setting[default_allow_pings]" type="hidden" value="0" />

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -