Add package update configuration for polling
This commit is contained in:
@@ -11,10 +11,22 @@
|
||||
<div class="col pr-0">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<a class="author {{ r.author.rank.name }}"
|
||||
<a class="author {{ r.author.rank.name }} mr-3"
|
||||
href="{{ url_for('users.profile', username=r.author.username) }}">
|
||||
{{ r.author.display_name }}
|
||||
</a>
|
||||
|
||||
{% if r.author in thread.package.maintainers %}
|
||||
<span class="badge badge-dark">
|
||||
{{ _("Maintainer") }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if r.author.rank == r.author.rank.BOT %}
|
||||
<span class="badge badge-dark">
|
||||
{{ r.author.rank.getTitle() }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<a name="reply-{{ r.id }}" class="text-muted float-right"
|
||||
href="{{ url_for('threads.view', id=thread.id) }}#reply-{{ r.id }}">
|
||||
{{ r.created_at | datetime }}
|
||||
|
||||
29
app/templates/packages/update_config.html
Normal file
29
app/templates/packages/update_config.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
Configure Update Detection | {{ package.title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ _("Configure Update Detection") }}</h1>
|
||||
|
||||
<p>
|
||||
{{ _("ContentDB will poll your Git repository at 2am UTC every day.") }}
|
||||
{{ _("You should consider using webhooks or the API for faster rollouts.") }}
|
||||
</p>
|
||||
|
||||
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
||||
<form method="POST" action="">
|
||||
{{ form.hidden_tag() }}
|
||||
|
||||
<h3>Triggers</h3>
|
||||
{{ render_field(form.trigger) }}
|
||||
|
||||
<h3 class="mt-5">Actions</h3>
|
||||
{{ render_checkbox_field(form.make_release) }}
|
||||
|
||||
<p class="mt-5">
|
||||
{{ render_submit_field(form.submit) }}
|
||||
</p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -38,6 +38,8 @@
|
||||
<i class="fas fa-user-shield mr-2"></i>
|
||||
{% elif user.rank == user.rank.EDITOR %}
|
||||
<i class="fas fa-user-edit mr-2"></i>
|
||||
{% elif user.rank == user.rank.BOT %}
|
||||
<i class="fas fa-robot mr-2"></i>
|
||||
{% else %}
|
||||
<i class="fas fa-user mr-2"></i>
|
||||
{% endif %}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<h1 class="ml-3 my-0">
|
||||
<h1 class="ml-3 my-0 {{ user.rank.name }}">
|
||||
{{ user.display_name }}
|
||||
</h1>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user