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

Link to profile from admin users list

Rafał Pitoń 11 лет назад
Родитель
Сommit
a15d359e73

+ 7 - 0
misago/static/misago/admin/css/misago/tables.less

@@ -112,6 +112,13 @@
           max-width: 30px;
           max-height: 30px;
         }
+
+        &.item-name {
+          a:link, a:visited {
+            color: @text-color;
+            font-weight: bold;
+          }
+        }
       }
 
       &:first-child {

+ 5 - 0
misago/static/misago/admin/css/style.css

@@ -6219,6 +6219,11 @@ body {
   max-width: 30px;
   max-height: 30px;
 }
+.table-panel table.table tr td.item-name a:link,
+.table-panel table.table tr td.item-name a:visited {
+  color: #444444;
+  font-weight: bold;
+}
 .table-panel table.table tr:first-child > :first-child {
   border-top-left-radius: 3px;
 }

+ 5 - 3
misago/templates/misago/admin/users/list.html

@@ -30,10 +30,12 @@
 
 {% block table-row %}
 <td>
-  <img src="{{ item|avatar:24 }}" alt="{% trans "Avatar" %}" width="24" height="24">
+  <a href="{% url USER_PROFILE_URL user_slug=item.slug user_id=item.pk %}">
+    <img src="{{ item|avatar:24 }}" alt="{% trans "Avatar" %}" width="24" height="24">
+  </a>
 </td>
-<td class="{% if item.requires_activation %}text-muted{% endif %}">
-  <strong>{{ item.username }}</strong>
+<td class="item-name {% if item.requires_activation %}text-muted{% endif %}">
+  <a href="{% url USER_PROFILE_URL user_slug=item.slug user_id=item.pk %}">{{ item.username }}</a>
 </td>
 <td class="lead text-muted">
   {% if item.requires_activation_by_admin %}