Browse Source

Reorganize header links.

old-ruby
Ben Kurtovic 9 years ago
parent
commit
1367698ba3
3 changed files with 13 additions and 13 deletions
  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 View File

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


<h1>Admin#index</h1> <h1>Admin#index</h1>


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

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


+ 13
- 1
app/views/shared/_header.html.erb View File

@@ -1,3 +1,15 @@
<div id="header"> <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> </div>

+ 0
- 10
app/views/tools/index.html.erb View File

@@ -1,15 +1,5 @@
<h1>Tools#index</h1> <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>Tools: ...</p>


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

Loading…
Cancel
Save