Merge pull request #60 from kevinmarks/master
Add details/summary collapsing
This commit is contained in:
commit
bb7cc31c4d
2 changed files with 10 additions and 8 deletions
|
@ -10,7 +10,7 @@
|
|||
{{ context.permalink | domain_for_url }}
|
||||
</header>
|
||||
{% if context.title %}
|
||||
<h1>{{ context.title }}</h1>
|
||||
<h1>{{ context.title|e }}</h1>
|
||||
{% endif %}
|
||||
{% if context.content %}
|
||||
<div class="content">
|
||||
|
@ -28,7 +28,7 @@
|
|||
{% endfor %}
|
||||
|
||||
<article>
|
||||
<header>
|
||||
<details><summary><header>
|
||||
{% if entry.author_photo %}
|
||||
<img src="{{entry.author_photo|proxy_image}}"/>
|
||||
{% endif %}
|
||||
|
@ -43,9 +43,9 @@
|
|||
{% endif %}
|
||||
</header>
|
||||
{% if entry.title %}
|
||||
<h1>{{ entry.title }}</h1>
|
||||
<h1>{{ entry.title|e }}</h1>
|
||||
{% endif %}
|
||||
|
||||
</summary>
|
||||
{% if entry.get_property('event') %}
|
||||
<p>
|
||||
{% if entry.get_property('start') %}
|
||||
|
@ -71,7 +71,7 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</details>
|
||||
<footer>
|
||||
{% set location = entry.get_property('location') %}
|
||||
{% if location and 'name' in location %}
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
<i class="fa fa-warning"></i> Last {{ s.feed.failure_count }} Attempt(s) Failed
|
||||
</div>
|
||||
{% endif %}
|
||||
<details><summary><b>{{ s.name }}</b> checked {{s.feed.last_checked | relative_time}}</summary>
|
||||
<form class="edit-subscription" action="{{ url_for('.edit_subscription') }}" method="POST">
|
||||
<input type="hidden" name="id" value="{{ s.id }}"/>
|
||||
<label>Name</label>
|
||||
|
@ -55,7 +56,7 @@
|
|||
</div>
|
||||
|
||||
<div class="feed-details" id="details-{{loop.index}}">
|
||||
<strong>Details</strong>
|
||||
<details><summary><strong>Details</strong></summary>
|
||||
<ul>
|
||||
<li>Last checked: {{s.feed.last_checked | relative_time}}</li>
|
||||
<li>Last updated: {{s.feed.last_updated | relative_time}}</li>
|
||||
|
@ -66,9 +67,10 @@
|
|||
<li>PuSH last ping: {{s.feed.last_pinged | relative_time}}</li>
|
||||
<li>PuSH expiry: {{s.feed.push_expiry | relative_time}}</li>
|
||||
</ul>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
|
||||
</details>
|
||||
<form class="poll-now" action="{{ url_for('.update_feed') }}" method="POST" style="display:inline">
|
||||
<input type="hidden" name="id" value="{{ s.feed.id }}"/>
|
||||
<button type="submit">Poll Now</button> <span class="poll-status"></span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue