-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
85 additions
and
46 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
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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% extends "./layout.html" %} | ||
{% block content %} | ||
<h1><div class="text-shadow">Strava</div></h1> | ||
{% if username != "zoffline" %} | ||
<h4 class="text-shadow">Logged in as {{ username }}</h4> | ||
{% endif %} | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<a href="{{ url_for('settings', username=username) }}" class="btn btn-sm btn-secondary">Back</a> | ||
{% if cid or cs %} | ||
<a href="/delete/strava_api.bin" class="btn btn-sm btn-danger">Remove credentials</a> | ||
{% endif %} | ||
{% if token %} | ||
<a href="/delete/strava_token.txt" class="btn btn-sm btn-danger">Remove authorization</a> | ||
{% elif cid and cs %} | ||
<a href="{{ url_for('strava_auth') }}" class="btn btn-sm btn-secondary">Authorize</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-sm-6 col-md-5 top-buffer"> | ||
<form id="strava" action="{{ url_for('strava', username=username) }}" method="post"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<label class="col-form-label col-form-label-sm text-shadow">Client ID</label> | ||
<input type="text" id="client_id" name="client_id" value="{{ cid }}" class="form-control form-control-sm"> | ||
</div> | ||
<div class="col-md-12"> | ||
<label class="col-form-label col-form-label-sm text-shadow">Client secret</label> | ||
<input type="text" id="client_secret" name="client_secret" value="{{ cs }}" class="form-control form-control-sm"> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12 top-buffer"> | ||
<input type="submit" value="Submit" class="btn btn-sm btn-light"> | ||
</div> | ||
</div> | ||
</form> | ||
{% with messages = get_flashed_messages() %} | ||
{% if messages %} | ||
<ul class="list-group top-buffer"> | ||
{% for message in messages %} | ||
<li class="list-group-item py-2"> | ||
<div class="text-shadow">{{ message }}</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endwith %} | ||
</div> | ||
</div> | ||
{% endblock %} |
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