Debian Codegraph @

src/webswview/templates/pureos/layouts/base.html

raw
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <meta name="description" content="Find and install hundreds of free and respectful apps and games.">
8 <title>{% block title %}{{ page_title }}{% endblock %} - {{ config.PROJECT }}</title>
9
10 <link rel="stylesheet" href="{{ url_for('static', filename='css/fontawesome/all.min.css') }}"/>
11 <link rel="stylesheet" href="{{ url_for('static', filename='css/bulma.min.css') }}"/>
12 <link rel="stylesheet" href="{{ url_for('static', filename='css/laniakea_swview.css') }}"/>
13 {% block css %}{% endblock %}
14
15 </head>
16 <body>
17
18 <!-- Header Bar -->
19 <nav class="navbar navbar-home" role="navigation" aria-label="main navigation">
20 <div class="navbar-brand">
21 <a class="navbar-item" href="{{ url_for('portal.index') }}">
22 <img src="{{ url_for('static', filename='img/app-icon.svg') }}">
23 </a>
24
25 <a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="topNavbar">
26 <span aria-hidden="true"></span>
27 <span aria-hidden="true"></span>
28 <span aria-hidden="true"></span>
29 </a>
30 </div>
31 <!-- Top Navigation -->
32 <div id="topNavbar" class="navbar-menu">
33 <div class="navbar-start">
34 <div class="navbar-item">
35 <a class="navbar-item" href="{{ url_for('portal.categories_index') }}">Software</a>
36 <a class="navbar-item" href="{{ url_for('portal.repo_index') }}">Packages</a>
37
38 </div>
39 <!-- left menu items would be here -->
40 </div>
41 <div class="navbar-end">
42 <div class="navbar-item field">
43 <form class="form-inline" action="/search_sw" method="GET">
44 <p class="control has-icons-left">
45 <input id="term" name="term" class="input is-rounded" type="text" placeholder="Find an app...">
46 <span class="icon is-left">
47 <i class="fas fa-search"></i>
48 </span>
49
50 </p>
51 </form>
52 </div>
53
54 </div>
55 </div>
56 </nav>
57
58
59 {% block container %}
60
61 <div class="container">
62
63 {% block breadcrumbs %}{% endblock %}
64
65 <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3">
66 {% block body_header %}{% endblock %}
67 </div>
68 {% block flash_message %}
69 {% with messages = get_flashed_messages(with_categories=True) %}
70 {% if messages %}
71 {% for category, msg in messages %}
72 <div class="alert alert-{{ category }}">
73 {{ msg|safe }}
74 </div>
75 {% endfor %}
76 {% endif %}
77 {% endwith %}
78 {% endblock %}
79
80 {% block body %}{% endblock %}
81 </div>
82 {% endblock %}
83
84 <!-- Footer section -->
85 <footer class="footer">
86 <div class="section-legal has-text-centered">
87 <a href="https://puri.sm/" class="brand">
88 <img src="{{ url_for('static', filename='img/brand.svg') }}" alt="Purism">
89 </a>
90 <p>
91 3D renders are artist renderings, for illustration purposes. Images and specifications are subject to change depending on manufacturing requirements.
92 </p>
93 <p>
94 Unless otherwise noted, content created by the Purism team on this website are copyleft with a CC-by-SA 4.0 license.
95 Other content on this page is subjected to the licenses of the respective upstream projects or packagers.
96 </p>
97 </div>
98 </footer>
99
100 <!-- Menu script -->
101 <script type="text/javascript">
102 document.addEventListener('DOMContentLoaded', () => {
103
104 // Get all "navbar-burger" elements
105 const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
106
107 // Check if there are any navbar burgers
108 if ($navbarBurgers.length > 0) {
109
110 // Add a click event on each of them
111 $navbarBurgers.forEach(el => {
112 el.addEventListener('click', () => {
113
114 // Get the target from the "data-target" attribute
115 const target = el.dataset.target;
116 const $target = document.getElementById(target);
117
118 // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
119 el.classList.toggle('is-active');
120 $target.classList.toggle('is-active');
121
122 });
123 });
124 }
125
126 });
127 </script>
128
129 <script src="{{ url_for('static', filename='js/jquery/jquery.slim.min.js') }}"></script>
130 {% block js %}{% endblock %}
131
132 </body>
133 </html>