aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/admin
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-02-26 11:27:31 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-02-26 11:27:31 +0100
commit62b3afeeedfe054345f86093e2d243e956c1e3c9 (patch)
treebbd58f5c8c07f5d87b1c1cca73fa1d5af6178f48 /src/web/templates/admin
parentUpdated Python dependencies. (diff)
downloadnewspipe-62b3afeeedfe054345f86093e2d243e956c1e3c9.tar.gz
newspipe-62b3afeeedfe054345f86093e2d243e956c1e3c9.tar.bz2
newspipe-62b3afeeedfe054345f86093e2d243e956c1e3c9.zip
The project is now using Poetry.
Diffstat (limited to 'src/web/templates/admin')
-rw-r--r--src/web/templates/admin/create_user.html26
-rw-r--r--src/web/templates/admin/dashboard.html68
2 files changed, 0 insertions, 94 deletions
diff --git a/src/web/templates/admin/create_user.html b/src/web/templates/admin/create_user.html
deleted file mode 100644
index 40aad468..00000000
--- a/src/web/templates/admin/create_user.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{% extends "layout.html" %}
-{% block head%}
-{{super()}}
-{% endblock %}
-{% block content %}
-<div class="container">
- <div class="well">
- <h2>{{ message | safe }}</h2>
- <form action="" method="post" name="saveprofileform" id="profileform">
- {{ form.hidden_tag() }}
-
- {{ form.nickname.label }}
- {{ form.nickname(class_="form-control") }} {% for error in form.nickname.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
-
- {{ form.password.label }}
- {{ form.password(class_="form-control") }} {% for error in form.password.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
-
- {{ form.automatic_crawling.label }}
- {{ form.automatic_crawling(class_="form-control") }} {% for error in form.automatic_crawling.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
-
- <br />
- {{ form.submit(class_="btn btn-default") }}
- </form>
- </div>
-</div>
-{% endblock %}
diff --git a/src/web/templates/admin/dashboard.html b/src/web/templates/admin/dashboard.html
deleted file mode 100644
index 350a2e47..00000000
--- a/src/web/templates/admin/dashboard.html
+++ /dev/null
@@ -1,68 +0,0 @@
-{% extends "layout.html" %}
-{% block head%}
-{{super()}}
-{% endblock %}
-{% block content %}
-<div class="container">
-<h1>{{ _('Registered users') }}</h1>
-<table id="table-users" class="table table-striped">
- <thead>
- <tr>
- <th>#</th>
- <th>{{ _('Nickname') }}</th>
- <th>{{ _('Member since') }}</th>
- <th>{{ _('Last seen') }}</th>
- <th>{{ _('Actions') }}</th>
- </tr>
- </thead>
- <tbody>
- {% for user in users %}
- <tr {% if not user.is_active %}class="warning"{% endif %}>
- <td>{{ loop.index }}</td>
- <td>
- {% if user.is_public_profile %}
- <a href="{{ url_for("user.profile_public", nickname=user.nickname) }}">{{ user.nickname }}</a>
- {% else %}
- {{ user.nickname }}
- {% endif %}
- {% if user.id == current_user.id %}&nbsp;(It's you!){% endif %}
- </td>
- <td class="date">{{ user.date_created | datetime }}</td>
- <td class="date">{{ user.last_seen | datetime }}</td>
- <td>
- <a href="{{ url_for("admin.user_form", user_id=user.id) }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this user') }}"></i></a>
- {% if user.id != current_user.id %}
- <a href="{{ url_for("admin.toggle_user", user_id=user.id) }}">
- {% if user.is_active %}
- <i class="glyphicon glyphicon-ban-circle" title="{{ _("Disable this account") }}"></i>
- {% else %}
- <i class="glyphicon glyphicon-ok-circle" title="{{ _("Enable this account") }}"></i>
- {% endif %}
- </a>
- <a href="{{ url_for("admin.delete_user", user_id=user.id) }}"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this user') }}" onclick="return confirm('{{ _('You are going to delete this account.') }}');"></i></a>
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
-</table>
-<a href="{{ url_for("admin.user_form") }}" class="btn btn-default">{{ _('Add a new user') }}</a>
-</div>
-<script>
-$(document).ready(function() {
- $('#table-users').DataTable( {
- responsive: true,
- columnDefs: [
- {
- targets: [0, 4],
- "searchable": false
- },
- {
- targets: [3],
- "orderSequence": ["desc"]
- }
- ]
- });
-});
-</script>
-{% endblock %}
bgstack15