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 News: #{@post.title}" %>
<h1>Edit post</h1>
<%= form_for @post do |f|%>
<%= f.text_field :title %>
+2
View File
@@ -1,3 +1,5 @@
<% title "News" %>
<h1>News</h1>
<%= link_to 'Make new Post', new_blogpost_path, class: "btn blue" if mod? %>
<div id="posts">
+2
View File
@@ -1,3 +1,5 @@
<% title "New Blog Post" %>
<h1>New Post</h1>
<%= form_for @post do |f|%>
<%= f.text_field :title, placeholder: "Title" %>
+2
View File
@@ -1,3 +1,5 @@
<% title "#{@post.title}" %>
<%= link_to "News", blogposts_path %><%= link_to @post.title %>
<div class="item-group post with-avatar" id="post-<%= @post.id %>">
<div class="header">