forked from OpenUserJS/OpenUserJS.org
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create critical notices conditionals
* Little less prominent for warnings vs. possible critical issue * More in line with the docs that mostly say "blue install button" * Add `updateURL` check for all modes and display if present * Reorder the UI notices a bit. * Some line length conformance Post OpenUserJS#1632 and applies to OpenUserJS#1548 OpenUserJS#432
- Loading branch information
Showing
4 changed files
with
83 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
<div class="alert alert-warning" role="alert"> | ||
{{#script.hasInvalidUpdateURL}} | ||
<p> | ||
<i class="fa fa-fw fa-exclamation-triangle"></i> Invalid update target | ||
<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-triangle"></i> Invalid download target | ||
<i class="fa fa-fw fa-exclamation-circle"></i> Invalid download target. | ||
</p> | ||
{{/script.hasInvalidDownloadURL}} | ||
{{#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}} | ||
{{#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> |