Add some tests to catalogs
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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' -%}
|
||||
|
||||
Reference in New Issue
Block a user