show.rhtml
来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· RHTML 代码 · 共 27 行
RHTML
27 行
<% @page_heading = _('Preview Article') %> <% content_for('tasks') do %> <%= task_edit _('Edit this article'), @article.id %> <li><%= link_to _('View article on your blog'), @article.permalink_url %></li> <%= task_overview %> <% end %> <h3><%=h @article.title %></h3> <div class="form"> <div><%= @article.html %></div> <p class="meta"><label><%= _("Posted date")%>:</label> <%=h @article.published_at.to_formatted_s(:long_weekday) %> by <%=h @article.author %></p> <p class="meta"><label><%= _("Last updated")%>:</label> <%=h @article.updated_at.to_formatted_s(:long_weekday) %></p> <p class="meta"><label><%= _("Online")%>:</label> <%=h (@article.published? ? "Yes" : "No") %></p> </div> <h3><%= _("Categories")%></h3> <div id="categories" class="form"> <%= render :partial => 'show_categories' -%> </div> <h3><%= _("Attachments")%></h3> <div id="resources" class="form"> <%= render :partial => 'show_resources' -%> </div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?