From c6f4ccd10b0ea43ef3e0b8d5579117fc4d27b417 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Wed, 16 Dec 2015 00:28:23 -0500 Subject: [PATCH 1/3] Add author_email to Wiki.get_history results --- realms/modules/wiki/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/realms/modules/wiki/models.py b/realms/modules/wiki/models.py index d50d755..6d41c53 100644 --- a/realms/modules/wiki/models.py +++ b/realms/modules/wiki/models.py @@ -289,9 +289,10 @@ class Wiki(HookMixin): change_type = change.type elif change.new.path == file_path: change_type = change.type - author_name, author_email = entry.commit.author.split('<') + author_name, author_email = entry.commit.author.rstrip('>').split('<') versions.append(dict( author=author_name.strip(), + author_email=author_email, time=entry.commit.author_time, message=entry.commit.message, sha=entry.commit.id, From c2cc26e086efe2db870c4db3b797aed29935b06c Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Wed, 16 Dec 2015 00:29:55 -0500 Subject: [PATCH 2/3] Switch to generic avatar class styling --- realms/static/css/style.css | 4 +--- realms/templates/layout.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/realms/static/css/style.css b/realms/static/css/style.css index fffdea6..f4dc59e 100644 --- a/realms/static/css/style.css +++ b/realms/static/css/style.css @@ -83,9 +83,7 @@ float: right; } -.user-avatar a img { - width: 24px; - height: 24px; +.avatar { -webkit-box-shadow: 0 1px 3px #1e1e1e; -moz-box-shadow: 0 1px 3px #1e1e1e; box-shadow: 0 1px 3px #1e1e1e; diff --git a/realms/templates/layout.html b/realms/templates/layout.html index aa8a41a..d80b94c 100644 --- a/realms/templates/layout.html +++ b/realms/templates/layout.html @@ -62,7 +62,7 @@