-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #470 from DemocracyEarth/async-polls
Async polls
- Loading branch information
Showing
18 changed files
with
220 additions
and
61 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
@@ -1,11 +1,35 @@ | ||
<template name="poll"> | ||
{{#if ready}} | ||
{{#if placeholder}} | ||
<div class="section section-poll w-clearfix"> | ||
<div class="poll"> | ||
{{#each item}} | ||
{{> ballot poll=true contract=this.contract pollTotals=this.totals editorMode=this.editor}} | ||
{{#each listItem}} | ||
<div id="single-vote" class="poll-choice"> | ||
<div id="pollPlaceholder" class="button half choice"> | ||
<div class="checkbox-mini"> | ||
</div> | ||
<div class="poll-score poll-score-button"> | ||
<div class="poll-score-bar"> | ||
<div class="poll-score-bar-fill" style="width: {{pollScore}}"> | ||
</div> | ||
</div> | ||
<div class="poll-score-percentage {{smallPercentageStyle}}"> | ||
{{pollScore}} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{/each}} | ||
</div> | ||
</div> | ||
{{else}} | ||
{{#if ready}} | ||
<div class="section section-poll w-clearfix"> | ||
<div class="poll"> | ||
{{#each item}} | ||
{{> ballot poll=true contract=this.contract pollTotals=this.totals editorMode=this.editor}} | ||
{{/each}} | ||
</div> | ||
</div> | ||
{{/if}} | ||
{{/if}} | ||
</template> |
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
Oops, something went wrong.