show info page update time
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<h1 class="info-title"><%= title @info.title %></h1>
|
<h1 class="info-title"><%= title @info.title %></h1>
|
||||||
|
<small>Last edited <%= ago @info.updated_at %>.</small>
|
||||||
|
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<%= render_trusted_md(@info.content).html_safe %>
|
<%= render_trusted_md(@info.content).html_safe %>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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|
|
create_table "blogposts", force: true do |t|
|
||||||
t.string "title"
|
t.string "title"
|
||||||
@@ -65,8 +65,10 @@ ActiveRecord::Schema.define(version: 20150309221221) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
create_table "info", force: true do |t|
|
create_table "info", force: true do |t|
|
||||||
t.string "title"
|
t.string "title"
|
||||||
t.text "content"
|
t.text "content"
|
||||||
|
t.datetime "created_at"
|
||||||
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "labels", force: true do |t|
|
create_table "labels", force: true do |t|
|
||||||
|
|||||||
Reference in New Issue
Block a user