Change source list to a table

This commit is contained in:
Tim Van Baak 2024-09-21 13:28:16 -07:00
parent 40ad075e96
commit 4947ce56c6
1 changed files with 11 additions and 4 deletions

View File

@ -34,6 +34,9 @@ summary:focus {
width: 100%;
resize: vertical;
}
.intake-sources td {
padding-block: 0.4em;
}
</style>
</head>
<body>
@ -65,17 +68,21 @@ summary:focus {
{% if not sources %}
<p>No sources found.</p>
{% else %}
<table class="intake-sources">
{% for source in sources %}
<p>
<tr>
<td>
{%- 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>
</td>
<td>(<a href="{{ url_for('source_edit', name=source.source_name) }}">edit</a>)</td>
<td><a href="{{ url_for('source_feed', name=source.source_name) }}">{{ source.source_name|safe }}</a></td>
</tr>
{% endfor %}
</table>
{% endif %}
</details>
</article>