UNPKG

lx-scan

Version:

License eXtension to find 5-tuples of all installed packages: name, version, project home page, license (e. g. Apache v2, BSD) and required notice. It includes a GUI to edit information for each package and to enter information if necessary.

124 lines (112 loc) 3.46 kB
<html> <head> <title>{{title}}</title> <script> {{#unless verbose}} window.onload = function() { var elements = document.getElementsByClassName("noverbdiv"); for(var i=0;i<elements.length;i++) { elements[i].style.background = (i%2===0) ? "#FFFFFF" : "#00B8DD"; } }; {{/unless}} </script> <style> div.true0 { background: #FFFFFF; } div.true1 { background: #00B8DD; } </style> </head> <body> {{#if verbose}} {{#each packages}} <div {{#unless licensefile}}style="background: rgba(255,0,0,0.75)"{{/unless}}{{#licensefile}}{{#unless licensepath}}style="background: rgba(255,0,0,0.75)"{{/unless}}{{/licensefile}} id="{{label}}" class="{{#if licensefile}}{{#if licensefile.0.licensepath}}true{{/if}}{{#unless licensefile.0.licensepath}}false{{/unless}}{{/if}}{{#unless licensefile}}false{{/unless}}{{math @index "%" 2}}"> <p style="opacity:1"> <b> Name:</b> {{name}} <br /> <b> Label:</b> {{label}} <br /><br /> <div style="padding-left:2em"> {{#each licensefile}} <b><u>License {{math @index "+" 1}}</u></b><br /> <div><b> License link:</b> <a href="{{licensepath}}" id="{{name}}/link">{{licensepath}}</a></div> <br /> <div><b> Notice:</b> {{notice}}</div><br /> {{#license}} {{#if type}} <b> License type:</b> {{type}} <br /> {{/if}} {{#unless type}} <b> License type:</b> {{this}} <br /> {{/unless}} {{/license}} {{/each}} </div> {{#license}} {{#if type}} <b> License type:</b> {{type}} <br /> {{/if}} {{#unless type}} <b> License type:</b> {{this}} <br /> {{/unless}} {{/license}} </p> </div><br /> {{/each}} {{/if}} {{#unless verbose}} {{#each packages}} {{#unless licensefile}} <div class="noverbdiv"> <p style="opacity:1"> <b> Name:</b> {{name}} <br /> <b> Label:</b> {{label}} <br /><br /> {{#license}} {{#if type}} <b> License type:</b> {{type}} <br /> {{/if}} {{#unless type}} <b> License type:</b> {{this}} <br /> {{/unless}} {{/license}} </p> </div><br /> {{/unless}} {{#licensefile}} {{#unless licensepath}} <div class="noverbdiv"> <p style="opacity:1"> <b> Name:</b> {{../../name}} <br /> <b> Label:</b> {{../../label}} <br /><br /> <div style="padding-left:2em"> {{#each licensefile}} <b><u>License {{math @index "+" 1}}</u></b><br /> <div><b> License link:</b> <a href="{{licensepath}}" id="{{../../name}}/link">{{licensepath}}</a></div> <br /> <div><b> Notice:</b> {{notice}}</div><br /> {{#license}} {{#if type}} <b> License type:</b> {{type}} <br /> {{/if}} {{#unless type}} <b> License type:</b> {{this}} <br /> {{/unless}} {{/license}} {{/each}} </div> {{#license}} {{#if type}} <b> License type:</b> {{type}} <br /> {{/if}} {{#unless type}} <b> License type:</b> {{this}} <br /> {{/unless}} {{/license}} </p> <br /> </div> {{/unless}} {{/licensefile}} {{/each}} {{/unless}} </body> </html>