Skip to content
Snippets Groups Projects
Commit 431d2253 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Add a example of message in integration page

parent 14c1a5e5
No related branches found
No related tags found
No related merge requests found
...@@ -40,3 +40,9 @@ ...@@ -40,3 +40,9 @@
border-bottom: none; border-bottom: none;
} }
} }
.message-example {
li {
list-style: none;
}
}
...@@ -15,6 +15,24 @@ Template.integrationsIncoming.helpers ...@@ -15,6 +15,24 @@ Template.integrationsIncoming.helpers
return {} = return {} =
username: 'rocket.cat' username: 'rocket.cat'
example: ->
return {} =
_id: Random.id()
msg: 'Example message'
bot:
i: Random.id()
attachments: [{
title: "Rocket.Chat"
title_link: "https://rocket.chat"
text: "Rocket.Chat, the best open source chat"
image_url: "https://rocket.chat/images/mockup.png"
color: "#764FA5"
}]
ts: new Date
u:
_id: Random.id()
username: "rocket.cat"
Template.integrationsIncoming.events Template.integrationsIncoming.events
"click .submit > .delete": -> "click .submit > .delete": ->
......
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
</div> </div>
</div> </div>
{{/if}} {{/if}}
<div class="input-line double-col message-example">
{{#nrr nrrargs 'message' example}}{{/nrr}}
</div>
</div> </div>
</div> </div>
<div class="submit"> <div class="submit">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment