decide.nolog.cz/app/templates/poll-error.hbs
sappor0 c23ba1f6fb Using bootstrap 4 and related UI refresh (#205)
Changes at a glance:

- Switch from BS3 to BS4
- Polishing of some UI elements (low-hanging fruit for UX)
- Mobile-friendly layout.
2019-06-07 11:22:13 +02:00

32 lines
756 B
Handlebars

<div class="box">
{{#if decryptionFailed}}
<h2 data-test-error-type="decryption-failed">
{{t "error.poll.decryptionFailed.title"}}
</h2>
<p>
{{t "error.poll.decryptionFailed.description"}}
</p>
{{else if notFound}}
<h2 data-test-error-type="not-found">
{{t "error.poll.notFound.title"}}
</h2>
<p>
{{t "error.poll.notFound.description"}}
</p>
<ul>
<li>
{{t "error.poll.notFound.reasons.expired"}}
</li>
<li>
{{t "error.poll.notFound.reasons.typo"}}
</li>
</ul>
{{else}}
<h2 data-test-error-type="unexpected">
{{t "error.poll.unexpected.title"}}
</h2>
<p>
{{t "error.poll.unexpected.description"}}
</p>
{{/if}}
</div>