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

Commit

Permalink
Adds call to action with "Give to tippee" when tip == 0
Browse files Browse the repository at this point in the history
The sole concern I have here is with long usernames overflowing the
the column. It flows to a second line if the name is up to ~20 chars,
but will look ugly past that.
  • Loading branch information
colindean committed Jan 9, 2015
1 parent 3ea7cda commit 927bda5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/your-tip.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ <h2>Your Tip</h2>
<div class="view">
<span class="amount">{{ format_currency(tip, 'USD') }}</span>
<div class="per-week">{{ _("per week") }}</div>
<button class="edit {{ 'not-zero' if tip > 0 }}">{{ _("Edit") }}</button>
<button class="edit {{ 'not-zero' if tip > 0 }}">
{{ _("Edit") if tip > 0 else _("Give to {0}", tippee) }}
</button>
</div>
<form class="edit" action="/{{ tippee }}/tip.json">
$
Expand Down

0 comments on commit 927bda5

Please sign in to comment.