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%; 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>