| {#- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| -#} |
| {% extends "allura.ext.personal_dashboard:templates/dashboard_section_base.html" %} |
| {% import 'allura:templates/jinja_master/lib.html' as lib with context %} |
| {% import g.theme.jinja_macros as theme_macros with context %} |
| |
| {% block title %} |
| Tickets |
| {% endblock %} |
| |
| {% block actions %}{% endblock %} |
| |
| {% block section_class %}tickets{% endblock %} |
| |
| {% block content %} |
| {% if solr_error %}<p>{{ solr_error }}</p>{% endif %} |
| {% if count %} |
| {{ page_size.display(page=page, count=count, limit=limit) }} |
| <table> |
| <thead> |
| <tr> |
| <th data-sort="ticket_num_i">#</th> |
| <th data-sort="snippet_s">Summary</th> |
| <th data-sort="mod_date_s">Updated Date</th> |
| <th data-sort="reported_by_s">Creator</th> |
| <th data-sort="assigned_to_s">Owner</th> |
| <th data-sort="status_s">Status</th> |
| </tr> |
| </thead> |
| <tbody class="ticket-list"> |
| {% for t in tickets %} |
| <tr> |
| <td><a href="{{ t['url'] }}">{{ t['ticket_num'] }}</a></td> |
| <td><a href="{{ t['url'] }}">{{ t['summary'] }}</a></td> |
| <td>{{ lib.abbr_date(t['mod_date']) }}</td> |
| <td>{{ t['reported_by'].display_name }}</td> |
| <td>{% if t['assigned_to_id'] %}{{ t['assigned_to'].display_name }}{% endif %}</td> |
| <td class="{{ t['status'] }}">{{ t['status'] }}</td> |
| </tr> |
| {% endfor %} |
| </tbody> |
| </table> |
| {% else %} |
| <li class="empty">No tickets to display.</li> |
| {% endif %} |
| {{ page_list.display(limit=limit, page=page, count=count) }} |
| {% endblock %} |