瀏覽代碼

Reorganize header links.

old-ruby
Ben Kurtovic 9 年之前
父節點
當前提交
1367698ba3
共有 3 個文件被更改,包括 13 次插入13 次删除
  1. +0
    -2
      app/views/admin/index.html.erb
  2. +13
    -1
      app/views/shared/_header.html.erb
  3. +0
    -10
      app/views/tools/index.html.erb

+ 0
- 2
app/views/admin/index.html.erb 查看文件

@@ -2,8 +2,6 @@

<h1>Admin#index</h1>

<p><%= link_to 'Home', controller: 'tools', action: 'index' %></p>

<%= form_tag do %>
<table>
<% AdminHelper::SETTINGS.each do |s| %>


+ 13
- 1
app/views/shared/_header.html.erb 查看文件

@@ -1,3 +1,15 @@
<div id="header">
<!-- -->
<p>
<%= link_to 'Home', controller: 'tools', action: 'index' %>
</p>
<p>
Users:
<%= link_to "Signup", controller: "users", action: "create" %>
&bull;
<%= link_to "Login", controller: "users", action: "login" %>
</p>
<p>
Admin:
<%= link_to "Admin", controller: "admin", action: "index" %>
</p>
</div>

+ 0
- 10
app/views/tools/index.html.erb 查看文件

@@ -1,15 +1,5 @@
<h1>Tools#index</h1>

<p>
Users:
<%= link_to "Signup", controller: "users", action: "create" %>
&bull;
<%= link_to "Login", controller: "users", action: "login" %>
</p>
<p>
Admin:
<%= link_to "Admin", controller: "admin", action: "index" %>
</p>
<p>Tools: ...</p>

<p><%= get_description %></p>

Loading…
取消
儲存