{{ event.time_str }} {% if current_user.is_authenticated and event.packages|count() > 0 %} {% endif %}
{#
# _macros.html
#
# Copyright © 2013-2017 Antergos
#
# This file is part of The Antergos Build Server, (AntBS).
#
# AntBS is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# AntBS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# The following additional terms are in effect as per Section 7 of the license:
#
# The preservation of all legal notices and author attributions in
# the material or in the Appropriate Legal Notices displayed
# by works containing it is required.
#
# You should have received a copy of the GNU General Public License
# along with AntBS; If not, see
| {{ column.heading_text }} | {% endfor %}
| {% if column.obj_attr and '.' in column.obj_attr %} {% set obj_attr, nested_obj_attr = column.obj_attr.split('.') %} {% set value = obj|attr(obj_attr) %} {% set value = value|attr(nested_obj_attr) %} {% elif column.obj_attr is sequence and column.obj_attr is not string %} {% set value = [] %} {% for val in column.obj_attr %} {% do value.append(obj|attr(val)) %} {% endfor %} {% elif column.obj_attr %} {% set value = obj|attr(column.obj_attr) %} {% elif 'Group' == column.heading_text %} {% set value = column.group %} {% endif %} {%- if not value and 'dropdown' != column.content_type -%} - {%- elif 'link' == column.content_type %} {% if value is not string and value is sequence %} {{ value[1] }} {% else %} {{ value }} {% endif %} {% elif 'link_with_icon' == column.content_type %} {% if 'Last Build' == column.heading_text and True == value|int()|build_failed() %} {% set class_name_key = 'failed' %} {% elif 'Last Build' == column.heading_text %} {% set class_name_key = 'completed' %} {% else %} {% set class_name_key = None %} {% endif %} {{ text_with_icon(column.icon_info, value, class_name_key) }} {% elif 'text_with_icon' == column.content_type %} {{ text_with_icon(column.icon_info, value) }} {% elif 'text' == column.content_type %} {{ value }} {% elif 'dropdown' == column.content_type and 'dd_info' in column %} {{ table_dropdown(obj, column.dd_info) }} {% elif 'label_tag_link' == column.content_type %} {% if value is not string and value is sequence %} {% set url_end = '%s/%s'|format(value[0], value[1]) %} {{ label_tag_link(column.base_url, url_end, value, column.color_class) }} {% else %} {{ label_tag_link(column.base_url, value, value, column.color_class) }} {% endif %} {% endif %} | {% endfor %}
{{ item[0] }}:
{{ item[1] }}
{% else %} {{ item[1] }} {% endif %}