From 08aa5309fd66b39694556a374fa0f72efb1e3a50 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 29 May 2009 22:38:54 -0700 Subject: [PATCH] Updated toolbar arrow padding, a regex, and removed the logout button --- r2/r2/lib/pages/pages.py | 2 +- r2/r2/public/static/css/reddit.css | 2 +- r2/r2/templates/frametoolbar.html | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/r2/r2/lib/pages/pages.py b/r2/r2/lib/pages/pages.py index 9fcf17fdf..f48c0c925 100644 --- a/r2/r2/lib/pages/pages.py +++ b/r2/r2/lib/pages/pages.py @@ -913,7 +913,7 @@ class Frame(Wrapped): Wrapped.__init__(self, url = url, title = title, fullname = fullname) -dorks_re = re.compile(r"https?://?([-\w.]*\.)?digg\.com/\w+$") +dorks_re = re.compile(r"https?://?([-\w.]*\.)?digg\.com/\w+\.\w+(/|$)") class FrameToolbar(Wrapped): """The reddit voting toolbar used together with Frame.""" extension_handling = False diff --git a/r2/r2/public/static/css/reddit.css b/r2/r2/public/static/css/reddit.css index e64bc1074..0ec9cd882 100644 --- a/r2/r2/public/static/css/reddit.css +++ b/r2/r2/public/static/css/reddit.css @@ -1528,7 +1528,7 @@ textarea.gray { color: gray; } width: auto; margin: 0px; background-position: left center; - padding-left: 18px; + padding-left: 16px; } .toolbar .arrow.upmod { background-image: url(/static/aminiupmod.gif); } diff --git a/r2/r2/templates/frametoolbar.html b/r2/r2/templates/frametoolbar.html index ef90eaae3..c27e59ab5 100644 --- a/r2/r2/templates/frametoolbar.html +++ b/r2/r2/templates/frametoolbar.html @@ -74,7 +74,6 @@ ${c.user.name} - ${logout(top=True,dest=thing.tblink,a_class="clickable")} %elif thing.link: ${_("login / register")}