diff --git a/app.py b/app.py index 124f3d2..a6949cc 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, direct=True) + return render_template('finger.html', title=f'Finger - {username}', result=result, error=error, username=username) @app.route('/api/finger') @app.route('/api/finger/') diff --git a/templates/finger.html b/templates/finger.html index 59ca1df..a387795 100644 --- a/templates/finger.html +++ b/templates/finger.html @@ -1,7 +1,6 @@ {% extends "base.html" %} {% block content %} -{% if direct %}
@@ -49,106 +48,6 @@
-{% else %} -
-
-

🔍 Finger Command

- -
-
-
-
-
User Lookup
-
-
- - -
- Leave empty to show all logged-in users, or enter a username or email address. -
-
- - - -
-
-
- -
-
-
â„šī¸ About Finger
-

- The finger command displays information about users on the system, including: -

-
    -
  • Login name and real name
  • -
  • Terminal and login time
  • -
  • Idle time
  • -
  • Home directory and shell
  • -
  • Plan and project files (if available)
  • -
-
-
-
- -
-
-
-
- {% if username %} - Results for "{{ username }}" - {% else %} - System Users - {% endif %} -
- {% if result or error %} - - {{ moment().format('YYYY-MM-DD HH:mm:ss') if moment else '' }} - - {% endif %} -
-
- {% if error %} - - {% elif result %} - -
-
{{ result }}
-
- {% else %} -
- -

Enter a username and click "Run Finger" to see user information,
- or leave username empty to see all logged-in users.

-
- {% endif %} -
-
-
-
- - -
-
-{% endif %} {% endblock %}