Skip to content

Commit 775428a

Browse files
author
Marti Martz
committed
Merge pull request #207 from Martii/fixMissingDefLic
Fix missing default script `@license` **NOTE** Need this merged now since working on one of these files for a pr. Auto-merging
2 parents 6a5e41e + 2450ff5 commit 775428a

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

controllers/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var getScriptPageTasks = function (options) {
8989
});
9090
}
9191
} else if (!script.isLib) {
92-
options.script.meta.licenses = [{ name: 'MIT License (Expat)' }];
92+
options.script.licenses = [{ name: 'MIT License (Expat)' }];
9393
}
9494

9595
// Show homepages of the script

views/pages/newScriptPage.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,36 @@ <h3>OpenUserJS.org Specific</h3>
2626
<div class="list-group script-metadata-definitions">
2727
<div class="list-group-item active">
2828
<h4 class="list-group-item-heading"><code>@author {{#authedUser}}{{authedUser.name}}{{/authedUser}}{{^authedUser}}username{{/authedUser}}</code></h4>
29-
<p class="list-group-item-text">The author of the script. Required for <a href="#collaboration">Collaboration</a>. Only the author may edit.</p>
29+
<p class="list-group-item-text">The author of the script. Required for <a href="#collaboration">Collaboration</a>. Only the author may edit. Last value shown.</p>
3030
</div>
3131
<div class="list-group-item active">
3232
<h4 class="list-group-item-heading"><code>@collaborator username</code></h4>
33-
<p class="list-group-item-text">Can be defined multiple times. Required for <a href="#collaboration">Collaboration</a>.</p>
33+
<p class="list-group-item-text">Can be defined multiple times. Required for <a href="#collaboration">Collaboration</a>. All values shown</p>
3434
</div>
3535
<div class="list-group-item active">
3636
<h4 class="list-group-item-heading"><code>@description This script even does the laundry!</code></h4>
37-
<p class="list-group-item-text">Specially formatted on the script page.</p>
37+
<p class="list-group-item-text">Specially formatted on the script page. Last value shown.</p>
3838
</div>
3939

4040
<div class="list-group-item active">
41-
<h4 class="list-group-item-heading"><code>@copyright Year, Author (Author Homepage)</code></h4>
42-
<p class="list-group-item-text">[<a href="https://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40copyright">Wiki Link</a>] Specially formatted on the script page.</p>
41+
<h4 class="list-group-item-heading"><code>@copyright Year, Author (Author Website)</code></h4>
42+
<p class="list-group-item-text">[<a href="https://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40copyright">Wiki Link</a>] Specially formatted on the script page. All values shown.</p>
4343
</div>
4444
<div class="list-group-item active">
4545
<h4 class="list-group-item-heading"><code>@icon url</code></h4>
46-
<p class="list-group-item-text">A url or data url. Used in the script list page at 16px and on the script page at ~45px.</p>
46+
<p class="list-group-item-text">A url or data url. Resolution should be near 48px by 48px, Used in the script list page at 16px and on the script page at ~45px. Last value is shown.</p>
4747
</div>
4848
<div class="list-group-item active">
4949
<h4 class="list-group-item-heading"><code>@license License Type; License Homepage</code></h4>
50-
<p class="list-group-item-text">[<a href="https://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40license">Wiki Link</a>] Specially formatted on the script page.</p>
50+
<p class="list-group-item-text">[<a href="https://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40license">Wiki Link</a>] Specially formatted on the script page. All values shown. If absent MIT License (Expat) is implied.</p>
51+
</div>
52+
<div class="list-group-item active">
53+
<h4 class="list-group-item-heading"><code>@homepageURL url</code></h4>
54+
<p class="list-group-item-text">A url of http, https or mailto protocol. Specially formatted on the script page. All values shown.</p>
55+
</div>
56+
<div class="list-group-item active">
57+
<h4 class="list-group-item-heading"><code>@supportURL url</code></h4>
58+
<p class="list-group-item-text">A url of http, https or mailto protocol. Specially formatted on the script page. Last value shown.</p>
5159
</div>
5260
</div>
5361

0 commit comments

Comments
 (0)