aboutsummaryrefslogtreecommitdiff
path: root/ui/html/pages/feed_index.tmpl.html
blob: 2450240e1ec3c56c50bc66b17a66d1f8bd836ea0 (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
{{define "title"}}RSS Feeds{{end}}
{{define "description"}}"where I aggregate all the stuff I follow"{{end}}

{{define "main"}}
    <div class="flex_between">
        <div class="topline">
            <h2>Feeds</h2>
            <p>Where I aggregate all the stuff I follow</p>
        </div>
        <div class="spacer"></div>
        {{if .IsAuth}}
            <a href="/logout" class="nav_tag right">Logout</a>
        {{else}}
            <a href="/login" class="nav_tag right">Login</a>
        {{end}}
    </div>
    {{if .IsAuth}}
        <div class="card">
            <form class="url_form center" action="/feeds/new" method="POST">
                <label for="name">Channel Name:</label>
                <input type="text" id="name" name="name">
                <label for="url">URL:</label>
                <input type="text" id="url" name="url">
                <label for="category">Category:</label>
                <select id="category" name="category">
                    <option value="Text">Text</option>
                    <option value="YouTube">YouTube</option>
                </select>
                <div class="right">
                    <input type="submit" value="Submit">
                </div>
            </form>
        </div>
    {{end}}
    {{range .Rows}}
        <div class="card">
            <div class="header">
                <h4><a href="/feed?id={{.Id}}">{{.Name}} - added by {{.User}}</a></h4>
            </div>
        </div>
    {{end}}
{{end}}