page titles

This commit is contained in:
jomo
2014-06-16 00:05:09 +02:00
parent 19eb868a50
commit 03efb744d1
29 changed files with 60 additions and 19 deletions
+2
View File
@@ -1,3 +1,5 @@
<% title "Edit Info: #{@info.title}" %>
<h1>Edit Info</h1>
<%= form_for @info do |f|%>
<%= f.text_field :title%>
+2
View File
@@ -1,3 +1,5 @@
<% title "Info" %>
<h1>Info</h1>
<% if mod? %>
<%= link_to "New Info", new_info_path, class: "btn blue" %>
+2
View File
@@ -1,3 +1,5 @@
<% title "New Info" %>
<h1>New Info</h1>
<%= form_for @info, url: info_index_path do |f|%>
<%= f.text_field :title, placeholder: "Title" %>
+2
View File
@@ -1,3 +1,5 @@
<% title @info.title %>
<%= link_to "Info", info_index_path %><%= @info.title %>
<%= link_to "Edit Info", edit_info_path(@info), class: "btn blue right" %>
<div class="clear"></div>