Changeset View
Changeset View
Standalone View
Standalone View
swh/web/ui/templates/layout.html
<!DOCTYPE html> | <!DOCTYPE html> | ||||
<html lang="en"> | <html lang="en"> | ||||
<head> | <head> | ||||
<meta charset="utf-8"> | <meta charset="utf-8"> | ||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
<title>{% block title %}{% endblock %} - The Software Heritage Archive</title> | <title>{% block title %}{% endblock %} - The Software Heritage Archive</title> | ||||
<!-- BEGIN: bootstrap --> | <!-- BEGIN: bootstrap --> | ||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous"> | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous"> | ||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" crossorigin="anonymous"> | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" crossorigin="anonymous"> | ||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap-responsive.min.css') }}"> | <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap-responsive.min.css') }}"> | ||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | ||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script> | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script> | ||||
<!-- END: bootstrap --> | <!-- END: bootstrap --> | ||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}" /> | <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}" /> | ||||
<script>document.domain = "softwareheritage.org";</script> | <script>document.domain = "softwareheritage.org";</script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<div class="jumbotron"> | <div class="jumbotron"> | ||||
<div class="container"> | <div class="container"> | ||||
<h1>{{ self.title() }}</h1> | <h1>{{ self.title() }}</h1> | ||||
<nav class="navbar navbar-default"> | |||||
<div class="navbar-header"> | |||||
<button type="button" class="navbar-toggle collapsed" | |||||
data-toggle="collapse" data-target="#swh-navbar-collapse" aria-expanded="false"> | |||||
</button> | |||||
<a class="navbar-brand" href="{{ url_for('homepage') }}">SWH Archive</a> | |||||
</div> | |||||
ardumont: Seen with @jbertran: Please, fix id to `#swh-navbar-collapse` | |||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | |||||
<ul class="nav navbar-nav"> | |||||
<li><a href="https://www.softwareheritage.org">Main site</a></li> | |||||
<li role="separator" class="divider"></li> | |||||
<li><a href="{{ url_for('browse') }}">Browse</a></li> | |||||
<li role="separator" class="divider"></li> | |||||
<li><a href="{{ url_for('browse_api_doc') }}">API</a></li> | |||||
<li role="separator" class="divider"></li> | |||||
Not Done Inline Actionsthose hrefs should probably be url_fors olasd: those hrefs should probably be `url_for`s | |||||
<li><a href="{{ url_for('about') }}">About</a></li> | |||||
</ul> | |||||
</div> | |||||
</nav> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
{% with messages = get_flashed_messages(with_categories=true) %} | {% with messages = get_flashed_messages(with_categories=true) %} | ||||
{% if messages %} | {% if messages %} | ||||
<div class="container messages"> | <div class="container messages"> | ||||
{% for category, message in messages %} | {% for category, message in messages %} | ||||
<div class="alert alert-{{ category }}" role="alert">{{ message }}</div> | <div class="alert alert-{{ category }}" role="alert">{{ message }}</div> | ||||
{% endfor %} | {% endfor %} | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
{% endwith %} | {% endwith %} | ||||
<div class="container content"> | <div class="container content"> | ||||
{% block content %}{% endblock %} | {% block content %}{% endblock %} | ||||
</div> | </div> | ||||
</body> | </body> | ||||
</html> | </html> |
Seen with @jbertran: Please, fix id to #swh-navbar-collapse