diff options
author | Adam Mathes <adam@trenchant.org> | 2017-11-21 17:01:18 -0700 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-11-21 17:01:18 -0700 |
commit | bc16a51de27c286db0d65aabd460cf23688806c3 (patch) | |
tree | d19315a3ef4ddee491cbf99fdad99d94f2298215 /static | |
parent | d256564c435c5cef02262fb64fb2bddcd38c05a1 (diff) | |
download | neko-bc16a51de27c286db0d65aabd460cf23688806c3.tar.gz neko-bc16a51de27c286db0d65aabd460cf23688806c3.tar.bz2 neko-bc16a51de27c286db0d65aabd460cf23688806c3.zip |
adjust full item rendering
Diffstat (limited to 'static')
-rw-r--r-- | static/ui.html | 18 |
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"> |