|
| 1 | +{% extends "base.html" %} |
| 2 | + |
| 3 | +{% load person %} |
| 4 | +{% load static %} |
| 5 | + |
| 6 | +{% block title %}{{project.name}}{% endblock %} |
| 7 | +{% block series_active %}active{% endblock %} |
| 8 | + |
| 9 | +{% block body %} |
| 10 | + |
| 11 | +{% load person %} |
| 12 | +{% load listurl %} |
| 13 | +{% load patch %} |
| 14 | +{% load project %} |
| 15 | +{% load static %} |
| 16 | + |
| 17 | +{% include "patchwork/partials/pagination.html" %} |
| 18 | + |
| 19 | +<input type="hidden" name="form" value="serieslistform"/> |
| 20 | +<input type="hidden" name="project" value="{{project.id}}"/> |
| 21 | + |
| 22 | +<table id="serieslist" class="table table-hover table-extra-condensed table-striped pw-list" data-toggle="checkboxes" data-range="true"> |
| 23 | + <thead> |
| 24 | + <tr> |
| 25 | +{% if user.is_authenticated and user.profile.show_ids %} |
| 26 | + <th> |
| 27 | + ID |
| 28 | + </th> |
| 29 | +{% endif %} |
| 30 | + |
| 31 | + <th> |
| 32 | + <span class="series-list-header">Series</span> |
| 33 | + </th> |
| 34 | + |
| 35 | + <th> |
| 36 | + Version |
| 37 | + </th> |
| 38 | + |
| 39 | + <th> |
| 40 | + <span class="series-list-header">Cover Letter</span> |
| 41 | + </th> |
| 42 | + |
| 43 | + <th> |
| 44 | + <span class="series-list-header">Patches</span> |
| 45 | + </th> |
| 46 | + |
| 47 | + <th> |
| 48 | + {% if 'date.asc' == order %} |
| 49 | + <a href="{% listurl order='date.desc' %}" class="colactive"> |
| 50 | + <span class="glyphicon glyphicon-chevron-up"></span> |
| 51 | + {% elif 'date.desc' == order %} |
| 52 | + <a href="{% listurl order='date.asc' %}" class="colactive"> |
| 53 | + <span class="glyphicon glyphicon-chevron-down"></span> |
| 54 | + {% endif %} |
| 55 | + <span class="series-list-header">Date</span> |
| 56 | + {% if 'date.asc' == order or 'date.desc' == order%} |
| 57 | + </a> |
| 58 | + {% endif %} |
| 59 | + </th> |
| 60 | + |
| 61 | + <th> |
| 62 | + <span class="series-list-header">Submitter</span> |
| 63 | + </th> |
| 64 | + </tr> |
| 65 | + </thead> |
| 66 | + |
| 67 | + <tbody> |
| 68 | +{% for series in page %} |
| 69 | + <tr id="series_row:{{series.id}}"> |
| 70 | +{% if user.is_authenticated and user.profile.show_ids %} |
| 71 | + <td> |
| 72 | + <button type="button" class="btn btn-xs btn-copy" data-clipboard-text="{{ series.id }}" title="Copy to Clipboard"> |
| 73 | + {{ series.id }} |
| 74 | + </button> |
| 75 | + </td> |
| 76 | +{% endif %} |
| 77 | + <td> |
| 78 | + {{ series.name|default:"[no subject]"|truncatechars:100 }} |
| 79 | + </td> |
| 80 | + <td> |
| 81 | + {{ series.version|default:"-"}} |
| 82 | + </td> |
| 83 | + |
| 84 | + <td> |
| 85 | + {% if series.cover_letter.content %} |
| 86 | + <b>✓</b> |
| 87 | + {% else %} |
| 88 | + - |
| 89 | + {% endif %} |
| 90 | + </td> |
| 91 | + <td>{{ series.received_total}}</td> |
| 92 | + <td class="text-nowrap">{{ series.date|date:"Y-m-d" }}</td> |
| 93 | + <td>{{ series.submitter|personify:project }}</td> |
| 94 | + </tr> |
| 95 | +{% empty %} |
| 96 | + <tr> |
| 97 | + <td colspan="8">No series to display</td> |
| 98 | + </tr> |
| 99 | +{% endfor %} |
| 100 | + </tbody> |
| 101 | +</table> |
| 102 | + |
| 103 | +{% if page.paginator.count %} |
| 104 | +{% include "patchwork/partials/pagination.html" %} |
| 105 | +{% endif %} |
| 106 | +{% endblock %} |
0 commit comments