|
1 | | -<html> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
2 | 3 | <head> |
3 | 4 | <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
4 | 6 | <title>{% block travel_title %}Django Travel{% endblock travel_title %}</title> |
5 | | - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootswatch@5.1.3/dist/sandstone/bootstrap.min.css" crossorigin="anonymous"> |
| 7 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootswatch@5.3.3/dist/sandstone/bootstrap.min.css" crossorigin="anonymous"> |
6 | 8 | <style> |
7 | 9 | .flag-sm { width: 24px; } |
8 | 10 | .flag-md { width: 48px; } |
9 | 11 | .counter-badge { display: inline-block; } |
10 | 12 | .counter-badge > span:first-child { font-weight: bold; margin-right: 4px; } |
11 | 13 | .images > .travel-image > img.flag-md { width: 100%; } |
12 | 14 | </style> |
13 | | - <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> |
| 15 | + <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> |
14 | 16 | {% block travel_extra_head %}{% endblock travel_extra_head %} |
15 | 17 | </head> |
16 | 18 | <body> |
17 | 19 | <div class="container"> |
18 | 20 | <nav> |
19 | 21 | <ul class="list-inline"> |
20 | | - <li class="list-inline-item"><a title="Countries of the world" href="{% url 'travel:by-locale' 'co' %}">Countries</a> • |
21 | | - <li class="list-inline-item"><a title="States, provinces, territories of the world" href="{% url 'travel:by-locale' 'st' %}">States</a> • |
22 | | - <li class="list-inline-item"><a title="Cities of the world" href="{% url 'travel:by-locale' 'ct' %}">Cities</a> • |
23 | | - <li class="list-inline-item"><a title="Cities of the world" href="{% url 'travel:by-locale' 'ap' %}">Airports</a> • |
24 | | - <li class="list-inline-item"><a title="Continents of the world" href="{% url 'travel:by-locale' 'cn' %}">Continents</a> |
| 22 | + <li class="list-inline-item"><a title="Countries of the world" href="{% url 'travel:by-locale' 'co' %}">Countries</a> •</li> |
| 23 | + <li class="list-inline-item"><a title="States, provinces, territories of the world" href="{% url 'travel:by-locale' 'st' %}">States</a> •</li> |
| 24 | + <li class="list-inline-item"><a title="Cities of the world" href="{% url 'travel:by-locale' 'ct' %}">Cities</a> •</li> |
| 25 | + <li class="list-inline-item"><a title="Cities of the world" href="{% url 'travel:by-locale' 'ap' %}">Airports</a> •</li> |
| 26 | + <li class="list-inline-item"><a title="Continents of the world" href="{% url 'travel:by-locale' 'cn' %}">Continents</a> •</li> |
| 27 | + {% if user.is_authenticated %} |
| 28 | + <li class="list-inline-item"><a title="logout" href="{% url 'demo-logout' %}">Logout</a></li> |
| 29 | + {% else %} |
| 30 | + <li class="list-inline-item"><a title="Login" href="{% url 'login' %}">Login</a></li> |
| 31 | + {% endif %} |
25 | 32 | </ul> |
26 | 33 | </nav> |
27 | 34 | <hr> |
|
0 commit comments