Pārlūkot izejas kodu

Reorganize header links.

old-ruby
Ben Kurtovic pirms 9 gadiem
vecāks
revīzija
1367698ba3
3 mainītis faili ar 13 papildinājumiem un 13 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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>

Notiek ielāde…
Atcelt
Saglabāt