Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Added links to both the app and the Heroku dashboard about the app
Browse files Browse the repository at this point in the history
  • Loading branch information
migurski committed Feb 5, 2015
1 parent a33be37 commit 13310eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
heroku_app_setup_url = 'https://api.heroku.com/app-setups'
heroku_app_setups_template = 'https://api.heroku.com/app-setups/{0}'
heroku_app_activity_template = 'https://dashboard.heroku.com/apps/{0}/activity'
heroku_app_direct_template = 'https://{0}.herokuapp.com'

class SetupError (Exception):
pass
Expand Down Expand Up @@ -171,7 +172,9 @@ def callback_heroku():
app_name = create_app(access['access_token'], url)

return render_template('done.html', style_base=get_style_base(request),
heroku_url=heroku_app_activity_template.format(app_name))
settings_url=heroku_app_activity_template.format(app_name),
application_url=heroku_app_direct_template.format(app_name),
app_name=app_name)

return redirect(heroku_app_activity_template.format(app_name))

Expand Down
3 changes: 2 additions & 1 deletion templates/done.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ <h2>Table of Contents</h2>

<h2>Setup complete!</h2>
<p>Yay, you're all set up!</p>
<p>You can view your dashboard at this url: <a href="{{ heroku_url }}">{{ heroku_url }}</a></p>
<p>You can view your dashboard at this url: <a href="{{ application_url }}">{{ application_url }}</a></p>
<p>You can change the settings, including the auto-generated name <q>{{ app_name }}</q> at this url: <a href="{{ settings_url }}">{{ settings_url }}</a></p>
<p>We're interested in knowing who's using this so we can notify you of upgrades and possibly check in very occasionally with a few questions. Could you please tell us a little bit about yourself? (Of course we'll never share this information with anyone.)</p>

<form action="https://docs.google.com/forms/d/10vKzY6qQZu1bLFl98xr6FecgwoFmRfBQVAb5tSOysuM/formResponse" method="POST">
Expand Down

0 comments on commit 13310eb

Please sign in to comment.