kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Add icon for RSS, RSS should show only unviewed entries
rodzic
a82e9243a6
commit
b1fb47e689
|
@ -126,7 +126,7 @@ def changedetection_app(config=None, datastore_o=None):
|
||||||
fg.link(href='https://changedetection.io')
|
fg.link(href='https://changedetection.io')
|
||||||
|
|
||||||
for watch in sorted_watches:
|
for watch in sorted_watches:
|
||||||
if watch['unviewed']:
|
if not watch['viewed']:
|
||||||
fe = fg.add_entry()
|
fe = fg.add_entry()
|
||||||
fe.title(watch['url'])
|
fe.title(watch['url'])
|
||||||
fe.link(href=watch['url'])
|
fe.link(href=watch['url'])
|
||||||
|
|
|
@ -249,3 +249,7 @@ footer {
|
||||||
color: #444;
|
color: #444;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#feed-icon {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
|
@ -15,13 +15,9 @@
|
||||||
<!-- user/pass r = requests.get('https://api.github.com/user', auth=('user', 'pass')) -->
|
<!-- user/pass r = requests.get('https://api.github.com/user', auth=('user', 'pass')) -->
|
||||||
</form>
|
</form>
|
||||||
<div>
|
<div>
|
||||||
|
<a href="/" class="pure-button button-tag {{'active' if not active_tag }}">All</a>
|
||||||
{% for tag in tags %}
|
{% for tag in tags %}
|
||||||
{% if tag == "" %}
|
|
||||||
<a href="/" class="pure-button button-tag {{'active' if active_tag == tag }}">All</a>
|
|
||||||
{% else %}
|
|
||||||
<a href="/?tag={{ tag}}" class="pure-button button-tag {{'active' if active_tag == tag }}">{{ tag }}</a>
|
<a href="/?tag={{ tag}}" class="pure-button button-tag {{'active' if active_tag == tag }}">{{ tag }}</a>
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -71,8 +67,6 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<ul id="post-list-buttons">
|
<ul id="post-list-buttons">
|
||||||
|
@ -85,6 +79,9 @@
|
||||||
<a href="/api/checknow{% if active_tag%}?tag={{active_tag}}{%endif%}" class="pure-button button-tag ">Recheck
|
<a href="/api/checknow{% if active_tag%}?tag={{active_tag}}{%endif%}" class="pure-button button-tag ">Recheck
|
||||||
all {% if active_tag%}in "{{active_tag}}"{%endif%}</a>
|
all {% if active_tag%}in "{{active_tag}}"{%endif%}</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ url_for('index', tag=active_tag , rss=true)}}"><img id="feed-icon" src="/static/images/Generic_Feed-icon.svg" height="15px"></a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Ładowanie…
Reference in New Issue