3
4
5
6
7
8
9
10
11
12
13
14
|
# File 'app/helpers/crm/post_comments_helper.rb', line 3
def post_comment_commands()
cmds = []
unless .
cmds << link_to('Respond', (.post_id, parent_id: .id))
end
cmds << link_to('Edit', (.id))
cmds += available_events_links(, return_path: (.post_id))
cmds << link_to('View on www', post_url(.post_id, host: WEB_HOSTNAME))
cmds << link_to('Delete', (.id), data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to destroy the post comment: #{.body}" })
cmds
end
|