]> git.ipfire.org Git - ipfire.org.git/commitdiff
talk: Properly size all icons
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Oct 2018 11:39:34 +0000 (12:39 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Oct 2018 11:39:34 +0000 (12:39 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/accounts.py
src/templates/talk/modules/accounts-list.html

index 1e2f629b664a724dd673d32b86ddbcdad3bb24c3..4d2171235d2f1ac5a84ba99cc2d9045b1a242ba2 100644 (file)
@@ -327,11 +327,11 @@ class Account(Object):
 
        def avatar_url(self, size=None):
                if self.backend.debug:
-                       hostname = "accounts.dev.ipfire.org"
+                       hostname = "http://accounts.dev.ipfire.org"
                else:
-                       hostname = "accounts.ipfire.org"
+                       hostname = "https://accounts.ipfire.org"
 
-               url = "https://%s/avatar/%s.jpg" % (hostname, self.uid)
+               url = "%s/avatar/%s.jpg" % (hostname, self.uid)
 
                if size:
                        url += "?size=%s" % size
index 84c34f129292664a0717ba048971332b5fa7b4cc..0c8fe03551f693991847bcea77c16e988686d5f3 100644 (file)
@@ -5,7 +5,7 @@
                                <div class="card">
                                        <div class="card-body">
                                                <h6 class="card-title mb-0">
-                                                       <img class="img-fluid rounded-circle" src="{{ account.avatar_url(23) }}" alt="{{ account }}" />
+                                                       <img class="img-fluid rounded-circle" src="{{ account.avatar_url(64) }}" alt="{{ account }}" style="height: 24px" />
 
                                                        <a href="/users/{{ account.uid }}">{{ account }}</a>
                                                </h6>