Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rendezvous
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
rendezvous
Commits
71fbb91a
Commit
71fbb91a
authored
Nov 09, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set paper_trail on Post
parent
dcd1f56a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
app/models/post.rb
+3
-0
app/views/posts/show.html.slim
+5
-2
No files found.
app/models/post.rb
View file @
71fbb91a
...
...
@@ -18,6 +18,9 @@ require 'date'
class
Post
<
ActiveRecord
::
Base
include
HipchatIntegration
if
Settings
.
respond_to?
(
:hipchat
)
# for versioning
has_paper_trail
######################################################################
# Associations
######################################################################
...
...
app/views/posts/show.html.slim
View file @
71fbb91a
...
...
@@ -38,10 +38,13 @@
.well.detail-wrapper
style
=
"margin-top:20px"
dl
dt
作成
者
dt
最終編集
者
dd
a
href
=
(
search_path
(
q:
"@
#{
@post
.
author
.
nickname
}
"
)
)
|
@
#{
@post
.
author
.
name
}
=
@post
.
author
.
name
dt
最終編集者
dd
調整中
dt
タグ
dd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment