From 455f06c67e56027839582c62ceeca8bab12b5351 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Thu, 9 Feb 2017 08:53:00 -0500 Subject: [PATCH] Lightly style the email list --- scss/pages/package.scss | 8 ++++++++ www/assets/gratipay.css.spt | 1 + www/on/npm/%package/index.html.spt | 7 +++---- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 scss/pages/package.scss diff --git a/scss/pages/package.scss b/scss/pages/package.scss new file mode 100644 index 0000000000..d63f050ac8 --- /dev/null +++ b/scss/pages/package.scss @@ -0,0 +1,8 @@ +#package { + .emails { + margin: 1em 0; + li { + list-style: none; + } + } +} diff --git a/www/assets/gratipay.css.spt b/www/assets/gratipay.css.spt index 71765ac61d..cfe1d38b6b 100644 --- a/www/assets/gratipay.css.spt +++ b/www/assets/gratipay.css.spt @@ -64,6 +64,7 @@ @import "scss/pages/history"; @import "scss/pages/identities"; @import "scss/pages/team"; +@import "scss/pages/package"; @import "scss/pages/profile-edit"; @import "scss/pages/giving"; @import "scss/pages/settings"; diff --git a/www/on/npm/%package/index.html.spt b/www/on/npm/%package/index.html.spt index 909fb16051..327377bb7b 100644 --- a/www/on/npm/%package/index.html.spt +++ b/www/on/npm/%package/index.html.spt @@ -9,10 +9,9 @@ package = Package.from_names('npm', package_name) if package is None: raise Response(404) banner = package_name -page_id = "on-npm-foo" +page_id = "package" suppress_sidebar = True url = 'https://npmjs.com/package/' + package.name -nemails = len(package.emails) [---] {% extends "templates/base.html" %} @@ -52,11 +51,11 @@ nemails = len(package.emails) , a=('')|safe , _a=''|safe ) }} - {% if nemails == 0 %} + {% if len(package.emails) == 0 %}

{{ _("Sorry, we didn't find any email addresses on file.") }}

{% else %} -