From 54c6cd87b00b6447477748e4479ba0af74e75c00 Mon Sep 17 00:00:00 2001 From: skrzepto Date: Aug 18 2016 15:30:19 +0000 Subject: hookup to the front end, disclaimer the ui isnt fixed --- diff --git a/hubs/widgets/fedmsgstats.py b/hubs/widgets/fedmsgstats.py index 533c563..8a145f8 100755 --- a/hubs/widgets/fedmsgstats.py +++ b/hubs/widgets/fedmsgstats.py @@ -27,6 +27,7 @@ def data(session, widget, username): if assoc.user: sub_list = [u.name for u in assoc.user.subscriptions] subscribers = [u.username for u in widget.hub.subscribers] + karma_url = flask.url_for('plus_plus_status', user=username) return dict( username=username, fedmsgs=fedmsgs, @@ -39,6 +40,7 @@ def data(session, widget, username): 'hub_subscribe', hub=widget.hub.name), hub_unsubscribe_url=flask.url_for( 'hub_unsubscribe', hub=widget.hub.name), + karma_url=karma_url ) diff --git a/hubs/widgets/templates/fedmsgstats.html b/hubs/widgets/templates/fedmsgstats.html index bb569e7..c1ac9f4 100644 --- a/hubs/widgets/templates/fedmsgstats.html +++ b/hubs/widgets/templates/fedmsgstats.html @@ -1,8 +1,8 @@
- - + +
subscriberssubscribed to
{{subscribers_text}}{{subscribed_text}}
subscriberssubscribed tokarma
{{subscribers_text}}{{subscribed_text}}
@@ -21,3 +21,26 @@ {% endif %}
+ + \ No newline at end of file