forked from OpenUserJS/OpenUserJS.org
/
scriptPageHeaderSourceNotices.html
27 lines (27 loc) · 1.24 KB
/
scriptPageHeaderSourceNotices.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<div class="alert alert-warning" role="alert">
{{#script.hasInvalidUpdateURL}}
<p>
<i class="fa fa-fw fa-exclamation-circle"></i> Invalid update target.
</p>
{{/script.hasInvalidUpdateURL}}
{{#script.hasAlternateUpdateURL}}
<p{{^isScriptViewSourcePage}} title="{{script.meta.UserScript.updateURL.0.value}}"{{/isScriptViewSourcePage}}>
<i class="fa fa-fw fa-exclamation-triangle"></i> Alternate update target.
</p>
{{/script.hasAlternateUpdateURL}}
{{#script.hasInvalidDownloadURL}}
<p>
<i class="fa fa-fw fa-exclamation-circle"></i> Invalid download target.
</p>
{{/script.hasInvalidDownloadURL}}
{{#script.hasAlternateDownloadURL}}
<p{{^isScriptViewSourcePage}} title="{{script.meta.UserScript.downloadURL.0.value}}"{{/isScriptViewSourcePage}}>
<i class="fa fa-fw fa-exclamation-triangle"></i> Alternate download target.
</p>
{{/script.hasAlternateDownloadURL}}
{{#script.hasUnstableMinify}}
<p{{^isScriptViewSourcePage}} title="{{script.meta.OpenUserJS.unstableMinify.0.value}}"{{/isScriptViewSourcePage}}>
<i class="fa fa-fw fa-exclamation-triangle"></i> The script author suggests that minification of this script may be unstable.
<p>
{{/script.hasUnstableMinify}}
</div>