aboutsummaryrefslogtreecommitdiff
path: root/ui/html/pages
diff options
context:
space:
mode:
Diffstat (limited to 'ui/html/pages')
-rw-r--r--ui/html/pages/feed.tmpl.html10
-rw-r--r--ui/html/pages/feed_index.tmpl.html9
-rw-r--r--ui/html/pages/video_feed.tmpl.html15
3 files changed, 26 insertions, 8 deletions
diff --git a/ui/html/pages/feed.tmpl.html b/ui/html/pages/feed.tmpl.html
index 83332f2..bcf0033 100644
--- a/ui/html/pages/feed.tmpl.html
+++ b/ui/html/pages/feed.tmpl.html
@@ -1,15 +1,13 @@
{{define "title"}}{{.Feed.Name}}{{end}}
-{{define "description"}}"Recent videos from {{.Feed.Name}}"{{end}}
+{{define "description"}}"Recent content from {{.Feed.Name}}"{{end}}
{{define "main"}}
- {{range .Videos}}
+ {{range .Written}}
<div class="card">
- <div class="header">
+ <div class="flex_between">
<h4><b>{{.Title}} - {{.Published}}</b></h4>
- <iframe class="video" src="{{.Link}}"></iframe>
+ <a href="{{.Link}}" class="nav_tag right">Read</a>
</div>
- <p>{{.Description}}</p>
</div>
{{end}}
{{end}}
-
diff --git a/ui/html/pages/feed_index.tmpl.html b/ui/html/pages/feed_index.tmpl.html
index 59b37d4..2450240 100644
--- a/ui/html/pages/feed_index.tmpl.html
+++ b/ui/html/pages/feed_index.tmpl.html
@@ -1,11 +1,11 @@
{{define "title"}}RSS Feeds{{end}}
-{{define "description"}}"alternative to social media platforms"{{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>Alternative to social media platforms</p>
+ <p>Where I aggregate all the stuff I follow</p>
</div>
<div class="spacer"></div>
{{if .IsAuth}}
@@ -21,6 +21,11 @@
<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>
diff --git a/ui/html/pages/video_feed.tmpl.html b/ui/html/pages/video_feed.tmpl.html
new file mode 100644
index 0000000..83332f2
--- /dev/null
+++ b/ui/html/pages/video_feed.tmpl.html
@@ -0,0 +1,15 @@
+{{define "title"}}{{.Feed.Name}}{{end}}
+{{define "description"}}"Recent videos from {{.Feed.Name}}"{{end}}
+
+{{define "main"}}
+ {{range .Videos}}
+ <div class="card">
+ <div class="header">
+ <h4><b>{{.Title}} - {{.Published}}</b></h4>
+ <iframe class="video" src="{{.Link}}"></iframe>
+ </div>
+ <p>{{.Description}}</p>
+ </div>
+ {{end}}
+{{end}}
+