Update HTML
This commit is contained in:
@ -7,30 +7,28 @@
|
|||||||
<form action="/add_webhook" method="post">
|
<form action="/add_webhook" method="post">
|
||||||
{# Webhook name #}
|
{# Webhook name #}
|
||||||
<div class="row pb-2">
|
<div class="row pb-2">
|
||||||
<label for="webhook_name" class="col-sm-2 col-form-label">
|
<label for="webhook_name" class="col-sm-2 col-form-label">Webhook Name</label>
|
||||||
Webhook Name
|
|
||||||
</label
|
|
||||||
>
|
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<input name="webhook_name"
|
<input name="webhook_name"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="webhook_name"
|
id="webhook_name" />
|
||||||
placeholder="TheLovinator #RSS"/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{# Webhook URL #}
|
{# Webhook URL #}
|
||||||
<div class="row pb-2">
|
<div class="row pb-2">
|
||||||
<label for="webhook_url" class="col-sm-2 col-form-label">
|
<label for="webhook_url" class="col-sm-2 col-form-label">Webhook URL</label>
|
||||||
Webhook URL
|
|
||||||
</label
|
|
||||||
>
|
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<input name="webhook_url"
|
<input name="webhook_url"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="webhook_url"
|
id="webhook_url" />
|
||||||
placeholder="https://discord.com/api/webhooks/1011224189471124054/CQMa4hJN4gz"/>
|
</div>
|
||||||
|
<div class="form-text">
|
||||||
|
You can append ?thread_id=THREAD_ID to the end
|
||||||
|
of the URL to send messages to a thread. You can get
|
||||||
|
the thread ID by right-clicking on the thread and
|
||||||
|
Copy Thread ID.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{# Submit button #}
|
{# Submit button #}
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="description"
|
<meta name="description"
|
||||||
content="Stay updated with the latest news and events with our easy-to-use RSS bot. Never miss a message or announcement again with real-time notifications directly to your Discord server."/>
|
content="Stay updated with the latest news and events with our easy-to-use RSS bot. Never miss a message or announcement again with real-time notifications directly to your Discord server." />
|
||||||
<meta name="keywords"
|
<meta name="keywords"
|
||||||
content="discord, rss, bot, notifications, announcements, updates, real-time, server, messages, news, events, feed."/>
|
content="discord, rss, bot, notifications, announcements, updates, real-time, server, messages, news, events, feed." />
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
|
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
|
||||||
crossorigin="anonymous"/>
|
crossorigin="anonymous" />
|
||||||
<link href="/static/styles.css" rel="stylesheet"/>
|
<link href="/static/styles.css" rel="stylesheet" />
|
||||||
<link rel="icon" href="/static/favicon.ico" type="image/x-icon"/>
|
<link rel="icon" href="/static/favicon.ico" type="image/x-icon" />
|
||||||
<title>discord-rss-bot
|
<title>discord-rss-bot
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% endblock title %}
|
{% endblock title %}
|
||||||
@ -33,9 +33,6 @@
|
|||||||
<a class="text-muted" href="https://github.com/TheLovinator1">TheLovinator</a>
|
<a class="text-muted" href="https://github.com/TheLovinator1">TheLovinator</a>
|
||||||
</p>
|
</p>
|
||||||
<ul class="nav col-md-4 justify-content-end">
|
<ul class="nav col-md-4 justify-content-end">
|
||||||
<li class="nav-item">
|
|
||||||
<a href="mailto:tlovinator@gmail.com" class="nav-link px-2 text-muted">Email</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="https://github.com/TheLovinator1/discord-rss-bot/issues"
|
<a href="https://github.com/TheLovinator1/discord-rss-bot/issues"
|
||||||
class="nav-link px-2 text-muted">Report an issue</a>
|
class="nav-link px-2 text-muted">Report an issue</a>
|
||||||
|
@ -35,29 +35,29 @@
|
|||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="blacklist_title"
|
id="blacklist_title"
|
||||||
value="{%- if blacklist_title -%}{{ blacklist_title }}{%- endif -%}"/>
|
value="{%- if blacklist_title -%}{{ blacklist_title }}{%- endif -%}" />
|
||||||
<label for="blacklist_summary" class="col-sm-6 col-form-label">Blacklist - Summary</label>
|
<label for="blacklist_summary" class="col-sm-6 col-form-label">Blacklist - Summary</label>
|
||||||
<input name="blacklist_summary"
|
<input name="blacklist_summary"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="blacklist_summary"
|
id="blacklist_summary"
|
||||||
value="{%- if blacklist_summary -%}{{ blacklist_summary }}{%- endif -%}"/>
|
value="{%- if blacklist_summary -%}{{ blacklist_summary }}{%- endif -%}" />
|
||||||
<label for="blacklist_content" class="col-sm-6 col-form-label">Blacklist - Content</label>
|
<label for="blacklist_content" class="col-sm-6 col-form-label">Blacklist - Content</label>
|
||||||
<input name="blacklist_content"
|
<input name="blacklist_content"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="blacklist_content"
|
id="blacklist_content"
|
||||||
value="{%- if blacklist_content -%}{{ blacklist_content }}{%- endif -%}"/>
|
value="{%- if blacklist_content -%}{{ blacklist_content }}{%- endif -%}" />
|
||||||
<label for="blacklist_author" class="col-sm-6 col-form-label">Blacklist - Author</label>
|
<label for="blacklist_author" class="col-sm-6 col-form-label">Blacklist - Author</label>
|
||||||
<input name="blacklist_author"
|
<input name="blacklist_author"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="blacklist_author"
|
id="blacklist_author"
|
||||||
value="{%- if blacklist_author -%}{{ blacklist_author }}{%- endif -%}"/>
|
value="{%- if blacklist_author -%}{{ blacklist_author }}{%- endif -%}" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Add a hidden feed_url field to the form -->
|
<!-- Add a hidden feed_url field to the form -->
|
||||||
<input type="hidden" name="feed_url" value="{{ feed.url }}"/>
|
<input type="hidden" name="feed_url" value="{{ feed.url }}" />
|
||||||
<!-- Submit button -->
|
<!-- Submit button -->
|
||||||
<div class="d-md-flex">
|
<div class="d-md-flex">
|
||||||
<button class="btn btn-dark btn-sm">Update blacklist</button>
|
<button class="btn btn-dark btn-sm">Update blacklist</button>
|
||||||
|
@ -18,9 +18,7 @@
|
|||||||
<button class="btn btn-danger btn-sm"
|
<button class="btn btn-danger btn-sm"
|
||||||
name="feed_url"
|
name="feed_url"
|
||||||
value="{{ feed.url }}"
|
value="{{ feed.url }}"
|
||||||
onclick="return confirm('Are you sure you want to delete this feed?')">
|
onclick="return confirm('Are you sure you want to delete this feed?')">Remove</button>
|
||||||
Remove
|
|
||||||
</button>
|
|
||||||
</form>
|
</form>
|
||||||
{% if not feed.updates_enabled %}
|
{% if not feed.updates_enabled %}
|
||||||
<form action="/unpause" method="post">
|
<form action="/unpause" method="post">
|
||||||
@ -46,18 +44,18 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="text-muted"
|
<a class="text-muted"
|
||||||
href="/whitelist?feed_url={{ feed.url|encode_url }}">Whitelist</a>
|
href="/whitelist?feed_url={{ feed.url|encode_url }}">Whitelist</a>
|
||||||
<br/>
|
<br />
|
||||||
<a class="text-muted"
|
<a class="text-muted"
|
||||||
href="/blacklist?feed_url={{ feed.url|encode_url }}">Blacklist</a>
|
href="/blacklist?feed_url={{ feed.url|encode_url }}">Blacklist</a>
|
||||||
<br/>
|
<br />
|
||||||
<a class="text-muted" href="/custom?feed_url={{ feed.url|encode_url }}">Customize message
|
<a class="text-muted" href="/custom?feed_url={{ feed.url|encode_url }}">Customize message
|
||||||
{% if not should_send_embed %}(Active){% endif %}
|
{% if not should_send_embed %}(Active){% endif %}
|
||||||
</a>
|
</a>
|
||||||
<br/>
|
<br />
|
||||||
<a class="text-muted" href="/embed?feed_url={{ feed.url|encode_url }}">Customize embed
|
<a class="text-muted" href="/embed?feed_url={{ feed.url|encode_url }}">Customize embed
|
||||||
{% if should_send_embed %}(Active){% endif %}
|
{% if should_send_embed %}(Active){% endif %}
|
||||||
</a>
|
</a>
|
||||||
<br/>
|
<br />
|
||||||
</div>
|
</div>
|
||||||
{# HTML is created in main.create_html_for_feed #}
|
{# HTML is created in main.create_html_for_feed #}
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<input name="query"
|
<input name="query"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
type="search"
|
type="search"
|
||||||
placeholder="Search"/>
|
placeholder="Search" />
|
||||||
</form>
|
</form>
|
||||||
{# Donate button #}
|
{# Donate button #}
|
||||||
<ul class="navbar-nav ms-auto">
|
<ul class="navbar-nav ms-auto">
|
||||||
|
@ -42,6 +42,12 @@
|
|||||||
id="new_hook" />
|
id="new_hook" />
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary col-sm-1 ">Modify</button>
|
<button type="submit" class="btn btn-primary col-sm-1 ">Modify</button>
|
||||||
|
<div class="form-text">
|
||||||
|
You can append ?thread_id=THREAD_ID to the end
|
||||||
|
of the URL to send messages to a thread. You can get
|
||||||
|
the thread ID by right-clicking on the thread and
|
||||||
|
Copy Thread ID.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<form action="/delete_webhook" method="post">
|
<form action="/delete_webhook" method="post">
|
||||||
|
@ -35,29 +35,29 @@
|
|||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="whitelist_title"
|
id="whitelist_title"
|
||||||
value="{%- if whitelist_title -%}{{ whitelist_title }} {%- endif -%}"/>
|
value="{%- if whitelist_title -%}{{ whitelist_title }} {%- endif -%}" />
|
||||||
<label for="whitelist_summary" class="col-sm-6 col-form-label">Whitelist - Summary</label>
|
<label for="whitelist_summary" class="col-sm-6 col-form-label">Whitelist - Summary</label>
|
||||||
<input name="whitelist_summary"
|
<input name="whitelist_summary"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="whitelist_summary"
|
id="whitelist_summary"
|
||||||
value="{%- if whitelist_summary -%}{{ whitelist_summary }}{%- endif -%}"/>
|
value="{%- if whitelist_summary -%}{{ whitelist_summary }}{%- endif -%}" />
|
||||||
<label for="whitelist_content" class="col-sm-6 col-form-label">Whitelist - Content</label>
|
<label for="whitelist_content" class="col-sm-6 col-form-label">Whitelist - Content</label>
|
||||||
<input name="whitelist_content"
|
<input name="whitelist_content"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="whitelist_content"
|
id="whitelist_content"
|
||||||
value="{%- if whitelist_content -%}{{ whitelist_content }}{%- endif -%}"/>
|
value="{%- if whitelist_content -%}{{ whitelist_content }}{%- endif -%}" />
|
||||||
<label for="whitelist_author" class="col-sm-6 col-form-label">Whitelist - Author</label>
|
<label for="whitelist_author" class="col-sm-6 col-form-label">Whitelist - Author</label>
|
||||||
<input name="whitelist_author"
|
<input name="whitelist_author"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="whitelist_author"
|
id="whitelist_author"
|
||||||
value="{%- if whitelist_author -%} {{ whitelist_author }} {%- endif -%}"/>
|
value="{%- if whitelist_author -%} {{ whitelist_author }} {%- endif -%}" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Add a hidden feed_url field to the form -->
|
<!-- Add a hidden feed_url field to the form -->
|
||||||
<input type="hidden" name="feed_url" value="{{ feed.url }}"/>
|
<input type="hidden" name="feed_url" value="{{ feed.url }}" />
|
||||||
<!-- Submit button -->
|
<!-- Submit button -->
|
||||||
<div class="d-md-flex">
|
<div class="d-md-flex">
|
||||||
<button class="btn btn-dark btn-sm">Update whitelist</button>
|
<button class="btn btn-dark btn-sm">Update whitelist</button>
|
||||||
|
Reference in New Issue
Block a user