2018-06-11 23:49:25 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("New Thread") }}
|
2018-06-11 23:49:25 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2023-12-16 01:57:13 +01:00
|
|
|
{% block scriptextra %}
|
|
|
|
{% from "macros/forms.html" import easymde_scripts %}
|
|
|
|
{{ easymde_scripts() }}
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-06-11 23:49:25 +02:00
|
|
|
{% block content %}
|
|
|
|
|
2021-01-01 17:36:15 +01:00
|
|
|
{% if package and current_user != package.author and package.issueTracker %}
|
|
|
|
<p class="alert alert-secondary">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("Found a bug? Post on the <a href='%(url)s'>issue tracker</a> instead.", url=package.issueTracker) }}<br />
|
|
|
|
{{ _("If the package shouldn't be on CDB (eg: if it doesn't work at all), then you can let us know here.") }}
|
2021-01-01 17:36:15 +01:00
|
|
|
</p>
|
2019-01-28 20:41:24 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2018-12-22 23:29:30 +01:00
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
|
|
|
<form method="POST" action="" enctype="multipart/form-data">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
{{ render_field(form.title) }}
|
|
|
|
|
|
|
|
<div class="row mt-0 mb-4 comments mx-0">
|
|
|
|
<div class="col-md-1 p-1">
|
2023-06-18 22:56:19 +02:00
|
|
|
<img class="img-fluid user-photo img-thumbnail img-thumbnail-1" src="{{ current_user.get_profile_pic_url() }}">
|
2018-12-22 23:29:30 +01:00
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header {{ current_user.rank.name }}">
|
|
|
|
{{ current_user.display_name }}
|
|
|
|
<a name="reply"></a>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
2023-08-26 14:38:34 +02:00
|
|
|
{{ render_field(form.comment, label="", class_="m-0", fieldclass="form-control markdown", data_enter_submit="1") }}
|
2018-12-22 23:29:30 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-04-23 22:44:27 +02:00
|
|
|
{% if allow_private_change %}
|
|
|
|
{{ render_checkbox_field(form.private, class_="my-3") }}
|
|
|
|
{% elif form.private.data %}
|
|
|
|
<p>
|
|
|
|
Private.
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
{% if allow_private_change or form.private.data %}
|
|
|
|
<p>
|
|
|
|
{{ _("Only you, the package author, and users of Approver rank and above can read private threads.") }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2018-12-22 23:29:30 +01:00
|
|
|
|
2023-08-26 14:38:34 +02:00
|
|
|
{{ render_submit_field(form.btn_submit) }}
|
2018-12-22 23:29:30 +01:00
|
|
|
</form>
|
|
|
|
|
2018-06-11 23:49:25 +02:00
|
|
|
|
|
|
|
{% endblock %}
|