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

Commit

Permalink
Repoint star announcement to /on/npm/
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Jun 15, 2017
1 parent bf38cdb commit a7f62ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,20 @@ <h1><a href="/"><img src="{{ website.asset('gratipay.svg') }}"
{% block banner %}{% if banner %}<h1>{{ banner }}</h1>{% endif %}{% endblock %}
</div>

{% if page_id != 'npm' %}
<table id="notice">
<tr>
<td>&#x2605;</td>
<td>{{ _( "{nowrap}We have {a}integrated npm{_a} into Gratipay.{_nowrap}{_nowrap}"
, nowrap='<span class="nowrap">'|safe
, _nowrap='</span>'|safe
, a='<a href="https://gratipay.news/integrating-npm-39333109419d">'|safe
, a='<a href="/on/npm/">'|safe
, _a='</a>'|safe
) }}</td>
<td>&#x2605;</td>
</tr>
</table>
{% endif %}

<div id="main">
{% block main %}
Expand Down
4 changes: 2 additions & 2 deletions tests/py/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ def test_remove_notification(self):
alice.remove_notification('1234')
assert alice.notifications == ["abcd", "bcde"]

def test_blog_announcement(self):
assert 'integrating-npm-39333109419d">integrated' in self.client.GET('/').body
def test_star_announcement(self):
assert '/on/npm/">integrate' in self.client.GET('/').body

0 comments on commit a7f62ea

Please sign in to comment.