blob: 210cf3360c2e33cec5a20fc766c1d56ca7ffc216 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001<!DOCTYPE html>
2{% load static %}
3{% load projecttags %}
Patrick Williamsf1e5d692016-03-30 15:21:19 -05004{% load project_url_tag %}
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005<html lang="en">
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006 <head>
7 <title>
8 {% block title %} Toaster {% endblock %}
9 </title>
10 <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css"/>
11 <link rel="stylesheet" href="{% static 'css/bootstrap-responsive.min.css' %}" type='text/css'/>
12 <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'/>
13 <link rel="stylesheet" href="{% static 'css/prettify.css' %}" type='text/css'/>
14 <link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'/>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
17 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
18 <script src="{% static 'js/jquery-2.0.3.min.js' %}">
19 </script>
20 <script src="{% static 'js/jquery.cookie.js' %}">
21 </script>
22 <script src="{% static 'js/bootstrap.min.js' %}">
23 </script>
24 <script src="{% static 'js/prettify.js' %}">
25 </script>
26 <script src="{% static 'js/libtoaster.js' %}">
27 </script>
28 {% if DEBUG %}
29 <script>
30 libtoaster.debug = true;
31 </script>
32 {% endif %}
33 <script>
34 libtoaster.ctx = {
35 jsUrl : "{% static 'js/' %}",
36 htmlUrl : "{% static 'html/' %}",
37 projectsUrl : "{% url 'all-projects' %}",
38 projectsTypeAheadUrl: {% url 'xhr_projectstypeahead' as prjurl%}{{prjurl|json}},
39 {% if project.id %}
40 projectId : {{project.id}},
Patrick Williamsf1e5d692016-03-30 15:21:19 -050041 projectPageUrl : {% url 'project' project.id as purl %}{{purl|json}},
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042 projectName : {{project.name|json}},
43 recipesTypeAheadUrl: {% url 'xhr_recipestypeahead' project.id as paturl%}{{paturl|json}},
44 layersTypeAheadUrl: {% url 'xhr_layerstypeahead' project.id as paturl%}{{paturl|json}},
45 machinesTypeAheadUrl: {% url 'xhr_machinestypeahead' project.id as paturl%}{{paturl|json}},
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046 projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}},
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050047 xhrCustomRecipeUrl : "{% url 'xhr_customrecipe' %}",
Patrick Williamsc124f4f2015-09-15 14:41:29 -050048 projectId : {{project.id}},
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050049 xhrBuildRequestUrl: "{% url 'xhr_buildrequest' project.id %}",
Patrick Williamsc124f4f2015-09-15 14:41:29 -050050 {% else %}
51 projectId : undefined,
52 projectPageUrl : undefined,
53 projectName : undefined,
Patrick Williamsc124f4f2015-09-15 14:41:29 -050054 {% endif %}
55 };
56 </script>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050057 {% block extraheadcontent %}
58 {% endblock %}
59 </head>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050060
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050061 <body style="height: 100%">
Patrick Williamsc124f4f2015-09-15 14:41:29 -050062
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050063 {% csrf_token %}
64 <div id="loading-notification" class="alert lead text-center" style="display:none">
65 Loading <i class="fa-pulse icon-spinner"></i>
66 </div>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050067
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050068 <div id="change-notification" class="alert lead alert-info" style="display:none">
69 <button type="button" class="close" id="hide-alert">&times;</button>
70 <span id="change-notification-msg"></span>
71 </div>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050072
73 <div class="navbar navbar-fixed-top">
74 <div class="navbar-inner">
75 <div class="container-fluid">
76 <a class="brand logo" href="#"><img src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/></a>
77 <span class="brand">
78 <a href="/">Toaster</a>
79 {% if DEBUG %}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050080 <i class="icon-info-sign" title="<strong>Toaster version information</strong>" data-content="<dl><dt>Git branch</dt><dd>{{TOASTER_BRANCH}}</dd><dt>Git revision</dt><dd>{{TOASTER_REVISION}}</dd></dl>"></i>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050081 {% endif %}
82 </span>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050083 {% if request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050084 <ul class="nav">
Patrick Williamsf1e5d692016-03-30 15:21:19 -050085 <li {% if request.resolver_match.url_name == 'all-builds' %}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050086 class="active"
87 {% endif %}>
88 <a href="{% url 'all-builds' %}">
89 <i class="icon-tasks"></i>
90 All builds
91 </a>
92 </li>
93 <li {% if request.resolver_match.url_name == 'all-projects' %}
94 class="active"
95 {% endif %}>
96 <a href="{% url 'all-projects' %}">
97 <i class="icon-folder-open"></i>
98 All projects
99 </a>
100 </li>
101 </ul>
102 {% endif %}
103 <ul class="nav pull-right">
104 <li>
105 <a target="_blank" href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html">
106 <i class="icon-book"></i>
107 Manual
108 </a>
109 </li>
110 </ul>
111 <span class="pull-right divider-vertical"></span>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500112 <div class="btn-group pull-right">
113 <a class="btn" id="new-project-button" href="{% url 'newproject' %}">New project</a>
114 </div>
115 </div>
116 </div>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500117 </div>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500118
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500119 <div class="container-fluid top-padded">
120 <div class="row-fluid">
121 {% block pagecontent %}
122 {% endblock %}
123 </div>
124 </div>
125 </body>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500126</html>