{# This templates is used to display results when searching remote objects, # for example actors. #} {# SPDX-FileCopyrightText: 2020-2021 zPlus SPDX-License-Identifier: GPL-2.0-only #} {% if result['type'] == 'Person' %} {% if 'preferredUsername' in result %} {% endif %}
Name {{ result['name'] }}
Username {{ result['preferredUsername'] }}
Type {{ result['type'] }}
Follow
{% elif result['type'] == 'Project' %} {% if 'repository' in result %} {% if 'tickettracker' in result %}
Name {{ result['name'] }}
Type {{ result['type'] }}
Repositories {% for repository in result['repository'] %} {{ repository }} {% endfor%} {% endif %}
Ticket Tracker {% for tickettracker in result['tickettracker'] %} {{ tickettracker }} {% endfor%} {% endif %}
{% elif result['type'] == 'Repository' %} {% if 'preferredUsername' in result %} {% endif %} {% if 'project' in result %} {% endif %}
Name {{ result['name'] }}
Username {{ result['preferredUsername'] }}
Type {{ result['type'] }}
Project {{ result['project'] }}
Follow Fork
{% elif result['type'] == 'TicketTracker' %}
{% if 'preferredUsername' in result %} {% endif %} {% if 'project' in result %} {% endif %}
Name {{ result['name'] }}
Username {{ result['preferredUsername'] }}
Type {{ result['type'] }}
Project {{ result['project'] }}
{% endif %}