Skip to content

Commit

Permalink
[FIX] deleting old templates and urls and making better links in temp…
Browse files Browse the repository at this point in the history
…late
  • Loading branch information
altf4arnold committed Jun 16, 2024
1 parent 3330a08 commit 0b66657
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
4 changes: 0 additions & 4 deletions tldtest/templates/about.html

This file was deleted.

6 changes: 3 additions & 3 deletions tldtest/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<header>
<nav class="border-gray-200 bg-gray-900">
<div class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4">
<a href="https://tldtest.net/" class="flex items-center space-x-3 rtl:space-x-reverse">
<a href="{% url 'main' %}" class="flex items-center space-x-3 rtl:space-x-reverse">
<img src="{% static 'images/image.png' %}" class="h-8" alt="Logo"/>
<span class="self-center text-2xl font-semibold whitespace-nowrap text-white">TLD-Tester</span>
</a>
Expand All @@ -48,12 +48,12 @@
<div class="hidden w-full md:block md:w-auto" id="navbar-default">
<ul class="font-medium flex flex-col p-4 md:p-0 mt-4 border rounded-lg md:flex-row md:space-x-8 rtl:space-x-reverse md:mt-0 md:border-0 bg-gray-800 md:bg-gray-900 border-gray-700">
<li>
<a href="/"
<a href="{% url 'main' %}"
class="block py-2 px-3 bg-blue-700 rounded md:bg-transparent md:p-0 text-white md:text-blue-500"
aria-current="page">Home</a>
</li>
<li>
<a href="/api"
<a href="api/"
class="block py-2 px-3 rounded md:border-0 md:p-0 text-white md:hover:text-blue-500 hover:bg-gray-700 hover:text-white md:hover:bg-transparent"
aria-current="page">API</a>
</li>
Expand Down
4 changes: 0 additions & 4 deletions tldtest/templates/latency.html

This file was deleted.

4 changes: 1 addition & 3 deletions tldtest/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@


urlpatterns = [
path("", Index.as_view(), name="home"),
path("about/", About.as_view(), name="about"),
path("latency/", Latency.as_view(), name="latency"),
path("", Index.as_view(), name="main"),
re_path(r'^favicon\.ico$', favicon_view),
path('admin/', admin.site.urls),
path('api/', include("tldtest.apiurls"))
Expand Down

0 comments on commit 0b66657

Please sign in to comment.