aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-11-21 17:01:18 -0700
committerAdam Mathes <adam@trenchant.org>2017-11-21 17:01:18 -0700
commitbc16a51de27c286db0d65aabd460cf23688806c3 (patch)
treed19315a3ef4ddee491cbf99fdad99d94f2298215
parentd256564c435c5cef02262fb64fb2bddcd38c05a1 (diff)
downloadneko-bc16a51de27c286db0d65aabd460cf23688806c3.tar.gz
neko-bc16a51de27c286db0d65aabd460cf23688806c3.tar.bz2
neko-bc16a51de27c286db0d65aabd460cf23688806c3.zip
adjust full item rendering
-rw-r--r--static/ui.html18
1 files changed, 11 insertions, 7 deletions
diff --git a/static/ui.html b/static/ui.html
index 4f7e297..c28b1b2 100644
--- a/static/ui.html
+++ b/static/ui.html
@@ -34,20 +34,24 @@
<script id="item_template" type="text/jqtmp">
<h2><a target="_blank" class="i" id="i_${item_id}" href="${item.url}">${item.title }</a>
- <span class={{if item.starred}}"unstar"{{else}}"star"{{/if}}>★</span></h2>
+ <span class={{if item.starred}}"unstar"{{else}}"star"{{/if}}>★</span>
+ <span class="full">
+ {{if item.full}}▼{{else}}►{{/if}}
+ </span>
+ </h2>
<p class="dateline" style="clear: both;">
${ item.publish_date } from <a href="${item.feed_url}">${item.feed_title}</a>
</p>
-
{{if item.header_image}}
<div class="img"><img src="${item.header_image}" /></div>
{{/if}}
- <div class="description">{{html item.description}}
- <p class="full">⫸</p>
+ <div class="description">
+ {{if item.full}}
+ {{html item.full_content}}
+ {{else}}
+ {{html item.description}}
+ {{/if}}
</div>
- {{if item.full}}
- <div class="description">{{html item.full_content}}</div>
- {{/if}}
</script>
<script id="tag_template" type="text/jqtmp">