Add some tests to catalogs

This commit is contained in:
redref
2017-02-03 22:29:16 +01:00
parent b947bf05c2
commit 4190e36278
3 changed files with 48 additions and 8 deletions

View File

@@ -853,7 +853,6 @@ def catalogs(env, compare):
if not app.config['ENABLE_CATALOG']:
log.warn('Access to catalog interface disabled by administrator')
abort(403)
return
return render_template(
'catalogs.html',

View File

@@ -4,12 +4,10 @@
"recordsFiltered": {{total_filtered}},
"data": [
{% for catalog in catalogs -%}
{%- if catalog_flag %},{%- endif %}
{%- set catalog_flag = True -%}
{%- if not loop.first %},{%- endif -%}
[
{%- for column in columns -%}
{%- if column_flag %},{%- endif -%}
{%- set column_flag = True -%}
{%- if not loop.first %},{%- endif -%}
{%- if column.attr == 'catalog_timestamp' -%}
"<a rel=\"utctimestamp\" href=\"{{url_for('catalog_node', env=current_env, node_name=catalog.certname)}}\">{{ catalog.catalog_timestamp }}</a>"
{%- elif column.type == 'node' -%}