1
0
Fork 0
forked from 2sys/shoutdotdev
shoutdotdev/templates/channels.html

72 lines
2.2 KiB
HTML
Raw Permalink Normal View History

2025-02-26 13:10:45 -08:00
{% extends "base.html" %}
{% block title %}Shout.dev: Channels{% endblock %}
{% block main %}
{% include "breadcrumbs.html" %}
<main class="container mt-5">
<section class="mb-4">
<div class="d-flex justify-content-between align-items-center">
<h1>Channels</h1>
<div>
<div class="dropdown">
<!-- FIXME: a11y https://getbootstrap.com/docs/5.3/components/dropdowns/#accessibility -->
<button
class="btn btn-primary dropdown-toggle"
type="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
New Channel
</button>
<ul class="dropdown-menu">
<li>
<form
method="post"
2025-04-04 13:42:10 -07:00
action="{{ breadcrumbs.join("../new-channel") }}"
2025-02-26 13:10:45 -08:00
>
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<input type="hidden" name="channel_type" value="email">
<button class="dropdown-item" type="submit">Email</button>
</form>
</li>
2025-04-21 19:02:23 -07:00
<li>
<form
method="post"
action="{{ breadcrumbs.join("../new-channel") }}"
>
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<input type="hidden" name="channel_type" value="slack">
<button class="dropdown-item" type="submit">Slack</button>
</form>
</li>
2025-02-26 13:10:45 -08:00
</ul>
</div>
</div>
</div>
</section>
<div class="alert alert-primary" role="alert">
Channels are places to send messages, alerts, and so on. Once created, they
can be connected to specific projects at the
<a
2025-04-04 13:42:10 -07:00
href="{{ breadcrumbs.join("../projects") }}"
2025-02-26 13:10:45 -08:00
>Projects page</a>.
</div>
<section class="mb-3">
<table class="table">
<tbody>
{% for channel in channels %}
<tr>
<td>
2025-04-04 13:42:10 -07:00
<a href="{{ breadcrumbs.join(channel.id.simple().to_string().as_str()) }}">
2025-02-26 13:10:45 -08:00
{{ channel.name }}
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>
</main>
{% endblock %}