Change source list to a table
This commit is contained in:
parent
40ad075e96
commit
4947ce56c6
|
@ -34,6 +34,9 @@ summary:focus {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
.intake-sources td {
|
||||||
|
padding-block: 0.4em;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -65,17 +68,21 @@ summary:focus {
|
||||||
{% if not sources %}
|
{% if not sources %}
|
||||||
<p>No sources found.</p>
|
<p>No sources found.</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<table class="intake-sources">
|
||||||
{% for source in sources %}
|
{% for source in sources %}
|
||||||
<p>
|
<tr>
|
||||||
|
<td>
|
||||||
{%- for channel, srcs in channels|items -%}
|
{%- for channel, srcs in channels|items -%}
|
||||||
{%- if source.source_name in srcs -%}
|
{%- if source.source_name in srcs -%}
|
||||||
^
|
^
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
<a href="{{ url_for('source_feed', name=source.source_name) }}">{{ source.source_name|safe }}</a>
|
</td>
|
||||||
(<a href="{{ url_for('source_edit', name=source.source_name) }}">edit</a>)
|
<td>(<a href="{{ url_for('source_edit', name=source.source_name) }}">edit</a>)</td>
|
||||||
</p>
|
<td><a href="{{ url_for('source_feed', name=source.source_name) }}">{{ source.source_name|safe }}</a></td>
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</details>
|
</details>
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Reference in New Issue