diff --git a/app.py b/app.py index a6949cc..124f3d2 100644 --- a/app.py +++ b/app.py @@ -167,7 +167,7 @@ def finger_direct(username): else: error = output - return render_template('finger.html', title=f'Finger - {username}', result=result, error=error, username=username) + return render_template('finger.html', title=f'Finger - {username}', result=result, error=error, username=username, direct=True) @app.route('/api/finger') @app.route('/api/finger/') diff --git a/templates/finger.html b/templates/finger.html index 26e46ce..59ca1df 100644 --- a/templates/finger.html +++ b/templates/finger.html @@ -1,10 +1,59 @@ {% extends "base.html" %} {% block content %} +{% if direct %} +
+
+
+

🔍 Finger Command

+ +
+ +
+
+
+ {% if username %} + Results for "{{ username }}" + {% else %} + System Users + {% endif %} +
+
+
+ {% if error %} + + {% elif result %} +
+
{{ result }}
+
+ {% else %} +
+ +

No information available.

+
+ {% endif %} +
+
+
+
+{% else %}

🔍 Finger Command

- +
@@ -13,8 +62,8 @@
- @@ -22,7 +71,7 @@ Leave empty to show all logged-in users, or enter a username or email address.
- + @@ -32,7 +81,7 @@
- +
â„šī¸ About Finger
@@ -49,7 +98,7 @@
- +
@@ -91,7 +140,7 @@
- +
+{% endif %} {% endblock %}