1
0
Fork 0
mirror of https://gitlab.com/hagrid-keyserver/hagrid.git synced 2023-02-13 20:55:02 -05:00
hagrid-keyserver--hagrid/dist/templates/upload/upload-ok.html.hbs

83 lines
3.3 KiB
Handlebars
Raw Normal View History

2019-02-22 08:14:29 -05:00
{{#> layout }}
2019-09-27 10:21:10 -04:00
{{#with page}}
2019-05-03 09:34:34 -04:00
<p>
2019-09-27 10:21:10 -04:00
{{ text "You uploaded the key <span class=\"fingerprint\"><a href=\"{{ key_link }}\" target=\"_blank\">{{ key_fpr }}</a></span>." rerender }}
2019-04-26 17:13:56 -04:00
</p>
2019-05-03 09:34:34 -04:00
{{#if is_revoked}}
<p>
2019-09-27 10:21:10 -04:00
<strong>{{ text "This key is revoked." }}</strong>
2019-10-31 09:02:41 -04:00
{{ text "It is published without identity information and can't be made available for search by email address. (<a href=\"/about\" target=\"_blank\">What does this mean?</a>)" }}
2019-05-03 09:34:34 -04:00
</p>
{{else}}
2019-06-05 07:21:37 -04:00
{{#if email_published}}
<p style="padding-top: 1em;">
2019-09-27 10:21:10 -04:00
{{ text "This key is now published with the following identity information (<a href=\"/about\" target=\"_blank\">what does this mean?</a>):" }}
2019-06-05 07:21:37 -04:00
</p>
{{#each email_published}}
<div class="publishedUid">
2019-09-27 10:21:10 -04:00
<div>{{ text "Published" }}</div>
2019-06-05 07:21:37 -04:00
<p><span class="email">{{this}}</span></p>
</div>
{{/each}}
{{else}}
<p style="padding-top: 1em;">
2019-10-31 09:02:41 -04:00
{{ text "This key is now published with only non-identity information. (<a href=\"/about\" target=\"_blank\">What does this mean?</a>)" }}
2019-05-03 09:34:34 -04:00
</p>
2019-06-05 07:21:37 -04:00
{{/if}}
2019-05-03 09:34:34 -04:00
2019-06-05 07:21:37 -04:00
{{#if email_unpublished}}
<p style="padding-top: 1em;">
2019-10-31 09:02:41 -04:00
{{ text "To make the key available for search by email address, you can verify it belongs to you:" }}
2019-06-05 07:21:37 -04:00
</p>
{{#each email_unpublished}}
2019-05-03 09:34:34 -04:00
<div class="publishedUid">
<div>
2019-06-05 07:21:37 -04:00
{{#if requested}}
2019-09-27 10:21:10 -04:00
{{ text "Verification Pending" }}
2019-05-03 09:34:34 -04:00
{{else}}
2019-06-05 07:21:37 -04:00
<form action="/upload/request-verify" method="post">
<input type="hidden" name="token" value="{{../token}}" />
<input type="hidden" name="address" value="{{address}}" />
2019-10-31 09:02:41 -04:00
<input type="submit" class="link" value="{{ text "Send Verification Email" }}">
2019-06-05 07:21:37 -04:00
</form>
2019-05-03 09:34:34 -04:00
{{/if}}
</div>
2019-09-27 10:21:10 -04:00
<p><span class="email">{{ address }}</span></p>
2019-05-03 09:34:34 -04:00
</div>
2019-04-26 17:13:56 -04:00
{{/each}}
<p>
2019-10-31 09:02:41 -04:00
{{ text "<strong>Note:</strong> Some providers delay emails for up to 15 minutes to prevent spam. Please be patient." }}
</p>
2019-05-03 09:34:34 -04:00
{{/if}}
2019-06-05 07:21:37 -04:00
{{#if count_unparsed}}
{{#if count_unparsed_one}}
<p style="padding-top: 1em;">
2019-10-31 09:02:41 -04:00
{{ text "This key contains one identity that could not be parsed as an email address.<br /> This identity can't be published on <span class=\"brand\">keys.openpgp.org</span>. (<a href=\"/about/faq#non-email-uids\" target=\"_blank\">Why?</a>)" }}
</p>
{{else}}
<p style="padding-top: 1em;">
2019-10-31 09:02:41 -04:00
{{ text "This key contains {{ count_unparsed }} identities that could not be parsed as an email address.<br /> These identities can't be published on <span class=\"brand\">keys.openpgp.org</span>. (<a href=\"/about/faq#non-email-uids\" target=\"_blank\">Why?</a>)" rerender }}
</p>
{{/if}}
{{/if}}
2019-06-05 07:21:37 -04:00
{{#if count_revoked}}
{{#if count_revoked_one}}
<p style="padding-top: 1em;">
{{ text "This key contains one revoked identity, which is not published. (<a href=\"/about/faq#revoked-uids\" target=\"_blank\">Why?</a>)" rerender }}
2019-06-05 07:21:37 -04:00
</p>
{{else}}
<p style="padding-top: 1em;">
{{ text "This key contains {{ count_revoked }} revoked identities, which are not published. (<a href=\"/about/faq#revoked-uids\" target=\"_blank\">Why?</a>)" rerender }}
2019-06-05 07:21:37 -04:00
</p>
{{/if}}
{{/if}}
2019-05-03 09:34:34 -04:00
{{/if}}
2019-09-27 10:21:10 -04:00
{{/with}}
2019-02-22 08:14:29 -05:00
{{/layout}}