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