view share/roundup/templates/jinja2/html/msg.item.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 b1b3b84f07a5
children
line wrap: on
line source

{% extends 'layout/page.html' %}

{% block head_title %}
  {% if context.id %}
    {% trans %}Message{% endtrans %} {{ context.id }} - {{ config.TRACKER_NAME }}
  {% else %}
    {% trans %}New Message{% endtrans %} - {{ config.TRACKER_NAME }}
  {% endif %}
{% endblock %}

{% block page_header %}
  {% if not (context.id or context.is_edit_ok()) %}
    {% trans %}New Message{% endtrans %}
  {% elif not context.id and context.is_edit_ok() %}
    {% trans %}New Message Editing{% endtrans %}
  {% elif context.id and not context.is_edit_ok() %}
    {% trans %}Message{% endtrans %} {{ context.id }}
  {% elif context.id and context.is_edit_ok() %}
    {% trans %}Message{% endtrans %} {{ context.id }} {% trans %}editing{% endtrans %}
  {% endif %}
{% endblock %}

{% block content %}

  {% include 'layout/permission.html' %}

  {% if context.is_view_ok() %}
    <dl class="row row-cols-1 row-cols-md-2 row-cols-lg-3">
      <div class="col row">
        <dt class="col col-auto">{% trans %}Author{% endtrans %}</dt>
        <dd class="col col-auto">{{ context.author.plain()|u }}</dd>
      </div>
      <div class="col row">
        <dt class="col col-auto">{% trans %}Date{% endtrans %}</dt>
        <dd class="col col-auto">{{ context.date.plain()|u }}</dd>
      </div>
      <div class="col row">
        <dt class="col col-auto">{% trans %}Message id{% endtrans %}</dt>
        <dd class="col col-auto">{{ context.id }}</dd>
      </div>
    </dl>
    <div>
      <h4>Content</h4>
      {% if context.type == 'text/markdown' %}
        <div class="msg">{{ context.content.markdown()|u|safe }}</div>
      {% elif context.type == 'text/x-rst' %}
        <div class="msg">{{ context.content.rst()|u|safe }}</div>
      {% else %}
        <pre class="msg">{{ context.content.hyperlinked()|u|safe }}</pre>
      {% endif %}
    </div>
  {% endif %}

  {% if context.files %}
    {% include 'file.index.html' %}
  {% endif %}

  <div class='vspace-five'></div>
  {{ context.history()|u|safe }}

{% endblock %}

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