Add marker for sources in channels

This commit is contained in:
Tim Van Baak 2023-06-23 21:01:48 -07:00
parent 401c14748a
commit 8da75f190c
1 changed files with 9 additions and 5 deletions

View File

@ -59,7 +59,15 @@ summary:focus {
<p>No sources found.</p> <p>No sources found.</p>
{% else %} {% else %}
{% for source in sources %} {% for source in sources %}
<p><a href="{{ url_for('source_feed', name=source.source_name) }}">{{ source.source_name|safe }}</a> (<a href="{{ url_for('source_edit', name=source.source_name) }}">edit</a>)</p> <p>
{%- for channel, srcs in channels|items -%}
{%- if source.source_name in srcs -%}
^
{%- endif -%}
{%- endfor -%}
<a href="{{ url_for('source_feed', name=source.source_name) }}">{{ source.source_name|safe }}</a>
(<a href="{{ url_for('source_edit', name=source.source_name) }}">edit</a>)
</p>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</details> </details>
@ -70,19 +78,15 @@ summary:focus {
<summary><span class="item-title">Add item</span></summary> <summary><span class="item-title">Add item</span></summary>
<form action="add" method="post"> <form action="add" method="post">
<p> <p>
{# <label for="title">Title</label> #}
<input type="text" name="title" class="wide" placeholder="Title"> <input type="text" name="title" class="wide" placeholder="Title">
</p> </p>
<p> <p>
{# <label for="link">Link</label> #}
<input type="url" name="link" class="wide" placeholder="Link"> <input type="url" name="link" class="wide" placeholder="Link">
</p> </p>
<p> <p>
{# <label for="body">Body</label> #}
<textarea name="body" class="wide" placeholder="Body"></textarea> <textarea name="body" class="wide" placeholder="Body"></textarea>
</p> </p>
<p> <p>
{# <label for="tags">Tags</label> #}
<input type="text" name="tags" class="wide" placeholder="Tags, comma-separated"> <input type="text" name="tags" class="wide" placeholder="Tags, comma-separated">
</p> </p>
<p> <p>