urls.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!-- templates/urls.html -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>KTVManager</title>
  8. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}" />
  10. </head>
  11. <body>
  12. <!-- Navbar (same as index.html) -->
  13. <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  14. <a class="navbar-brand" href="/">KTVManager</a>
  15. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
  16. <span class="navbar-toggler-icon"></span>
  17. </button>
  18. <div class="collapse navbar-collapse" id="navbarNav">
  19. <ul class="navbar-nav ml-auto">
  20. <li class="nav-item">
  21. <a class="nav-link" href="/">Home</a>
  22. </li>
  23. <li class="nav-item">
  24. <a class="nav-link" href="/accounts">Accounts</a> <!-- Link to the URLs page -->
  25. </li>
  26. <li class="nav-item">
  27. <a class="nav-link" href="/urls">URLs</a> <!-- Link to the URLs page -->
  28. </li>
  29. </ul>
  30. </div>
  31. </nav>
  32. <!-- Main Content -->
  33. <main div class="container mt-5">
  34. <h2>URLs</h2>
  35. <table class="table table-striped">
  36. <thead>
  37. <tr>
  38. <th>#</th>
  39. <th>URL</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. {% for url in urls %}
  44. <tr>
  45. <td>{{ loop.index }}</td>
  46. <td><a href="{{ url }}" target="_blank">{{ url }}</a></td>
  47. </tr>
  48. {% endfor %}
  49. </tbody>
  50. </table>
  51. </div>
  52. </main>
  53. <footer class="bg-dark text-white text-center py-3 mt-5">
  54. <p></p>
  55. </footer>
  56. <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
  57. <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.0.7/dist/umd/popper.min.js"></script>
  58. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
  59. </body>
  60. </html>