From 0a6d8c78730f1da263a855d1f17c0ff92ac1070a Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 22 Apr 2018 18:43:49 -0700 Subject: wip category stuff --- models/feed/feed.go | 1 - static/style.css | 4 ++++ static/ui.html | 10 +++++++--- static/ui.js | 12 ++++++++++-- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/models/feed/feed.go b/models/feed/feed.go index 17f344f..ce7aafe 100644 --- a/models/feed/feed.go +++ b/models/feed/feed.go @@ -85,7 +85,6 @@ func (f *Feed) Update() { } func (f *Feed) Delete() { - log.Println("lets delete some shiteeee") _, err := models.DB.Exec(`DELETE FROM feed WHERE id=?`, f.Id) if err != nil { diff --git a/static/style.css b/static/style.css index 8a3e1a3..a91915a 100644 --- a/static/style.css +++ b/static/style.css @@ -29,6 +29,10 @@ p, ul { margin-bottom: 1.25rem; } +#filters h4 { + margin-bottom: 0; +} + blockquote { padding: 1rem 1rem 0 1rem; } diff --git a/static/ui.html b/static/ui.html index a7bd3a4..8604e43 100644 --- a/static/ui.html +++ b/static/ui.html @@ -26,13 +26,12 @@

Feeds

-
+
@@ -70,9 +69,14 @@ {{else}} ${feed.url} {{/if}} + + {{if feed.category}} + ${feed.category} + {{/if}} + [edit] - [X] + [x]