_user.rhtml

来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· RHTML 代码 · 共 10 行

RHTML
10
字号
<div class="user">  <h4><%= link_to h(user.login), {:action => "show", :id => user.id} %></h4>        <p><%= _("Number of Articles")%>: <%= Article.count :conditions => "user_id = #{user.id}"  %></p>        <p><%= _("Number of Comments")%>: <%= Comment.count :conditions => "user_id = #{user.id}"  %></p>        <p><%= _("Notified") %> <% if user.notify_via_email? %> <%= _("via email") %> <% end %>:          <%= "new articles" if user.notify_on_new_articles? %>          <%= "comments" if user.notify_on_comments? %></p>  <p><%= link_to _('Edit'), :action => 'edit', :id => user  %><strong> |</strong> <%= link_to _('Delete'), :action => 'destroy', :id => user %></p></div>

⌨️ 快捷键说明

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