mirror of
https://github.com/zoffline/zwift-offline.git
synced 2026-08-02 08:57:57 -07:00
91 lines
3.9 KiB
HTML
91 lines
3.9 KiB
HTML
{% extends "./layout.html" %}
|
|
{% block content %}
|
|
<h1><div class="text-shadow">Zwift Launcher</div></h1>
|
|
{% if username %}
|
|
<h2 class="text-shadow">Logged in as {{ username }}</h2>
|
|
{% if restarting %}
|
|
<div class="row">
|
|
<div class="col-sm-6 col-md-5">
|
|
<p class="alert alert-info">Server is restarting in {{ restarting_in_minutes }} minutes</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<a href="{{ url_for('upload', username=username) }}" class="btn btn-sm btn-secondary">Profile</a>
|
|
<a href="{{ url_for('reset', username=username) }}" class="btn btn-sm btn-secondary">Change password</a>
|
|
<a href="{{ url_for('strava') }}" target="_blank" class="btn btn-sm btn-secondary">Strava</a>
|
|
<a href="{{ url_for('garmin', username=username) }}" class="btn btn-sm btn-secondary">Garmin</a>
|
|
{% if server_ip %}
|
|
<a href="{{ url_for('profile', username=username) }}" class="btn btn-sm btn-secondary">Get Zwift profile</a>
|
|
{% endif %}
|
|
<a href="{{ url_for('logout', username=username) }}" class="btn btn-sm btn-secondary">Logout</a>
|
|
{% if is_admin and not restarting %}
|
|
<a href="/restart" class="btn btn-sm btn-danger">Restart server</a>
|
|
{% elif is_admin %}
|
|
<a href="/cancelrestart" class="btn btn-sm btn-danger">Cancel restart</a>
|
|
{% endif %}
|
|
{% if is_admin %}
|
|
<a href="/reloadbots" class="btn btn-sm btn-warning">Reload bots</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
<div class="row">
|
|
<div class="col-sm-6 col-md-5">
|
|
<form method="POST" action="/start-zwift" class="top-buffer">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<label class="text-shadow">Select map (optional)</label>
|
|
<select name="map" class="form-control form-control-sm">
|
|
<option value="CALENDAR">Calendar ({{online.total}} online total)</option>
|
|
<option value="FRANCE">France ({{online.france}} online)</option>
|
|
<option value="INNSBRUCK">Innsbruck ({{online.innsbruck}} online)</option>
|
|
<option value="LONDON">London ({{online.london}} online)</option>
|
|
<option value="MAKURIISLANDS">Makuri Islands ({{online.makuriislands}} online)</option>
|
|
<option value="NEWYORK">New York ({{online.newyork}} online)</option>
|
|
<option value="PARIS">Paris ({{online.paris}} online)</option>
|
|
<option value="RICHMOND">Richmond ({{online.richmond}} online)</option>
|
|
<option value="WATOPIA">Watopia ({{online.watopia}} online)</option>
|
|
<option value="YORKSHIRE">Yorkshire ({{online.yorkshire}} online)</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 top-buffer">
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="checkbox" {{'checked' if enable_ghosts else ''}} id="enableghosts" name="enableghosts">
|
|
<label class="form-check-label text-shadow" for="enableghosts">
|
|
Enable ghosts
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 top-buffer">
|
|
<input type="submit" value="Start Zwift" 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">
|
|
<div class="text-shadow">{{ message }}</div>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endwith %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
{% block scripts %}
|
|
<script>
|
|
setTimeout(function() {
|
|
window.location.reload();
|
|
}, 20000);
|
|
</script>
|
|
{% endblock %}
|