Skip to content

Commit

Permalink
Fix: layout tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jan 11, 2022
1 parent ae827fd commit 340519c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/automations/templates/automations/includes/history_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
{% with node=task.get_node %}
<h4 class="card-header{% if "Error" in task.message %} bg-danger{% elif "OK" in task.message %} bg-success{% else %} bg-warning{% endif %}">{{ task.status }} = flow.{{ node.node_name }}()
<small>{% if task.finished %}{{ task.finished }}{% else %}{% trans "running" %}{% endif %}</small></h4>
{% if node.description %}<p>{{ node.description }}</p>{% endif %}
{% if task.message == "OK" and task.result %}
<pre class="card-body mb-0">{{ task.result }}</pre>
{% elif "Error" in task.message %}
<div class="card-footer">
<div class="card-body">
{% if node.description %}<p>{{ node.description }}</p>{% endif %}
{% if task.message == "OK" and task.result %}
<pre class="mb-0">{{ task.result }}</pre>
{% elif "Error" in task.message %}
<a href="{% url "automations:traceback" automation.id task.id %}">
<pre>{{ task.message }}</pre>
<code>{{ task.message }}</code>
</a>
</div>
{% else %}
<pre class="card-body mb-0">{{ task.message }}</pre>
{% endif %}
{% else %}
<pre class="mb-0">{{ task.message }}</pre>
{% endif %}
</div>
{% if node.modifiers %}
<div class="card-footer">
<ul class="list-inline mb-0">
Expand Down

0 comments on commit 340519c

Please sign in to comment.