aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/management.html
blob: 375b8f372049e15f5d5359d1b91b60d4f626263d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% extends "layout.html" %}
{% block content %}
<div class="container">
    <div class="well">
        <div class="row">
            <div class="col-md-6">
                <h1>{{ _('Your subscriptions') }}</h1>
                <p>{{ _('You are subscribed to') }} {{ nb_feeds }} <a href="/feeds">{{ _('feeds') }}</a>. <a href="{{ url_for("feed.form") }}">{{ _('Add') }}</a> {{ _('a feed') }}.</p>
                <p>{{ nb_articles }} {{ _('articles are stored in the database with') }} {{ nb_unread_articles }} {{ _('unread articles') }}.</p>
                <p>{{ _('You have') }} {{ nb_categories }} <a href="{{ url_for("categories.list_")}}">{{ _('categories') }}</a>.</p>
                <a href="{{ url_for("articles.expire", weeks=10) }}" class="btn btn-default" onclick="return confirm('{{ _('You are going to delete old articles.') }}');">{{ _('Delete articles older than 10 weeks') }}</a>
            </div>
            <div class="col-md-6">
                <h1>{{ _('Your bookmarks') }}</h1>
                <p>{{ _('You have') }} {{ nb_bookmarks }} <a href="{{ url_for("bookmarks.list_")}}">{{ _('bookmarks') }}</a>.</p>
                <a href="{{ url_for("bookmarks.delete_all") }}" class="btn btn-default" onclick="return confirm('{{ _('You are going to delete all bookmarks.') }}');">{{ _('Delete all bookmarks') }}</a>
            </div>
        </div>
    </div>
    <div class="well">
        <div class="row">
            <div class="col-md-6">
                <h1>{{ _('Data liberation') }}</h1>
                <form action="" method="post" id="formImportJSON" enctype="multipart/form-data">
                    <span class="btn btn-default btn-file">{{ _('Import a Newspipe account') }} (<span class="text-info">*.json</span>)<input type="file" name="jsonfile" /></span>
                    <button class="btn btn-default" type="submit">OK</button>
                </form>
                <br />
                <a href="{{ url_for('articles.export', format='JSON') }}" class="btn btn-default">{{ _('Export your Newspipe account to JSON') }}</a>
                <br /><br />
                <a href="{{ url_for('bookmarks.export') }}" class="btn btn-default">{{ _('Export your bookmarks to JSON') }}</a>
            </div>
            <div class="col-md-6">
                <h1 id="import">{{ _('OPML import/export') }}</h1>
                <form action="" method="post" id="formImportOPML" enctype="multipart/form-data">
                    <span class="btn btn-default btn-file">{{ _('Batch import feeds from OPML') }} (<span class="text-info">*.xml {{ _('or') }} *.opml</span>)<input type="file" name="opmlfile" /></span>
                    <button class="btn btn-default" type="submit">OK</button>
                </form>
                <br />
                <a href="{{ url_for('articles.export', format='OPML') }}" class="btn btn-default">{{ _('Export your feeds to OPML') }}</a>
            </div>
        </div>
    </div>
</div><!-- /.container -->
{% endblock %}
bgstack15