2020-07-27 18:30:01 +05:30
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<br>
|
2020-09-08 03:23:11 +05:30
|
|
|
<div class="ui center aligned text container">
|
2020-07-27 18:30:01 +05:30
|
|
|
<h2 class="ui icon header">
|
|
|
|
<i class="settings icon"></i>
|
|
|
|
<div class="content">
|
|
|
|
Settings
|
|
|
|
<div class="sub header">Manage your settings.</div>
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
</div>
|
2020-08-24 19:01:56 +05:30
|
|
|
|
2020-09-08 03:23:11 +05:30
|
|
|
<h2 class="ui centered header">
|
|
|
|
Imports can take up to 2 minutes.
|
|
|
|
<div class="sub header">You can still use Yotter.</div>
|
|
|
|
</h2>
|
2020-08-24 19:01:56 +05:30
|
|
|
|
2020-09-08 03:23:11 +05:30
|
|
|
<div class="ui center aligned text container">
|
|
|
|
<div class="ui segments">
|
|
|
|
<div class="ui segment">
|
|
|
|
<div class="item">
|
|
|
|
<i class="large download middle aligned icon"></i>
|
|
|
|
<div class="content">
|
|
|
|
<div class="description"><h5 class="ui header">Export data into JSON file</h5></div>
|
|
|
|
<a href="{{ url_for('export') }}" class="header">Export Data</a>
|
|
|
|
</div>
|
2020-07-27 18:30:01 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-08 03:23:11 +05:30
|
|
|
<div class="ui blue segment">
|
2020-08-24 16:04:17 +05:30
|
|
|
<i class="large upload middle aligned icon"></i>
|
|
|
|
<div class="content">
|
2020-09-08 03:23:11 +05:30
|
|
|
<div class="description"><h5 class="ui header">Import suscription data</h5></div>
|
2020-08-24 16:04:17 +05:30
|
|
|
<form action = "{{ url_for('importdata') }}" method = "POST" enctype = "multipart/form-data">
|
|
|
|
<input type = "file" name = "file"/>
|
|
|
|
<input type = "submit"/>
|
2020-09-04 18:12:35 +05:30
|
|
|
<br>
|
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="import_format" id="yotter" value="yotter" checked> Yotter
|
|
|
|
</label>
|
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="import_format" id="newpipe" value="newpipe"> NewPipe
|
|
|
|
</label>
|
2020-09-04 18:27:45 +05:30
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="import_format" id="youtube" value="youtube"> Youtube
|
|
|
|
</label>
|
2020-09-04 18:35:32 +05:30
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="import_format" id="freetube" value="freetube"> FreeTube
|
|
|
|
</label>
|
2020-09-04 18:12:35 +05:30
|
|
|
</form>
|
2020-08-24 16:04:17 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-08 03:23:11 +05:30
|
|
|
</div>
|
2020-08-24 16:04:17 +05:30
|
|
|
|
2020-09-05 15:29:04 +05:30
|
|
|
<!--<div class="item">
|
2020-07-27 18:30:01 +05:30
|
|
|
<i class="large moon middle aligned icon"></i>
|
|
|
|
<div class="content">
|
|
|
|
<div class="ui slider checkbox">
|
|
|
|
<input type="checkbox" name="newsletter">
|
|
|
|
<label>Dark mode</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
|
|
|
<i class="large weight middle aligned icon"></i>
|
|
|
|
<div class="content">
|
|
|
|
<div class="ui slider checkbox">
|
|
|
|
<input type="checkbox" name="newsletter">
|
|
|
|
<label>Disable images</label>
|
|
|
|
<div class="description">Show links instead</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-05 15:29:04 +05:30
|
|
|
</div>-->
|
2020-09-05 16:55:45 +05:30
|
|
|
|
2020-09-06 13:57:14 +05:30
|
|
|
<div class="ui segment">
|
|
|
|
<label for="toggle">I want to delete my account.</label>
|
|
|
|
<input type="checkbox" id="toggle">
|
|
|
|
<div class="control-me"><a href="/deleteme"><button class="ui red button">Delete account</button></a></div>
|
|
|
|
</div>
|
|
|
|
|
2020-09-05 16:55:45 +05:30
|
|
|
<!-- INSTANCE INFO -->
|
2020-09-05 16:58:57 +05:30
|
|
|
<h1 class="ui header">{{info.serverName}} Info</h1>
|
2020-09-05 16:55:45 +05:30
|
|
|
<div class="ui segments">
|
|
|
|
<div class="ui segment">
|
|
|
|
<p><b>Total users:</b> {{info.totalUsers}}</p>
|
|
|
|
</div>
|
2020-09-08 03:02:06 +05:30
|
|
|
<div class="ui segment">
|
|
|
|
<p><b>Active users:</b> {{info.active}}</p>
|
|
|
|
</div>
|
2020-09-05 16:55:45 +05:30
|
|
|
<div class="ui segment">
|
|
|
|
<p><b>Server location:</b> {{info.location}}</p>
|
|
|
|
</div>
|
2020-09-08 03:23:11 +05:30
|
|
|
<div class="ui segment">
|
|
|
|
<p><a href="https://github.com/pluja/Yotter#donate">Consider making a donation</a></p>
|
|
|
|
</div>
|
2020-07-27 18:30:01 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-05 15:29:04 +05:30
|
|
|
{% endblock %}
|