##// END OF EJS Templates
templates: Only display license as link when URL is set.
johbo -
r200:1971c6fe default
parent child Browse files
Show More
@@ -1,32 +1,33 b''
1 <div class="panel panel-default">
1 <div class="panel panel-default">
2 <div class="panel-heading">
2 <div class="panel-heading">
3 <h3 class="panel-title">${_('Licenses of Third Party Packages')}</h3>
3 <h3 class="panel-title">${_('Licenses of Third Party Packages')}</h3>
4 </div>
4 </div>
5 <div class="panel-body">
5 <div class="panel-body">
6 <p>
6 <p>
7 RhodeCode Enterprise uses various third party packages, many of them
7 RhodeCode Enterprise uses various third party packages, many of them
8 provided by the open source community.
8 provided by the open source community.
9 </p>
9 </p>
10
10
11 % if c.opensource_licenses:
11 % if c.opensource_licenses:
12 <table class="rctable dl-settings">
12 <table class="rctable dl-settings">
13 <thead>
13 <thead>
14 <th>Product</th>
14 <th>Product</th>
15 <th>License</th>
15 <th>License</th>
16 </thead>
16 </thead>
17 %for product, licenses in c.opensource_licenses.items():
17 %for product, licenses in c.opensource_licenses.items():
18 <tr>
18 <tr>
19 <td>${product}</td>
19 <td>${product}</td>
20 <td>
20 <td>
21 ${h.literal(', '.join([
21 ${h.literal(', '.join([
22 '<a href="%(link)s" title="%(name)s">%(name)s</a>' % {'link':link, 'name':name}
22 '<a href="%(link)s" title="%(name)s">%(name)s</a>' % {'link':link, 'name':name}
23 if link else name
23 for name,link in licenses.items()]))}
24 for name,link in licenses.items()]))}
24 </td>
25 </td>
25 </tr>
26 </tr>
26 %endfor
27 %endfor
27 </table>
28 </table>
28 % endif
29 % endif
29 </div>
30 </div>
30 </div>
31 </div>
31
32
32
33
General Comments 0
You need to be logged in to leave comments. Login now