Don't use url_for
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="p-2 border border-dark">
|
<div class="p-2 border border-dark">
|
||||||
<form action="{{ url_for("create_feed") }}" method="post">
|
<form action="/add" method="post">
|
||||||
{# Feed URL #}
|
{# Feed URL #}
|
||||||
<div class="row mb-4">
|
<div class="row mb-4">
|
||||||
<label for="feed_url" class="col-sm-2 col-form-label">Feed URL</label>
|
<label for="feed_url" class="col-sm-2 col-form-label">Feed URL</label>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||||
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
|
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
|
||||||
crossorigin="anonymous">
|
crossorigin="anonymous">
|
||||||
<link href="{{ url_for("static", path="/styles.css") }}" rel="stylesheet">
|
<link href="/static/styles.css" rel="stylesheet">
|
||||||
<title>discord-rss-bot{% block title %}{% endblock %}</title>
|
<title>discord-rss-bot{% block title %}{% endblock %}</title>
|
||||||
{% block head %}{% endblock %}
|
{% block head %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
{# Remove feed button. #}
|
{# Remove feed button. #}
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<form action="{{ url_for("remove_feed") }}" method="post">
|
<form action="/remove" method="post">
|
||||||
<button class="btn btn-danger" type="submit" name="feed_url" value="{{ feed.url }}"
|
<button class="btn btn-danger" type="submit" name="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 feed
|
Remove feed
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>
|
<p>
|
||||||
No feeds yet. Add one <a class="text-muted" href="{{ url_for("get_add") }}">here</a>.
|
No feeds yet. Add one <a class="text-muted" href="/add">here</a>.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -10,16 +10,16 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="nav-item nav-link d-none d-md-block">|</li>
|
<li class="nav-item nav-link d-none d-md-block">|</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ url_for("get_add") }}">Add new feed</a>
|
<a class="nav-link" href="/add">Add new feed</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item nav-link d-none d-md-block">|</li>
|
<li class="nav-item nav-link d-none d-md-block">|</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ url_for("get_webhooks") }}">Add new webhook</a>
|
<a class="nav-link" href="/webhooks">Add new webhook</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{# Search #}
|
{# Search #}
|
||||||
<form action="{{ url_for("search") }}" method="get" class="d-flex col-sm-7 ms-auto">
|
<form action="/search" method="get" class="d-flex col-sm-7 ms-auto">
|
||||||
<input name="query" class="form-control me-1" type="search" placeholder="Search">
|
<input name="query" class="form-control me-1" type="search" placeholder="Search">
|
||||||
<button class="btn btn-outline-warning" type="submit">Search</button>
|
<button class="btn btn-outline-warning" type="submit">Search</button>
|
||||||
</form>
|
</form>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="p-2 border border-dark">
|
<div class="p-2 border border-dark">
|
||||||
<form action="{{ url_for("add_webhook") }}" method="post">
|
<form action="/add_webhook" method="post">
|
||||||
{# Webhook name #}
|
{# Webhook name #}
|
||||||
<div class="row mb-6">
|
<div class="row mb-6">
|
||||||
<label for="webhook_name" class="col-sm-2 col-form-label">Webhook Name</label>
|
<label for="webhook_name" class="col-sm-2 col-form-label">Webhook Name</label>
|
||||||
|
Reference in New Issue
Block a user