admin.rhtml

来自「ruby on rails web敏捷开发之路第二版 源代码」· RHTML 代码 · 共 41 行

RHTML
41
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- ! Excerpted from "Agile Web Development with Rails, 2nd Ed." ! We make no guarantees that this code is fit for any purpose.  ! Visit http://www.pragmaticprogrammer.com/titles/rails2 for more book information.--><html><head>  <title>Administer the Bookstore</title>  <%= stylesheet_link_tag "scaffold", "depot", :media => "all" %></head><body id="admin">  <div id="banner">    <img src="/images/logo.png"/>    <%= @page_title || "Pragmatic Bookshelf" %>  </div>  <div id="columns">    <div id="side">      <p>        <%= link_to "Products",   :controller => 'admin', :action => 'list' %>      </p>      <p>        <%= link_to "List users", :controller => 'login', :action => 'list_users' %>        <br/>        <%= link_to "Add user",   :controller => 'login', :action => 'add_user' %>      </p>      <p>        <%= link_to "Logout",     :controller => 'login', :action => 'logout' %>      </p>    </div>    <div id="main">    <% if flash[:notice] -%>      <div id="notice"><%= flash[:notice] %></div>    <% end -%>      <%= yield :layout %>    </div>  </div></body></html>

⌨️ 快捷键说明

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