-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add changeset comment search api json format
- Loading branch information
1 parent
a77a93d
commit 04b5213
Showing
4 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
app/views/api/changeset_comments/_changeset_comment.json.jbuilder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
json.id changeset_comment.id | ||
json.visible changeset_comment.visible | ||
json.date changeset_comment.created_at.xmlschema | ||
if changeset_comment.author.data_public? | ||
json.uid changeset_comment.author.id | ||
json.user changeset_comment.author.display_name | ||
end | ||
json.text changeset_comment.body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
json.partial! "api/root_attributes" | ||
|
||
json.comments(@comments) do |comment| | ||
json.partial! comment | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters