Просмотр исходного кода

Bugfix for online users

Previously mapped improperly with a dict.
Michael Hoyt 10 лет назад
Родитель
Сommit
cc180291cb
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      flaskbb/templates/forum/online_users.html

+ 2 - 2
flaskbb/templates/forum/online_users.html

@@ -10,9 +10,9 @@
 <legend>Online Users</legend>
 <legend>Online Users</legend>
 {% for user in online_users %}
 {% for user in online_users %}
     {% if config["REDIS_ENABLED"] %}
     {% if config["REDIS_ENABLED"] %}
-    <a href="{{ url_for('user.profile', username=user) }}">{{ user }}<a>{% if not loop.last %}, {% endif %}
+    <a href="{{ url_for('user.profile', username=user.username) }}">{{ user }}<a>{% if not loop.last %}, {% endif %}
     {% else %}
     {% else %}
-    <a href="{{ url_for('user.profile', username=user) }}">{{ user.username }}<a>{% if not loop.last %}, {% endif %}
+    <a href="{{ url_for('user.profile', username=user.username) }}">{{ user.username }}<a>{% if not loop.last %}, {% endif %}
     {% endif %}
     {% endif %}
 {% endfor %}
 {% endfor %}