Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Lightly style the email list
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Feb 9, 2017
1 parent 3586969 commit 455f06c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions scss/pages/package.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#package {
.emails {
margin: 1em 0;
li {
list-style: none;
}
}
}
1 change: 1 addition & 0 deletions www/assets/gratipay.css.spt
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
7 changes: 3 additions & 4 deletions www/on/npm/%package/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}

Expand Down Expand Up @@ -52,11 +51,11 @@ nemails = len(package.emails)
, a=('<a href="https://registry.npmjs.com/' + package.name + '">')|safe
, _a='</a>'|safe
) }}
{% if nemails == 0 %}
{% if len(package.emails) == 0 %}
<p class="sorry">{{ _("Sorry, we didn't find any email addresses on file.") }}</p>
{% else %}
<input type="hidden" name="package_id" value="{{ package.id }}">
<ul>
<ul class="emails">
{% for i, email in enumerate(package.emails) %}
<li><input type="radio" name="email" value="{{ email }}" id="email-{{i}}"
{% if i == 0 %}checked{% endif %}>
Expand Down

0 comments on commit 455f06c

Please sign in to comment.