Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
UNION ALL
+ -- Deleted Builds
+ SELECT
+ 'build-deleted' AS type,
+ builds.deleted_at AS t,
+ 4 AS priority,
+ builds.id AS build,
+ NULL AS build_comment,
+ NULL AS user,
+ builds.deleted_by AS by_user
+ FROM
+ builds
+ WHERE
+ builds.deleted_at IS NOT NULL
+
+ UNION ALL
+
-- Build Comments
SELECT
'build-comment' AS type,
CREATE INDEX builds_created_at ON public.builds USING btree (created_at DESC) WHERE (deleted_at IS NULL);
+--
+-- Name: builds_deleted; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX builds_deleted ON public.builds USING btree (deleted_at) WHERE (deleted_at IS NOT NULL);
+
+
--
-- Name: builds_pkg_id; Type: INDEX; Schema: public; Owner: -
--
{% block content %}
<p>
{% if event.type == "build-created" %}
- {{ _("Build created") }}
+ {{ _("Build Created") }}
+ {% elif event.type == "build-deleted" %}
+ {{ _("Build Deleted") }}
{% elif event.type == "build-watcher-added" %}
{{ _("%s started watching this build") % event.user }}
{% elif event.type == "build-watcher-removed" %}