parent
9900e1ec97
commit
02995c8b3d
@ -0,0 +1,109 @@
|
||||
export const mockPoll1 = {
|
||||
"message": "your poll config",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"title": "citron ou orange",
|
||||
"customUrl": null,
|
||||
"description": "votre sorbert préféré",
|
||||
"creationDate": {
|
||||
"date": "2020-01-22 14:28:19.000000",
|
||||
"timezone_type": 3,
|
||||
"timezone": "Europe/Paris"
|
||||
},
|
||||
"expiracyDate": {
|
||||
"date": "2020-01-22 14:28:19.000000",
|
||||
"timezone_type": 3,
|
||||
"timezone": "Europe/Paris"
|
||||
},
|
||||
"owner": {
|
||||
"__initializer__": {},
|
||||
"__cloner__": {},
|
||||
"__isInitialized__": false
|
||||
},
|
||||
"kind": "text",
|
||||
"allowedAnswers": [
|
||||
"yes"
|
||||
],
|
||||
"modificationPolicy": "nobody",
|
||||
"mailOnComment": null,
|
||||
"mailOnVote": true,
|
||||
"hideResults": null,
|
||||
"showResultEvenIfPasswords": null,
|
||||
"votes": {},
|
||||
"stacksOfVotes": {},
|
||||
"choices": {},
|
||||
"comments": {},
|
||||
"defaultExpiracyDaysFromNow": 60
|
||||
},
|
||||
"stacks_count": 2,
|
||||
"stacks": [
|
||||
{
|
||||
"id": 1,
|
||||
"pseudo": "voting_people_TEST",
|
||||
"creation_date": {
|
||||
"date": "2020-01-22 14:28:19.000000",
|
||||
"timezone_type": 3,
|
||||
"timezone": "Europe/Paris"
|
||||
},
|
||||
"votes": [
|
||||
{
|
||||
"id": 1,
|
||||
"vote_id": 1,
|
||||
"value": "yes",
|
||||
"choice_id": 1,
|
||||
"text": "orange"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"vote_id": 2,
|
||||
"value": "yes",
|
||||
"choice_id": 2,
|
||||
"text": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"pseudo": "voting_people_TEST",
|
||||
"creation_date": {
|
||||
"date": "2020-01-22 14:28:19.000000",
|
||||
"timezone_type": 3,
|
||||
"timezone": "Europe/Paris"
|
||||
},
|
||||
"votes": [
|
||||
{
|
||||
"id": 2,
|
||||
"vote_id": 3,
|
||||
"value": "maybe",
|
||||
"choice_id": 1,
|
||||
"text": "orange"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"choices_count": 2,
|
||||
"choices": [
|
||||
{
|
||||
"id": 1,
|
||||
"date": {
|
||||
"date": "2020-01-22 14:28:19.000000",
|
||||
"timezone_type": 3,
|
||||
"timezone": "Europe/Paris"
|
||||
},
|
||||
"text": "orange",
|
||||
"url": null
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"date": {
|
||||
"date": "2020-01-22 14:28:19.000000",
|
||||
"timezone_type": 3,
|
||||
"timezone": "Europe/Paris"
|
||||
},
|
||||
"text": "citron",
|
||||
"url": null
|
||||
}
|
||||
],
|
||||
"comments": [],
|
||||
"comments_count": 0
|
||||
};
|
@ -1,7 +1,9 @@
|
||||
<div class="comment" >
|
||||
<span class="cname" >{{comment.pseudo}} </span >, le
|
||||
<span class="date padding-btm-x1" >{{comment.date}}</span >
|
||||
<p class="text" >
|
||||
{{comment.text}}
|
||||
</p >
|
||||
<span class="date padding-btm-x1" >{{comment.date.date | date:'medium'}}</span >
|
||||
<blockquote >
|
||||
<p class="text" >
|
||||
{{comment.text}}
|
||||
</p >
|
||||
</blockquote >
|
||||
</div >
|
||||
|
Loading…
Reference in new issue