aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-07 11:25:52 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-07 11:25:52 +0200
commit1575b8a90aa9f099438e2d224f7b34e044d96394 (patch)
tree3ea54771d23a3944d84d16d98ed9986be47a9395 /src
parentBug fix. (diff)
downloadnewspipe-1575b8a90aa9f099438e2d224f7b34e044d96394.tar.gz
newspipe-1575b8a90aa9f099438e2d224f7b34e044d96394.tar.bz2
newspipe-1575b8a90aa9f099438e2d224f7b34e044d96394.zip
Removed the endponint to see stats about a user.
Diffstat (limited to 'src')
-rw-r--r--src/web/templates/admin/dashboard.html2
-rw-r--r--src/web/views/admin.py19
2 files changed, 1 insertions, 20 deletions
diff --git a/src/web/templates/admin/dashboard.html b/src/web/templates/admin/dashboard.html
index 6a0793ce..0d45118d 100644
--- a/src/web/templates/admin/dashboard.html
+++ b/src/web/templates/admin/dashboard.html
@@ -25,7 +25,7 @@
<td class="date">{{ user.date_created | datetime }}</td>
<td class="date">{{ user.last_seen | datetime }}</td>
<td>
- <a href="{{ url_for("admin.user", user_id=user.id) }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this user') }}"></i></a>
+ <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 %}
diff --git a/src/web/views/admin.py b/src/web/views/admin.py
index d8472d9b..34bb0f6c 100644
--- a/src/web/views/admin.py
+++ b/src/web/views/admin.py
@@ -26,25 +26,6 @@ def dashboard():
form=form)
-@admin_bp.route('/user/<int:user_id>', methods=['GET'])
-@login_required
-@admin_permission.require(http_exception=403)
-def user(user_id=None):
- """
- See information about a user (stations, etc.).
- """
- user = UserController().get(id=user_id)
- if user is not None:
- article_contr = ArticleController(user_id)
- return render_template('/admin/user.html', user=user, feeds=user.feeds,
- article_count=article_contr.count_by_feed(),
- unread_article_count=article_contr.count_by_feed(readed=False))
-
- else:
- flash(gettext('This user does not exist.'), 'danger')
- return redirect(redirect_url())
-
-
@admin_bp.route('/user/create', methods=['GET'])
@admin_bp.route('/user/edit/<int:user_id>', methods=['GET'])
@login_required
bgstack15