Show item status in source view
This commit is contained in:
parent
da24d23eb7
commit
329f187a56
|
@ -66,6 +66,7 @@ def source_feed(source_name):
|
|||
return render_template(
|
||||
"feed.jinja2",
|
||||
items=all_items,
|
||||
now=int(time.time()),
|
||||
mdeac=[
|
||||
{"source": item["source"], "itemid": item["id"]}
|
||||
for item in all_items
|
||||
|
|
|
@ -116,10 +116,9 @@ var callback = function (source, itemid) {
|
|||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
{# #}
|
||||
{% if items %}
|
||||
{% for item in items %}
|
||||
<div class="readable-item" id="{{item.source}}-{{item.id}}">
|
||||
<div class="readable-item {%- if not item.active %} strikethru fade{% endif %}{%- if item.active and item.tts and item.created + item.tts > now %} fade{% endif %}" id="{{item.source}}-{{item.id}}">
|
||||
{% if item.id %}
|
||||
<button class="item-button" onclick="javascript:deactivate('{{item.source}}', '{{item.id}}')" title="Deactivate">✕</button>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue