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

Commit

Permalink
Show Team URL on success in addition to review URL
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Sep 10, 2015
1 parent d502897 commit 8113217
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions js/gratipay/new_team.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Gratipay.new_team.submitForm = function (e) {
contentType: false,
dataType: 'json',
success: function (d) {
$('a.team_url').attr('href', d.team_url).text(d.team_url);
$('a.review_url').attr('href', d.review_url).text(d.review_url);
$('form').slideUp(500, function() {
$('.application-complete').slideDown(250);
Expand Down
6 changes: 4 additions & 2 deletions www/new.spt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ still_migrating = delta > 0
}
</style>
<div class="application-complete" style="display: none;">
<p>{{ _("Thanks! Your public review ticket is:") }}</p>
<p>{{ _("Thanks! Your public team page is:") }}</p>
<p><a href="" class="team_url"></a></p>
<p>{{ _("And your public review ticket is:") }}</p>
<p><a href="" class="review_url"></a></p>
<p>{{ _( "You can track and participate in our review process there. We will send a notification to {email} when we finish our review."
<p>{{ _( "You can watch and participate in our review process there. We will send a notification to {email} when we finish our review."
, email=user.participant.email_address
) }}</p>
<p>{{ _("Thanks for applying!") }}</p>
Expand Down
4 changes: 3 additions & 1 deletion www/teams/create.json.spt
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,7 @@ if request.method == 'POST':
review_url = team.create_github_review_issue()
team.set_review_url(review_url)

team_url = website.env.base_url + '/{}/'.format(team.slug)

[---] application/json via json_dump
{'review_url': review_url}
{'review_url': review_url, 'team_url': team_url}

0 comments on commit 8113217

Please sign in to comment.