show info page update time

This commit is contained in:
jomo
2015-04-24 00:28:01 +02:00
parent eb00bc2f95
commit 542b235f23
2 changed files with 6 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
<% end %>
<div class="clear"></div>
<h1 class="info-title"><%= title @info.title %></h1>
<small>Last edited <%= ago @info.updated_at %>.</small>
<div class="post">
<%= render_trusted_md(@info.content).html_safe %>

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150309221221) do
ActiveRecord::Schema.define(version: 20150423221613) do
create_table "blogposts", force: true do |t|
t.string "title"
@@ -65,8 +65,10 @@ ActiveRecord::Schema.define(version: 20150309221221) do
end
create_table "info", force: true do |t|
t.string "title"
t.text "content"
t.string "title"
t.text "content"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "labels", force: true do |t|