From 68826e8ee48d6041e2c2b518cf0132f4351cfc6b Mon Sep 17 00:00:00 2001 From: ketralnis Date: Fri, 29 May 2009 15:25:50 -0700 Subject: [PATCH] Some minor toolbar usability changes --- r2/r2/controllers/toolbar.py | 2 +- r2/r2/public/static/css/reddit.css | 6 +++++- r2/r2/templates/frametoolbar.html | 4 ++-- r2/r2/templates/linkinfobar.html | 6 ++++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/r2/r2/controllers/toolbar.py b/r2/r2/controllers/toolbar.py index b452a9d2a..a78dbd5db 100644 --- a/r2/r2/controllers/toolbar.py +++ b/r2/r2/controllers/toolbar.py @@ -68,7 +68,7 @@ def force_html(): c.content_type = 'text/html; charset=UTF-8' def auto_expand_panel(link): - if not link.num_comments: + if not link.num_comments or link.is_self: return False else: return c.user.pref_frame_commentspanel diff --git a/r2/r2/public/static/css/reddit.css b/r2/r2/public/static/css/reddit.css index 535976118..e64bc1074 100644 --- a/r2/r2/public/static/css/reddit.css +++ b/r2/r2/public/static/css/reddit.css @@ -1488,7 +1488,7 @@ textarea.gray { color: gray; } .toolbar a, .toolbar .clickable { cursor: pointer; color: #336699; - text-decoration: none !important; + text-decoration: none; } .toolbar .clickable:active, .pushed-button { @@ -1515,6 +1515,10 @@ textarea.gray { color: gray; } padding-left: 20px; color: black; font-style: italic; + cursor: pointer; +} +.toolbar .title:hover { + text-decoration: underline; } .toolbar .controls { float: right; diff --git a/r2/r2/templates/frametoolbar.html b/r2/r2/templates/frametoolbar.html index 61fc3fa8c..ef90eaae3 100644 --- a/r2/r2/templates/frametoolbar.html +++ b/r2/r2/templates/frametoolbar.html @@ -90,8 +90,8 @@ ${_('turn off the toolbar')} + alt="${_('visit this link without the toolbar')}" + title="${_('visit this link without the toolbar')}" /> diff --git a/r2/r2/templates/linkinfobar.html b/r2/r2/templates/linkinfobar.html index f8ca8184e..abd96cc72 100644 --- a/r2/r2/templates/linkinfobar.html +++ b/r2/r2/templates/linkinfobar.html @@ -23,8 +23,10 @@
- - + %if not thing.a.is_self: + + + %endif
${_("toolbar link")}${thing.a.tblink}
${_("toolbar link")}${thing.a.tblink}
${_("submitted on")} ${thing.a._date.strftime(thing.datefmt)}
${ungettext('point', 'points', 5)}