"Fossies" - the Fresh Open Source Software Archive

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


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <h4>{% trans %}Files{% endtrans %}</h4>
    2 <table class='table'>
    3   <tr>
    4     <th>{% trans %}File name{% endtrans %}</th>
    5     <th>{% trans %}Uploaded{% endtrans %}</th>
    6     <th>{% trans %}Type{% endtrans %}</th>
    7     <th>{% if context.is_edit_ok() %}{% trans %}Edit{% endtrans %}{% else %}{% trans %}Details{% endtrans %}{% endif %}</th>
    8     {% if context.is_edit_ok() %}<th>{% trans %}Remove{% endtrans %}</th>{% endif %}
    9   </tr>
   10   {% for file in context.files %}
   11     <tr>
   12       <td>
   13         <a class="btn btn-sm btn-outline-primary" href='{{ file.download_url()|u|safe }}'>{{ file.name.plain()|u }}</a>
   14       </td>
   15       <td>{{ file.creator.plain()|u }}, {{ file.creation.plain()|u }}</td>
   16       <td>{{ file.type.plain()|u }}</td>
   17       <td>
   18         <a class="btn btn-sm btn-success" href='file{{ file.id }}'>
   19           {% if file.is_edit_ok() %}
   20           {% trans %}edit{% endtrans %}
   21           {% else %}
   22           {% trans %}view{% endtrans %}
   23           {% endif %}
   24         </a>
   25       </td>
   26       {% if file.is_edit_ok() %}
   27         <td>
   28           <form method="POST" action='issue{{ context.id }}'>
   29             <input type="hidden" name="@remove@files" value='{{ file.id }}'>
   30             <input name="@csrf" type="hidden" value="{{ utils.anti_csrf_nonce() }}">
   31             <input type="hidden" name="@action" value="edit">
   32             <input class="btn btn-sm btn-danger" type="submit" value="{% trans %}remove{% endtrans %}">
   33           </form>
   34         </td>
   35       {% endif %}
   36     </tr>
   37   {% endfor %}
   38 </table>