-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathabout.hbs
43 lines (41 loc) · 1.11 KB
/
about.hbs
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{#*inline "nm"}}xt{{/inline ~}}
<!DOCTYPE html>
<html>
<head>
<title>{{> nm}} Licenses</title>
</head>
<body>
<main>
<h1>Licenses</h1>
<p>
All of the source code for {{> nm}} is available under licenses which are both
<a href="https://www.gnu.org/philosophy/free-sw.html">free (libre)</a>
and
<a href="https://www.opensource.org/docs/definition.php">open source</a>.
</p>
<p>
The {{> nm}} binary in this release is made available under the same
MIT License that covers the source code.
</p>
{{#each licenses}}
{{#*inline "cratelink"}}<a href="{{#if crate.repository}}{{crate.repository}}{{else}}https://crates.io/crates/{{crate.name}}{{/if}}">{{crate.name}} {{crate.version}}</a>{{/inline}}
<section>
{{# if (eq (len used_by) 1)}}
{{#with (lookup used_by 0)}}
<h2>{{> cratelink}}</h2>
{{/with}}
<h4>{{name}}</h4>
{{else}}
<h2>{{name}} ({{len used_by}} crates)</h2>
<ul>
{{#each used_by}}
<li>{{> cratelink}}</li>
{{/each}}
</ul>
{{/if}}
<pre>{{text}}</pre>
</section>
{{/each}}
</main>
</body>
</html>