From cd670577e56bf236559de9267d133980e205daf3 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 7 May 2019 12:56:57 +0200 Subject: [PATCH] gravatars: reduce the size of fonts inside the initials gravatar --- rhodecode/lib/helpers.py | 2 +- rhodecode/public/css/main.less | 5 + rhodecode/templates/files/base.mako | 16 +++ rhodecode/templates/files/files.mako | 113 +++++++++++++++---- rhodecode/templates/files/files_browser.mako | 13 ++- 5 files changed, 118 insertions(+), 31 deletions(-) diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py index aad2612d..d4c478bf 100644 --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -1196,7 +1196,7 @@ class InitialsGravatar(object): """.format( size=self.size, - f_size=self.size/1.85, # scale the text inside the box nicely + f_size=self.size/2.05, # scale the text inside the box nicely background=self.background, text_color=self.text_color, text=initials.upper(), diff --git a/rhodecode/public/css/main.less b/rhodecode/public/css/main.less index 11610869..108b457a 100644 --- a/rhodecode/public/css/main.less +++ b/rhodecode/public/css/main.less @@ -2187,6 +2187,11 @@ h3.files_location{ margin-right: @padding; } } + + .select-index-number { + margin: 0 0 0 20px; + color: @grey3; + } } .search_activate { diff --git a/rhodecode/templates/files/base.mako b/rhodecode/templates/files/base.mako index 7367c9a9..6c882e99 100644 --- a/rhodecode/templates/files/base.mako +++ b/rhodecode/templates/files/base.mako @@ -1,4 +1,11 @@ <%def name="refs(commit)"> + ## Build a cache of refs for selector + + %if commit.merge: ${_('merge')} @@ -10,6 +17,9 @@ ${h.shorter(book)} + %endfor %endif @@ -17,12 +27,18 @@ ${tag} + %endfor %if commit.branch: ${h.shorter(commit.branch)} + %endif diff --git a/rhodecode/templates/files/files.mako b/rhodecode/templates/files/files.mako index 8a45f9f3..0c3a4a3d 100644 --- a/rhodecode/templates/files/files.mako +++ b/rhodecode/templates/files/files.mako @@ -33,6 +33,8 @@