SimpleSyndicate/templates/index.html

34 lines
1.0 KiB
HTML
Raw Normal View History

2018-10-21 01:03:14 -04:00
<!DOCTYPE html>
<html>
<head>
<title>/ss/</title>
2019-01-21 08:19:54 -05:00
<link id="styleSheet" rel="stylesheet" type="text/css" href="/static/{{ style_sheet }}">
2018-10-21 01:03:14 -04:00
<script type="text/javascript" src="/static/ss.js"></script>
2019-01-21 08:19:54 -05:00
<script>
const set_session_url = '{{ url_for("set_session") }}';
</script>
2018-10-21 01:03:14 -04:00
</head>
<body>
2019-01-21 08:19:54 -05:00
<div>
Style sheet:
<select id="styleSheetSelector" onChange="swapStyleSheet()">
<option name="ss.css" value="ss.css"{% if style_sheet == 'ss.css' %} selected{% endif %}>Light</option>
2019-11-24 22:46:53 -05:00
<option name="ss-dark.css" value="ss-dark.css"{% if style_sheet == 'ss-dark.css' %} selected{% endif %}>Dark</option>
2019-01-21 08:19:54 -05:00
</select>
</div>
2018-10-21 01:03:14 -04:00
<div id="globalContainer">
{% for feed in feeds %}
<div>
<h3>{{ feed['meta']['title'] }}</h3>
2019-04-07 14:15:07 -04:00
{% if feed['error'] %}
<code>Error loading feed: {{ feed['error'] }}</code>
{% endif %}
2018-10-21 01:03:14 -04:00
{% for entry in feed['entries'] %}
<span class="date">{{ entry['date'] }}</span><a href="{{ entry['link'] }}">{{ entry['title'] }}</a><br>
{% endfor %}
</div>
{% endfor %}
</div>
</body>
</html>