base.html
3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
{% load i18n browserid conversejs gravatar %}
{% load static from staticfiles %}
<html>
<head>
{% block head %}
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
{% block metarobots %}
{% if ROBOTS_NOINDEX %}
<meta name="robots" content="noindex, nofollow" />
{% endif %}
{% endblock %}
<title>{% block title %}Colab{% endblock %} - Colab</title>
<link rel="shortcut icon" type="image/x-icon" href="{% static 'img/fav.ico' %}">
<link rel="stylesheet" href="{% static 'third-party/bootstrap/css/bootstrap.min.css' %}" type="text/css" media="screen, projection" />
<link rel="stylesheet"
href="{% static 'third-party/font-awesome/css/font-awesome.min.css' %}"
type="text/css" media="screen" />
{% if ribbon %}
<!-- Fork me Ribbons -->
<link rel="stylesheet" href="{% static 'third-party/ribbon/gh-fork-ribbon.css' %}">
<!--[if lt IE 9]>
<link rel="stylesheet" href="{% static 'third-party/ribbon/gh-fork-ribbon.ie.css' %}">
<![endif]-->
{% endif %}
<!-- JQuery 2+ won't work for IE < 9 -->
<script type="text/javascript" src="{% static 'third-party/jquery-2.0.3.min.js' %}"></script>
<script type="text/javascript" src="{% static 'third-party/jquery.debouncedresize.js' %}"></script>
<script type="text/javascript" src="{% static 'third-party/jquery.cookie.js' %}"></script>
<script src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script>
{% include "includes/google_analytics.html" %}
{% block head_js %}{% endblock %}
{% block head_css %}{% endblock %}
{% if not is_mobile %}
{% conversejs_static %}
{% endif %}
<link rel="stylesheet" href="{% static 'css/screen.css' %}"
type="text/css" media="screen" />
{% endblock %}
</head>
<!-- data-no-turbolink will disable Rails TurboLinks for all pages under Colab -->
<body data-no-turbolink>
{% if BROWSERID_ENABLED %}
{% browserid_info %}
{% endif %}
{% block ribbon %}
{% if ribbon %}
<div class="github-fork-ribbon-wrapper left-bottom">
<div class="github-fork-ribbon">
<a href="{{ ribbon.url }}">{{ ribbon.text }}</a>
</div>
</div>
{% endif %}
{% endblock %}
{% block navbar %}
{% include "header.html" %}
{% endblock %}
{% block messages %}
{% if request.GET.bid_login_failed %}
<div class="alert alert-dismissable alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
{% trans 'The login has failed. Please, try again.' %}
</div>
{% endif %}
{% for message in messages %}
<div class="alert alert-dismissable {{ message.tags }}">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
{{ message }}
</div>
{% endfor %}
<div id="alert-js" class="alert alert-dismissable alert-warning" hidden>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<span id="alert-message"></span>
</div>
{% endblock %}
<div id="main-content" class="container">
{% block main-content %}{% endblock %}
</div>
<div class="row"> </div>
{% block footer %}
{% include "footer.html" %}
{% endblock %}
{% if not is_mobile %}
{% conversejs_chatpanel %}
{% conversejs_initialize %}
{% endif %}
{% include "tz/set_utc_offset.html" %}
{% if BROWSERID_ENABLED %}
<script src="https://login.persona.org/include.js"></script>
<script src="{% static 'browserid/api.js' %}"></script>
<script src="{% static 'browserid/browserid.js' %}"></script>
{% endif %}
{% block footer_js %}{% endblock %}
</body>
</html>