]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 31 Jul 2024 22:07:18 +0000 (00:07 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 31 Jul 2024 22:07:18 +0000 (00:07 +0200)
- added conditional links to 'added'/'updated' modes

templates/views/list.html

index 5a6b86c9acc23d1a399d3dd755bb3e87b704e50b..548dc87af43438b3a0b5957981c9c11ea6e6e16f 100644 (file)
             <th>Total peers</th>
             <th>Total blocks</th>
             <th>Response time</th>
-            <th>First added</th>
-            <th>Last updated</th>
+            <th>
+                {% if mode != "added" %}
+                <a href="{{base_url}}/list?mode=added&amp;value=1&amp;amount={{amount}}">First added</a>
+                {% else %}
+                First added
+                {% endif %}
+            </th>
+            <th>
+                {% if mode != "updated" %}
+                <a href="{{base_url}}/list?mode=updated&amp;value=1&amp;amount={{amount}}">Last updated</a>
+                {% else %}
+                Last updated
+                {% endif %}
+            </th>
         </thead>
 
         <tbody>