"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/share/roundup/templates/jinja2/html/issue.index.html" (29 Feb 2020, 3509 Bytes) of package /linux/www/roundup-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {% extends 'layout/page.html' %}
    2 
    3 {% block head_title %}
    4   {% trans %}List of issues{% endtrans %}
    5 {% endblock %}
    6 
    7 {% block page_header %}
    8   {% trans %}List of issues{% endtrans %}
    9 {% endblock %}
   10 
   11 {% block content %}
   12 
   13   {% include 'layout/permission.html' %}
   14 
   15   {% if context.is_view_ok() %}
   16     {% set batch = request.batch() %}
   17     {% if batch %}
   18       <table class='table'>
   19         <tr class='info'>
   20           {% if request.show.priority %}
   21           <td>{% trans %}Priority{% endtrans %}</td>
   22           {% endif %}
   23           {% if request.show.id %}
   24           <td>{% trans %}ID{% endtrans %}</td>
   25           {% endif %}
   26           {% if request.show.activity %}
   27           <td>{% trans %}Activity{% endtrans %}</td>
   28           {% endif %}
   29           {% if request.show.actor %}
   30           <td>{% trans %}Actor{% endtrans %}</td>
   31           {% endif %}
   32           {% if request.show.keyword %}
   33           <td>{% trans %}Keyword{% endtrans %}</td>
   34           {% endif %}
   35           {% if request.show.title %}
   36           <td>{% trans %}Title{% endtrans %}</td>
   37           {% endif %}
   38           {% if request.show.status %}
   39           <td>{% trans %}Status{% endtrans %}</td>
   40           {% endif %}
   41           {% if request.show.creator %}
   42           <td>{% trans %}Creator{% endtrans %}</td>
   43           {% endif %}
   44           {% if request.show.assignedto %}
   45           <td>{% trans %}Assigned To{% endtrans %}</td>
   46           {% endif %}
   47         </tr>
   48         {% for issue in batch %}
   49           {% if request.group|length %}
   50             {% set group = [request.group[0][1], request.group[1][1]] if request.group|length >= 2 else [request.group[0][1]] %}
   51             {% if batch.propchanged(*group) %}
   52               <tr>
   53                 <th class="text-center" colspan="{{ request.columns|length }}">
   54                   {%- for g in group -%}
   55                   {%- if issue[g] %} {% if g == 'id' %}{{ issue[g] }}{% else %}{{ issue[g].plain()|u }}{% endif %} {% else %} (no {{ g }} set) {% endif -%}
   56                   {%- endfor -%}
   57                 </th>
   58               </tr>
   59             {% endif %}
   60           {% endif %}
   61           <tr>
   62            {% if request.show.priority %}
   63            <td>{{ issue.priority.plain()|u }}</td>
   64            {% endif %}
   65            {% if request.show.id %}
   66            <td>{{ issue.id }}</td>
   67            {% endif %}
   68            {% if request.show.activity %}
   69            <td>{{ issue.activity.reldate()|u }}</td>
   70            {% endif %}
   71            {% if request.show.actor %}
   72            <td>{{ issue.actor.plain()|u }}</td>
   73            {% endif %}
   74            {% if request.show.keyword %}
   75            <td>{{ issue.keyword.plain()|u }}</td>
   76            {% endif %}
   77            {% if request.show.title %}
   78            <td>
   79             <a href='issue{{ issue.id }}'>{{ issue.title.plain(hyperlink=0)|u }}</a>
   80            </td>
   81            {% endif %}
   82            {% if request.show.status %}
   83            <td>{{ issue.status.plain()|u }}</td>
   84            {% endif %}
   85            {% if request.show.creator %}
   86            <td>{{ issue.creator.plain()|u }}</td>
   87            {% endif %}
   88            {% if request.show.assignedto %}
   89            <td>{{ issue.assignedto.plain()|u }}</td>
   90            {% endif %}
   91           </tr>
   92         {% endfor %}
   93       </table>
   94       {% include 'layout/pagination.html' %}
   95       <div class="d-flex justify-content-end">
   96         <a class='btn btn-sm btn-secondary'
   97            href="{{ request.indexargs_url('issue', {'@action':'export_csv'}) }}">
   98           {% trans %}Download as CSV{% endtrans %}
   99         </a>
  100       </div>
  101 
  102       {% include 'layout/sort.html' %}
  103 
  104     {% else %}
  105       <p class='text-error'>{% trans %}There are no issues yet!{% endtrans %}</p>
  106     {% endif %}
  107 
  108   {% endif %}
  109 
  110 {% endblock %}