aboutsummaryrefslogtreecommitdiff
path: root/source/templates/management.html
blob: 5bc384391f4b2e8a23e74c52d9fd5be6f51da1b6 (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
52
53
54
55
## management.html
<%inherit file="base.html"/>
<div class="left inner">
    <h1>Add Feeds</h1>
    <form method=get action="/add_feed/">
        <input type="url" name="url" placeholder="URL of a site" maxlength=2048 autocomplete="off">
        <input type="submit" value="OK">
    </form>

    %if feeds:
        <h1>Delete Feeds</h1>
        <form method=get action="/remove_feed/">
            <select name="feed_id">
                %for feed in feeds:
                    <option value="${feed['feed_id']}">${feed['feed_title']}</option>
                %endfor
            </select>
            <input type="submit" value="OK">
        </form>

	<hr />

        <h1>Facts</h1>
        <ul>
	    <li>active e-mail notifications: <a href="/notifications/">${nb_mail_notifications}</a>;</li>
            <li>you like <a href="/favorites/">${nb_favorites}</a> article(s);</li>
            <li><a href="/statistics/">tag clouds</a>;</li>
            <li><a href="/inactives/">inactive feeds</a>.</li>
        </ul>
    %endif

    <hr />

    <h1>Database</h1>
    <p>${nb_articles} article(s) are stored in the database with <a href="/unread/">${nb_unread_articles} unread article(s)</a>.

    <form method=get action="/fetch/">
        <input type="submit" value="Fetch all feeds">
    </form>
    <form method=get action="/drop_base">
        <input type="submit" value="Delete all articles">
    </form>

    <hr />

    <h1>Export articles</h1>
    <form method=get action="/export/">
        <select name="export_method">
            <option value="export_html" selected='selected'>HTML (simple Webzine)</option>
            <option value="export_epub">ePub</option>
            <option value="export_pdf">PDF</option>
            <option value="export_txt">Text</option>
        </select>
        <input type="submit" value="Export">
    </form>
bgstack15