view share/roundup/templates/jinja2/html/file.index.html @ 8566:e4191aa7b402 default tip

doc: issue2551415 correct doc for change input->input_payload in 2.5 the rest interface changed a variable name from input to input_payload. An earlier commit changed the rest docs. This commit adds an item for it to the upgrading 2.4.0->2.5.0 section. Also cross reference added to the rest docs with the updated examples.
author John Rouillard <rouilj@ieee.org>
date Thu, 09 Apr 2026 00:19:06 -0400
parents ee3497c573ab
children
line wrap: on
line source

<h4>{% trans %}Files{% endtrans %}</h4>
<table class='table'>
  <tr>
    <th>{% trans %}File name{% endtrans %}</th>
    <th>{% trans %}Uploaded{% endtrans %}</th>
    <th>{% trans %}Type{% endtrans %}</th>
    <th>{% if context.is_edit_ok() %}{% trans %}Edit{% endtrans %}{% else %}{% trans %}Details{% endtrans %}{% endif %}</th>
    {% if context.is_edit_ok() %}<th>{% trans %}Remove{% endtrans %}</th>{% endif %}
  </tr>
  {% for file in context.files %}
    <tr>
      <td>
        <a class="btn btn-sm btn-outline-primary" href='{{ file.download_url()|u|safe }}'>{{ file.name.plain()|u }}</a>
      </td>
      <td>{{ file.creator.plain()|u }}, {{ file.creation.plain()|u }}</td>
      <td>{{ file.type.plain()|u }}</td>
      <td>
        <a class="btn btn-sm btn-success" href='file{{ file.id }}'>
		  {% if file.is_edit_ok() %}
		  {% trans %}edit{% endtrans %}
		  {% else %}
		  {% trans %}view{% endtrans %}
		  {% endif %}
		</a>
      </td>
      {% if file.is_edit_ok() %}
        <td>
          <form method="POST" action='issue{{ context.id }}'>
            <input type="hidden" name="@remove@files" value='{{ file.id }}'>
            <input name="@csrf" type="hidden" value="{{ utils.anti_csrf_nonce() }}">
            <input type="hidden" name="@action" value="edit">
            <input class="btn btn-sm btn-danger" type="submit" value="{% trans %}remove{% endtrans %}">
          </form>
        </td>
      {% endif %}
    </tr>
  {% endfor %}
</table>

Roundup Issue Tracker: http://roundup-tracker.org/