diff --git a/r2/r2/public/static/css/reddit.css b/r2/r2/public/static/css/reddit.css index fbaca04ac..b3a93be7a 100755 --- a/r2/r2/public/static/css/reddit.css +++ b/r2/r2/public/static/css/reddit.css @@ -5494,9 +5494,7 @@ tr.gold-accent + tr > td { } .oauth2-authorize h1 a { - display: block; font-weight: bold; - font-size: 1.5em; letter-spacing: -.04em; } diff --git a/r2/r2/templates/clientinfobar.html b/r2/r2/templates/clientinfobar.html index cd0e713a6..efc86f7c6 100644 --- a/r2/r2/templates/clientinfobar.html +++ b/r2/r2/templates/clientinfobar.html @@ -25,20 +25,24 @@ from r2.lib.template_helpers import s3_https_if_secure, static %> <%namespace file="utils.html" import="img_link"/> +<%def name="app_link(app)" buffered="True"> + + %if app.about_url: + ${app.name} + %else: + ${app.name} + %endif + +%def> <% icon_url = thing.client.icon_url or static('defaultapp.png') - if thing.client.about_url: - app = ' %s' % (thing.client.about_url, - websafe(thing.client.name)) - else: - app = ' %s' % websafe(thing.client.name) %>
diff --git a/r2/r2/templates/oauth2authorization.html b/r2/r2/templates/oauth2authorization.html index adfdfd21f..eab46596a 100644 --- a/r2/r2/templates/oauth2authorization.html +++ b/r2/r2/templates/oauth2authorization.html @@ -25,13 +25,15 @@ from r2.models import OAuth2AccessToken from r2.lib.template_helpers import static, s3_https_if_secure %> +<%namespace file="clientinfobar.html" import="app_link" /> <%namespace file="prefapps.html" import="scope_details" /> -<%namespace file="utils.html" import="_md" /> <% if thing.client.icon_url: icon = s3_https_if_secure(thing.client.icon_url) else: icon = static("defaultapp.png") + app_name = ( + " %s " % websafe(thing.client.name)) %>