Disable new task creation
This commit is contained in:
parent
a6b110662e
commit
e3643badcb
|
@ -22,11 +22,6 @@ def index():
|
|||
return render_template("dashboard.html",
|
||||
tasks=tasks, search=search, **pagination)
|
||||
|
||||
@html.route("/configure")
|
||||
@loginrequired
|
||||
def configure():
|
||||
return render_template("configure.html")
|
||||
|
||||
@html.route("/edit/<task_id>")
|
||||
@loginrequired
|
||||
def edit_task(task_id):
|
||||
|
|
|
@ -8,12 +8,14 @@
|
|||
This is your task dispatch service. Documentation for its use is
|
||||
<a href="https://man.sr.ht/dispatch.sr.ht">available here</a>.
|
||||
</p>
|
||||
<a
|
||||
href="/configure"
|
||||
class="btn btn-primary btn-block"
|
||||
>Configure new task {{icon("caret-right")}}</a>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="alert alert-danger">
|
||||
<strong>Notice</strong>:
|
||||
dispatch.sr.ht is scheduled for deprecation on October 1st, 2022. The
|
||||
creation of new tasks is disabled. For more details, see
|
||||
<a href="https://sourcehut.org/blog/2022-08-01-dispatch-deprecation-plans/">this blog post</a>.
|
||||
</div>
|
||||
{% if not any(tasks) %}
|
||||
<p class="text-muted">
|
||||
You haven't created any tasks yet.
|
||||
|
|
Loading…
Reference in New Issue