blob: 4a124a026771c49f1bfe5daaa35b82f575e74634 (
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
46
47
48
49
50
51
|
{% extends "layout.html" %}
{% block content %}
<div class="container">
<div class="jumbotron">
<h1>{{ _('Your subscriptions') }}</h1>
<p>{{ _('You are subscribed to') }} {{ nb_feeds }} <a href="/feeds">{{ _('feeds') }}</a>. {{ _('Add a') }} <a href="/create_feed/">{{ _('feed') }}</a>.</p>
<p>{{ nb_articles }} {{ _('articles are stored in the database with') }} {{ nb_unread_articles }} <a href="/unread/">{{ _('unread articles') }}</a>.</p>
{% if not_on_heroku %}
<a href="/index_database/" class="btn btn-default">{{ _('Index database') }}</a>
{% endif %}
</div>
<div class="jumbotron">
<h1>{{ _('Your Profile') }}</h1>
<div class="row">
<div class="col-md-6">
<p>{{ _('Update your') }} <a href="/profile/">{{ _('profile') }}</a>.</p>
<p>{{ _('Member since') }} {{ user.date_created | datetime }}.</p>
<p>{{ _('Last seen:') }} {{ user.last_seen | datetime }}.</p>
</div>
<div class="col-md-6">
<img src="{{ user.email | gravatar }}" />
</div>
</div>
<div class="row">
<div class="col-md-12">
<a href="/delete_account/" class="btn btn-default" onclick="return confirm('{{ _('You are going to delete your account.') }}');">{{ _('Delete your account') }}</a>
</div>
</div>
</div>
<div class="jumbotron">
<h1 id="import-opml">{{ _('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="/export_opml/" class="btn btn-default">{{ _('Export feeds to OPML') }}</a>
<h1>{{ _('Data liberation') }}</h1>
<form action="" method="post" id="formImportJSON" enctype="multipart/form-data">
<span class="btn btn-default btn-file">{{ _('Import 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="/export/?format=JSON" class="btn btn-default">Export account to JSON</a>
</div>
<div class="jumbotron">
<h1>{{ _('Export articles') }}</h1>
<a href="/export/?format=HTML" class="btn btn-default">HTML</a>
</div>
</div><!-- /.container -->
{% endblock %}
|