diff options
author | jomo <github@jomo.tv> | 2015-04-24 00:28:01 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2015-04-24 00:28:01 +0200 |
commit | 542b235f238d5f1837b65b529cf53e31efbc228d (patch) | |
tree | 6b5afd406f9e6b8bb5db295bedf14e424c57077e | |
parent | eb00bc2f956251c5189ccf4b2e7b809526d7461f (diff) |
show info page update time
-rw-r--r-- | app/views/info/show.html.erb | 1 | ||||
-rw-r--r-- | db/schema.rb | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app/views/info/show.html.erb b/app/views/info/show.html.erb index 3614d93..60258f9 100644 --- a/app/views/info/show.html.erb +++ b/app/views/info/show.html.erb @@ -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 %> diff --git a/db/schema.rb b/db/schema.rb index 6cf8ed5..cb4291e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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| |