changeset 4793:488a411b989b

admin: drop unnecessary use of h.email_or_none when we already have an email address
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 26 Jan 2015 13:10:24 -0800
parents 923037eb67d4
children e41cf0859636
files kallithea/templates/admin/gists/edit.html kallithea/templates/admin/gists/index.html kallithea/templates/admin/gists/new.html kallithea/templates/admin/notifications/notifications_data.html kallithea/templates/admin/notifications/show_notification.html
diffstat 5 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/admin/gists/edit.html	Sat Jan 24 21:17:39 2015 +0100
+++ b/kallithea/templates/admin/gists/edit.html	Mon Jan 26 13:10:24 2015 -0800
@@ -50,7 +50,7 @@
           ${h.form(h.url('edit_gist', gist_id=c.gist.gist_access_id), method='post', id='eform')}
             <div>
                 <div class="gravatar">
-                   <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(c.authuser.full_contact),32)}"/>
+                   <img alt="gravatar" src="${h.gravatar_url(c.authuser.email,32)}"/>
                 </div>
                 <input type="hidden" value="${c.file_changeset.raw_id}" name="parent_hash">
                 <textarea style="resize:vertical; width:400px;border: 1px solid #ccc;border-radius: 3px;"
--- a/kallithea/templates/admin/gists/index.html	Sat Jan 24 21:17:39 2015 +0100
+++ b/kallithea/templates/admin/gists/index.html	Mon Jan 26 13:10:24 2015 -0800
@@ -47,7 +47,7 @@
           <div class="gist-item" style="padding:10px 20px 10px 15px">
 
             <div class="gravatar">
-               <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(gist.owner.full_contact),28)}"/>
+               <img alt="gravatar" src="${h.gravatar_url(gist.owner.email,28)}"/>
             </div>
             <div title="${gist.owner.full_contact}" class="user" style="font-size: 16px">
                 <b>${h.person(gist.owner.full_contact)}</b> /
--- a/kallithea/templates/admin/gists/new.html	Sat Jan 24 21:17:39 2015 +0100
+++ b/kallithea/templates/admin/gists/new.html	Mon Jan 26 13:10:24 2015 -0800
@@ -37,7 +37,7 @@
           ${h.form(h.url('gists'), method='post',id='eform')}
             <div>
                 <div class="gravatar">
-                   <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(c.authuser.full_contact),32)}"/>
+                   <img alt="gravatar" src="${h.gravatar_url(c.authuser.email,32)}"/>
                 </div>
                 <textarea style="resize:vertical; width:400px;border: 1px solid #ccc;border-radius: 3px;" id="description" name="description" placeholder="${_('Gist description ...')}"></textarea>
                 <div style="padding:0px 0px 0px 42px">
--- a/kallithea/templates/admin/notifications/notifications_data.html	Sat Jan 24 21:17:39 2015 +0100
+++ b/kallithea/templates/admin/notifications/notifications_data.html	Mon Jan 26 13:10:24 2015 -0800
@@ -10,7 +10,7 @@
   <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}">
     <div class="notification-header">
       <div class="gravatar">
-          <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(notification.notification.created_by_user.email),24)}"/>
+          <img alt="gravatar" src="${h.gravatar_url(notification.notification.created_by_user.email,24)}"/>
       </div>
       <div class="desc ${unread(notification.read)}">
       <a href="${url('notification', notification_id=notification.notification.notification_id)}">${notification.notification.description}</a>
--- a/kallithea/templates/admin/notifications/show_notification.html	Sat Jan 24 21:17:39 2015 +0100
+++ b/kallithea/templates/admin/notifications/show_notification.html	Mon Jan 26 13:10:24 2015 -0800
@@ -28,7 +28,7 @@
       <div id="notification_${c.notification.notification_id}">
         <div class="notification-header">
           <div class="gravatar">
-              <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(c.notification.created_by_user.email),24)}"/>
+              <img alt="gravatar" src="${h.gravatar_url(c.notification.created_by_user.email,24)}"/>
           </div>
           <div class="desc">
               ${c.notification.description}