##// END OF EJS Templates
admin: fixed problems with generating last change in admin panels....
admin: fixed problems with generating last change in admin panels. - from now on also updated_on will refer as last commit change instead of last update of DB. Reason for that is since we have audit logs the last db update should be taken from there along the change info. Storing last commit date in the dedicated field makes it searchable, sortable and faster to read.

File last commit:

r3073:73a2f607 default
r4000:52837660 default
Show More
settings_open_source.mako
46 lines | 1.6 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / settings / settings_open_source.mako
license: update license metadata and generation code
r3073 <%def name="show_license(license_data)">
% if isinstance(license_data, dict):
<a href="${license_data.get('url', "#noUrl")}">${license_data.get('spdxId') or license_data.get('fullName')}</a>
% else:
${license_data}
% endif
</%def>
templating: use .mako as extensions for template files.
r1282 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Licenses of Third Party Packages')}</h3>
</div>
<div class="panel-body">
<p>
RhodeCode Enterprise uses various third party packages, many of them
provided by the open source community.
</p>
% if c.opensource_licenses:
<table class="rctable dl-settings">
<thead>
<th>Product</th>
<th>License</th>
</thead>
license: update license metadata and generation code
r3073 % for lib in c.opensource_licenses:
<tr>
<td>${lib["name"]}</td>
<td>
<ol>
% if isinstance(lib["license"], list):
% for license_data in lib["license"]:
<li>${show_license(license_data)}</li>
% endfor
% else:
<% license_data = lib["license"] %>
<li>${show_license(license_data)}</li>
% endif
</ol>
</td>
</tr>
% endfor
templating: use .mako as extensions for template files.
r1282 </table>
% endif
</div>
</div>