diff --git a/templates/org/settings/blocked_users.tmpl b/templates/org/settings/blocked_users.tmpl index cc95b047d7..4133a43c69 100644 --- a/templates/org/settings/blocked_users.tmpl +++ b/templates/org/settings/blocked_users.tmpl @@ -14,27 +14,8 @@ -
- {{range .BlockedUsers}} -
- {{ctx.AvatarUtils.Avatar $.Context . 48 "gt-mr-3 gt-mb-0"}} -
- {{.Name}} - {{$.locale.Tr "settings.blocked_since" (DateTime "short" .CreatedUnix) | Safe}} -
-
-
- {{$.CsrfTokenHtml}} - - -
-
-
- {{else}} -
- {{$.locale.Tr "settings.blocked_users_none"}} -
- {{end}} -
+
+ {{template "shared/blocked_users_list" dict "locale" .locale "BlockedUsers" .BlockedUsers}} +
{{template "org/settings/layout_footer" .}} diff --git a/templates/shared/blocked_users_list.tmpl b/templates/shared/blocked_users_list.tmpl new file mode 100644 index 0000000000..ba399159e3 --- /dev/null +++ b/templates/shared/blocked_users_list.tmpl @@ -0,0 +1,28 @@ +
+ {{range .BlockedUsers}} +
+
+ {{ctx.AvatarUtils.Avatar . 48}} +
+
+
+ {{template "shared/user/name" .}} +
+
+ {{$.locale.Tr "settings.blocked_since" (DateTime "short" .CreatedUnix) | Safe}} +
+
+
+
+ {{$.CsrfTokenHtml}} + + +
+
+
+ {{else}} +
+ {{$.locale.Tr "settings.blocked_users_none"}} +
+ {{end}} +
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 23fe5bda82..fafeaee3ec 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -40,17 +40,17 @@ -