-
-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
send tip from github username, not just 'full name'
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,11 @@ <h1>{% trans "Send Tip." %}</h1> | |
{% trans "To Github Username" %}: | ||
<input type="text" placeholder="@username" id="username" value="" style="width: 400px; margin-left: auto; margin-right: auto;"> | ||
</div> | ||
<div> | ||
{% trans "From Github Username" %} (<a href="{% url 'social:begin' 'github' %}?next=/tip">{% trans "Login" %}</a>) | ||
<input type="text" placeholder="@username" id="fromName" value="{% if user.is_authenticated %}{{ user }}{% endif %}" style="width: 400px; margin-left: auto; margin-right: auto; background-color: #eee;" disabled="disabled" > | ||
</div> | ||
|
||
<div id="advanced_toggle"> | ||
<a onClick="advancedToggle()" >{% trans "Advanced" %} >></a> | ||
</div> | ||
|
@@ -64,10 +69,6 @@ <h1>{% trans "Send Tip." %}</h1> | |
{% trans "To Email address" %} ({% trans "optional" %}): | ||
<input type="text" placeholder="[email protected]" id="email" value="" style="width: 400px; margin-left: auto; margin-right: auto;"> | ||
</div> | ||
<div> | ||
{% trans "From Name" %} ({% trans "optional" %}): | ||
<input type="text" placeholder="Bobby Tables" id="fromName" value="{% if from_handle %}{{ from_handle }}{% endif %}" style="width: 400px; margin-left: auto; margin-right: auto;"> | ||
</div> | ||
<div> | ||
{% trans "From Email" %} ({% trans "optional" %}): | ||
<input type="text" placeholder="[email protected]" id="fromEmail" value="{% if from_email %}{{ from_email }}{% endif %}" style="width: 400px; margin-left: auto; margin-right: auto;"> | ||
|