Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/layout.html
{% comment %} | {% comment %} | ||||
Copyright (C) 2015-2020 The Software Heritage developers | Copyright (C) 2015-2021 The Software Heritage developers | ||||
See the AUTHORS file at the top-level directory of this distribution | See the AUTHORS file at the top-level directory of this distribution | ||||
License: GNU Affero General Public License version 3, or any later version | License: GNU Affero General Public License version 3, or any later version | ||||
See top-level LICENSE file for more information | See top-level LICENSE file for more information | ||||
{% endcomment %} | {% endcomment %} | ||||
<!DOCTYPE html> | <!DOCTYPE html> | ||||
{% load js_reverse %} | {% load js_reverse %} | ||||
Show All 10 Lines | <head> | ||||
{% render_bundle 'vendors' %} | {% render_bundle 'vendors' %} | ||||
{% render_bundle 'webapp' %} | {% render_bundle 'webapp' %} | ||||
<script> | <script> | ||||
/* | /* | ||||
@licstart The following is the entire license notice for the JavaScript code in this page. | @licstart The following is the entire license notice for the JavaScript code in this page. | ||||
Copyright (C) 2015-2020 The Software Heritage developers | Copyright (C) 2015-2021 The Software Heritage developers | ||||
This program is free software: you can redistribute it and/or modify | This program is free software: you can redistribute it and/or modify | ||||
it under the terms of the GNU Affero General Public License as | it under the terms of the GNU Affero General Public License as | ||||
published by the Free Software Foundation, either version 3 of the | published by the Free Software Foundation, either version 3 of the | ||||
License, or (at your option) any later version. | License, or (at your option) any later version. | ||||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | ||||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | <div class="wrapper"> | ||||
<a class="nav-link swh-push-menu" data-widget="pushmenu" data-enable-remember="true" href="#"> | <a class="nav-link swh-push-menu" data-widget="pushmenu" data-enable-remember="true" href="#"> | ||||
<i class="mdi mdi-24px mdi-menu mdi-fw" aria-hidden="true"></i> | <i class="mdi mdi-24px mdi-menu mdi-fw" aria-hidden="true"></i> | ||||
</a> | </a> | ||||
</div> | </div> | ||||
<div class="navbar" style="width: 94%;"> | <div class="navbar" style="width: 94%;"> | ||||
<div class="swh-navbar-content"> | <div class="swh-navbar-content"> | ||||
{% block navbar-content %}{% endblock %} | {% block navbar-content %}{% endblock %} | ||||
{% if request.resolver_match.url_name != 'swh-web-homepage' and request.resolver_match.url_name != 'browse-search' %} | {% if request.resolver_match.url_name != 'swh-web-homepage' and request.resolver_match.url_name != 'browse-search' %} | ||||
<form class="form-horizontal d-none d-md-flex input-group swh-search-navbar" | <form class="form-horizontal d-none d-md-flex input-group swh-search-navbar needs-validation" | ||||
id="swh-origins-search-top"> | id="swh-origins-search-top"> | ||||
<input class="form-control" | <input class="form-control" | ||||
placeholder="Enter a SWHID to resolve or keyword(s) to search for in origin URLs" | placeholder="Enter a SWHID to resolve or keyword(s) to search for in origin URLs" | ||||
type="text" id="swh-origins-search-top-input"/> | type="text" id="swh-origins-search-top-input" | ||||
oninput="swh.webapp.validateSWHIDInput(this)" required/> | |||||
<div class="input-group-append"> | <div class="input-group-append"> | ||||
<button class="btn btn-primary" type="submit"> | <button class="btn btn-primary" type="submit"> | ||||
<i class="swh-search-icon mdi mdi-24px mdi-magnify" aria-hidden="true"></i> | <i class="swh-search-icon mdi mdi-24px mdi-magnify" aria-hidden="true"></i> | ||||
</button> | </button> | ||||
</div> | </div> | ||||
</form> | </form> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |