home · contact · privacy
Fix Processes listing sorting bug.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 6 Jun 2024 05:02:43 +0000 (07:02 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 6 Jun 2024 05:02:43 +0000 (07:02 +0200)
plomtask/http.py
templates/condition.html
templates/process.html

index 886efa22c50a15c0384a541a701035e822c4e1ac..773548f8a9201e3e48ab8093b6431ab826842110 100644 (file)
@@ -280,7 +280,7 @@ class TaskHandler(BaseHTTPRequestHandler):
             processes.sort(key=lambda p: len(p.explicit_steps))
         elif sort_by == '-steps':
             processes.sort(key=lambda p: len(p.explicit_steps), reverse=True)
-        if sort_by == 'owners':
+        elif sort_by == 'owners':
             processes.sort(key=lambda p: p.n_owners or 0)
         elif sort_by == '-owners':
             processes.sort(key=lambda p: p.n_owners or 0, reverse=True)
index b20b5fe04c3520264a4e4864769889b46b7d9227..8deb71cbf4dac93d837fb3cd51c8fd3b6b4cce6d 100644 (file)
@@ -3,6 +3,14 @@
 
 
 
+{% block css %}
+input[name="title"] {
+  width: 100em;
+}
+{% endblock %}
+
+
+
 {% block content %}
 <h3>{% if is_new %}NEW {% endif %}condition</h3>
 <form action="condition?id={{condition.id_ or ''}}" method="POST">
index 1be3daf344d1621ff58990ed5fc38a81d0b723b6..c765ca7a3594b6969c342ad452c48a4db7dc0952 100644 (file)
@@ -3,6 +3,14 @@
 
 
 
+{% block css %}
+input[name="title"] {
+  width: 100em;
+}
+{% endblock %}
+
+
+
 {% macro step_with_steps(step_id, step_node, indent) %}
 <tr>
 <td>