aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-19 12:26:24 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-19 12:26:24 +0200
commit2128a3f922fdef445e79311c83305f0291787e27 (patch)
treef786d8d1918818b5f0954209d6865e8f27f8cfee /src
parentupdate .gitignore (diff)
downloadnewspipe-2128a3f922fdef445e79311c83305f0291787e27.tar.gz
newspipe-2128a3f922fdef445e79311c83305f0291787e27.tar.bz2
newspipe-2128a3f922fdef445e79311c83305f0291787e27.zip
add a link to the public profiles of users (if the opt in for it)
Diffstat (limited to 'src')
-rw-r--r--src/web/templates/admin/dashboard.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/web/templates/admin/dashboard.html b/src/web/templates/admin/dashboard.html
index 48c98b68..19c67b8e 100644
--- a/src/web/templates/admin/dashboard.html
+++ b/src/web/templates/admin/dashboard.html
@@ -20,7 +20,14 @@
{% for user in users %}
<tr {% if not user.is_active %}class="warning"{% endif %}>
<td>{{ loop.index }}</td>
- <td>{{ user.nickname }}{% if user.id == current_user.id %} (It's you!){% endif %}</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><a href="mailto:{{ user.email }}">{{ user.email }}</a></td>
<td class="date">{{ user.date_created | datetime }}</td>
<td class="date">{{ user.last_seen | datetime }}</td>
bgstack15