]> git.p6c8.net - pcdenotes.git/commitdiff
Replaced some hard-coded URLs in templates with "url"
authorPatrick Canterino <patrick@patrick-canterino.de>
Sun, 30 Jan 2022 18:00:01 +0000 (19:00 +0100)
committerPatrick Canterino <patrick@patrick-canterino.de>
Sun, 30 Jan 2022 18:00:01 +0000 (19:00 +0100)
notes/templates/note_base.html

index b4e2f711fc736cdd35e815c4fbe780fe89738e9f..094e23e381497a3243ac3b3af614bdc82381f327 100644 (file)
@@ -13,7 +13,7 @@
 <body class="d-flex flex-column min-vh-100">
 
   <header class="container-fluid p-5">
 <body class="d-flex flex-column min-vh-100">
 
   <header class="container-fluid p-5">
-    <h1><a href="/">Notes</a></h1>
+    <h1><a href="{% url "notes:note_list" %}">Notes</a></h1>
   </header>
 
   <div id="content" class="container flex-fill">
   </header>
 
   <div id="content" class="container flex-fill">
@@ -24,8 +24,8 @@
     <div class="row">
       <div class="col-lg-6 col-md-12 col-sm-12">
         <ul>
     <div class="row">
       <div class="col-lg-6 col-md-12 col-sm-12">
         <ul>
-          <li><a href="/">Home</a></li>
-          <li><a href="/archive/">Archive</a></li>
+          <li><a href="{% url "notes:note_list" %}">Home</a></li>
+          <li><a href="{% url "notes:archive_main" %}">Archive</a></li>
         </ul>
       </div>
       <div class="col-lg-6 col-md-12 col-sm-12">
         </ul>
       </div>
       <div class="col-lg-6 col-md-12 col-sm-12">

patrick-canterino.de