Skip to content

Commit

Permalink
Link to home page to test writing to contacts
Browse files Browse the repository at this point in the history
If you have contactable people — link to the front page so you can test
out the site.
  • Loading branch information
tmtmtmtm committed Apr 15, 2015
1 parent 554a208 commit eacf647
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions nuntium/templates/nuntium/profiles/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,28 @@ <h2>{% trans "Welcome" %}</h2>
{% if writeitinstance.persons_with_contacts.count %}
{% blocktrans count contactable_count=writeitinstance.persons_with_contacts.count %}
You've got only <a href="{{ url_recipients }}">one contactable recipient</a> in your database.
But that‘s enough to test out the process of writing to them!
{% plural %}
You've got <a href="{{ url_recipients }}">{{ contactable_count }} contactable recipients</a> in your database.
That‘s great — now you can test out the process of writing to them!
{% endblocktrans %}
{% trans "That‘s great — now you can test writing to them." %}

{% url 'instance_detail' as site_root %}
{% if writeitinstance.config.testing_mode %}
{% blocktrans %}Try it out at <a href="{{ site_root }}">your test site</a>
don't worry: any emails you send will be sent to <b>you</b>, not
the politicians.{% endblocktrans %}
{% else %}
{% blocktrans %}Try it out at <a href="{{ site_root }}">your live site</a>
but be careful: now that you're no longer in Test Mode, don‘t
forget that any messages you send will be sent to the politicans,
and will be live on the internet, for ever.{% endblocktrans %}
{% endif %}

{% elif writeitinstance.persons.count %}
{% blocktrans count all_contacts_count=writeitinstance.persons.count %}
We loaded {{ all_contacts_count }} person from your
PopIt source — but we couldn‘t detect their email addresss.
We loaded one person from your PopIt source — but we couldn‘t
detect their email addresss.
{% plural %}
We've loaded {{ all_contacts_count }} people from your
PopIt source — but we couldn‘t detect email addresses for them.
Expand Down

0 comments on commit eacf647

Please sign in to comment.