Download templates/announcements.html from Hydui/Bkl: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/spaces/Hydui/Bkl/resolve/main/templates/announcements.html
- Command line
-
hf download hf://spaces/Hydui/Bkl/templates/announcements.html
-
curl -L -o announcements.html https://huggingface.co/spaces/Hydui/Bkl/resolve/main/templates/announcements.html
634 Bytes
| {% extends "base.html" %}{% block content %} | |
| <h1>Announcements</h1> | |
| <div class="card"><form method="post"> | |
| <input name="title" placeholder="Title" required><textarea name="body" placeholder="Message"></textarea><button>Publish</button> | |
| </form></div> | |
| <div class="cards">{% for a in announcements %} | |
| <div class="card"><div class="row"><h2>{{a.title}}</h2><span class="badge">{{"Active" if a.active else "Off"}}</span></div><p>{{a.body}}</p> | |
| <form method="post" action="{{url_for('toggle_announcement',item_id=a.id)}}"><button class="small">{{"Disable" if a.active else "Enable"}}</button></form></div> | |
| {% endfor %}</div> | |
| {% endblock %} | |