Skip to content

Commit

Permalink
change response http code when inputs un correct url
Browse files Browse the repository at this point in the history
  • Loading branch information
ReYaNOW committed Dec 29, 2023
1 parent 79047ce commit 1aac598
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions page_analyzer/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
</div>
</nav>
</header>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }}" role="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
<main class="flex-grow-1">
<div class="container-lg mt-3">
<div class="row">
Expand Down
2 changes: 2 additions & 0 deletions page_analyzer/templates/url_related/url.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
</div>
</nav>
</header>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }}" role="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
<main class="flex-grow-1">
<div class="container-lg mt-3">
<h1>Сайт: {{ url.name }}</h1>
Expand Down
2 changes: 2 additions & 0 deletions page_analyzer/templates/url_related/urls.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
</div>
</nav>
</header>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }}" role="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
<main class="flex-grow-1">
<div class="container-lg mt-3">
<h1>Сайты</h1>
Expand Down

0 comments on commit 1aac598

Please sign in to comment.