Files
irc-bot/portal/templates/channels.html
tocmo0nlord b154f63cfa Initial implementation of IRC LLM bot
Full implementation from spec: ZNC/IRC client with TLS, Ollama LLM backend,
per-user SQLite conversation memory, and Flask web admin portal with 7 pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:08:53 -04:00

40 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}Channels — IRC Bot Portal{% endblock %}
{% block content %}
<h1>Channel Management</h1>
<div class="section">
<h2>Add Channel</h2>
<form method="post" action="{{ url_for('channel_add') }}" class="inline-form">
<input type="text" name="channel" placeholder="#general" required>
<button class="btn btn-primary">Join & Save</button>
</form>
</div>
<div class="section">
<h2>Joined Channels</h2>
{% if cfg.get('channels') %}
<table class="data-table">
<thead>
<tr><th>Channel</th><th>Action</th></tr>
</thead>
<tbody>
{% for ch in cfg['channels'] %}
<tr>
<td>{{ ch }}</td>
<td>
<form method="post" action="{{ url_for('channel_remove') }}" style="display:inline">
<input type="hidden" name="channel" value="{{ ch }}">
<button class="btn btn-danger btn-sm">Part</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p class="muted">No channels configured.</p>
{% endif %}
</div>
{% endblock %}