From 6302c3b2194e43add648724044bb293ea15c5116 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 18 Jan 2018 20:23:26 -0800 Subject: Add mark as read/unread link on list items --- template/common.go | 53 ++++++++++- template/html/category_entries.html | 33 +------ template/html/common/item_meta.html | 43 +++++++++ template/html/common/layout.html | 2 +- template/html/feed_entries.html | 33 +------ template/html/history.html | 33 +------ template/html/starred.html | 33 +------ template/html/unread.html | 33 +------ template/views.go | 177 +++--------------------------------- 9 files changed, 109 insertions(+), 331 deletions(-) create mode 100644 template/html/common/item_meta.html (limited to 'template') diff --git a/template/common.go b/template/common.go index 7ec578f..798f8ff 100644 --- a/template/common.go +++ b/template/common.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-01-02 21:59:10.101985953 -0800 PST m=+0.029361282 +// 2018-01-18 20:15:20.47432327 -0800 PST m=+0.053802055 package template @@ -22,6 +22,49 @@ var templateCommonMap = map[string]string{ {{ end }} +{{ end }}`, + "item_meta": `{{ define "item_meta" }} +
+ +
{{ end }}`, "layout": `{{ define "base" }} @@ -86,7 +129,7 @@ var templateCommonMap = map[string]string{ {{ t "Settings" }}
  • - {{ t "Logout" }} + {{ t "Logout" }}
  • @@ -146,7 +189,8 @@ var templateCommonMap = map[string]string{ -{{ end }}`, +{{ end }} +`, "pagination": `{{ define "pagination" }} diff --git a/template/html/common/item_meta.html b/template/html/common/item_meta.html new file mode 100644 index 0000000..668a5d2 --- /dev/null +++ b/template/html/common/item_meta.html @@ -0,0 +1,43 @@ +{{ define "item_meta" }} +
    + +
    +{{ end }} \ No newline at end of file diff --git a/template/html/common/layout.html b/template/html/common/layout.html index fd32499..ca19313 100644 --- a/template/html/common/layout.html +++ b/template/html/common/layout.html @@ -61,7 +61,7 @@ {{ t "Settings" }}
  • - {{ t "Logout" }} + {{ t "Logout" }}
  • diff --git a/template/html/feed_entries.html b/template/html/feed_entries.html index 1568f40..ebd8ea7 100644 --- a/template/html/feed_entries.html +++ b/template/html/feed_entries.html @@ -38,38 +38,7 @@ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} diff --git a/template/html/history.html b/template/html/history.html index 5baa0df..892f183 100644 --- a/template/html/history.html +++ b/template/html/history.html @@ -27,38 +27,7 @@ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} diff --git a/template/html/starred.html b/template/html/starred.html index 1ed1b13..b16b9e7 100644 --- a/template/html/starred.html +++ b/template/html/starred.html @@ -20,38 +20,7 @@ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} diff --git a/template/html/unread.html b/template/html/unread.html index 7f285d0..e88c847 100644 --- a/template/html/unread.html +++ b/template/html/unread.html @@ -30,38 +30,7 @@ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} diff --git a/template/views.go b/template/views.go index 14c6230..76d05a4 100644 --- a/template/views.go +++ b/template/views.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-01-05 18:05:45.591353454 -0800 PST m=+0.022613760 +// 2018-01-18 20:15:20.459420484 -0800 PST m=+0.038899269 package template @@ -179,38 +179,7 @@ var templateViewsMap = map[string]string{ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} @@ -638,38 +607,7 @@ var templateViewsMap = map[string]string{ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} @@ -785,38 +723,7 @@ var templateViewsMap = map[string]string{ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} @@ -1161,38 +1068,7 @@ var templateViewsMap = map[string]string{ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} @@ -1233,38 +1109,7 @@ var templateViewsMap = map[string]string{ {{ .Feed.Category.Title }} -
    - -
    + {{ template "item_meta" . }} {{ end }} @@ -1339,7 +1184,7 @@ var templateViewsMapChecksums = map[string]string{ "about": "ad2fb778fc73c39b733b3f81b13e5c7d689b041fadd24ee2d4577f545aa788ad", "add_subscription": "053c920b0d7e109ea19dce6a448e304ce720db8633588ea04db16677f7209a7b", "categories": "ca1280cd157bb527d4fc907da67b05a8347378f6dce965b9389d4bcdf3600a11", - "category_entries": "ce59529666520b8363c9588ce2c437de5a3f6d91941e5c46be25ca08f6900364", + "category_entries": "a92bd528d1162e7af4972f7ad25feddf7ceb17164db593805caf3d363ff32aac", "choose_subscription": "a325f9c976ca2b2dc148e25c8fef0cf6ccab0e04e86e604e7812bb18dc4cdde1", "create_category": "2b82af5d2dcd67898dc5daa57a6461e6ff8121a6089b2a2a1be909f35e4a2275", "create_user": "45e226df757126d5fe7c464e295e9a34f07952cfdb71e31e49839850d35af139", @@ -1347,15 +1192,15 @@ var templateViewsMapChecksums = map[string]string{ "edit_feed": "30ff6ee5526b8beb9b457526b77ede55938f53eb279b1acc719ce896359e2ed8", "edit_user": "82d9749d76ddbd2352816d813c4b1f6d92f2222de678b4afe5821090246735c7", "entry": "6b4405e0c8e4a7d31874659f8835f4e43e01dc3c20686091517ac750196dd70f", - "feed_entries": "6b4a7d52b2590a7c54b58ed3180bd3bb5d869ceaecc80e3575339a9c351309c6", + "feed_entries": "3a7b4d942d9ac9da7df5c09950fbadaa0ff564696953c4f1c302d955696cc2ee", "feeds": "65b0a47c4438810b9d51c60f3f3b2519690e56ff74029e6296c68626b83a470b", - "history": "abc7ea29f7d54f28f73fe14979bbd03dbc41fa6a7c86f95f56d6e94f7b09b9ba", + "history": "d2476fd727e4f53428b5ed1f3f9423063583337ec8cfe1dd9c931fcb03852a20", "import": "73b5112e20bfd232bf73334544186ea419505936bc237d481517a8622901878f", "integrations": "3c14d7de904911aad7f3ebec6d1a20b50843287f58125c526e167f429f3d455d", "login": "7d83c3067c02f1f6aafdd8816c7f97a4eb5a5a4bdaaaa4cc1e2fbb9c17ea65e8", "sessions": "9a3609c52b071a280b85fd886f15d4b91c76bb0ab93a99ad132c695a216ac5cf", "settings": "ea2505b9d0a6d6bb594dba87a92079de19baa6d494f0651693a7685489fb7de9", - "starred": "33dd40d1a24739e9d05f9cc4b66497cfdb8c86a7abb209a66ca65c2fbafc7d87", - "unread": "690bac794c4d21086f1a03588753088d7c26385de9a0c2723add6c7905b63f5e", + "starred": "121b761ce218de472ebf70879c1aa2fe3b9ae8981c11f1ed53a355e34049b269", + "unread": "17335b21dc5fb79207da317a8e8a6685a122bc94c323662cbda7cfdbf73dd2f9", "users": "44677e28bb5347799ed0020c90ec785aadec4b1454446d92411cfdaf6e32110b", } -- cgit v1.2.3