blob: 2b3054936ac32ad3162d19845a4fb01c88412f36 [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"/>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060011 <!--link rel="stylesheet" href="{% static 'css/bootstrap-theme.css' %}" type="text/css"/-->
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012 <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'/>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050013 <link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'/>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
15 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
16 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
17 <script src="{% static 'js/jquery-2.0.3.min.js' %}">
18 </script>
19 <script src="{% static 'js/jquery.cookie.js' %}">
20 </script>
21 <script src="{% static 'js/bootstrap.min.js' %}">
22 </script>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060023 <script src="{% static 'js/typeahead.jquery.js' %}">
24 </script>
25 <script src="{% static 'js/jsrender.min.js' %}">
26 </script>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027 <script src="{% static 'js/highlight.pack.js' %}">
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028 </script>
29 <script src="{% static 'js/libtoaster.js' %}">
30 </script>
31 {% if DEBUG %}
32 <script>
33 libtoaster.debug = true;
34 </script>
35 {% endif %}
36 <script>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060037 $.views.settings.delimiters("<%", "%>");
38
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039 libtoaster.ctx = {
40 jsUrl : "{% static 'js/' %}",
41 htmlUrl : "{% static 'html/' %}",
42 projectsUrl : "{% url 'all-projects' %}",
43 projectsTypeAheadUrl: {% url 'xhr_projectstypeahead' as prjurl%}{{prjurl|json}},
44 {% if project.id %}
45 projectId : {{project.id}},
Patrick Williamsf1e5d692016-03-30 15:21:19 -050046 projectPageUrl : {% url 'project' project.id as purl %}{{purl|json}},
Patrick Williamsc0f7c042017-02-23 20:41:17 -060047 xhrProjectUrl : {% url 'xhr_project' project.id as pxurl %}{{pxurl|json}},
Patrick Williamsc124f4f2015-09-15 14:41:29 -050048 projectName : {{project.name|json}},
49 recipesTypeAheadUrl: {% url 'xhr_recipestypeahead' project.id as paturl%}{{paturl|json}},
50 layersTypeAheadUrl: {% url 'xhr_layerstypeahead' project.id as paturl%}{{paturl|json}},
51 machinesTypeAheadUrl: {% url 'xhr_machinestypeahead' project.id as paturl%}{{paturl|json}},
Brad Bishopd7bf8c12018-02-25 22:55:05 -050052 distrosTypeAheadUrl: {% url 'xhr_distrostypeahead' project.id as paturl%}{{paturl|json}},
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053 projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}},
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050054 xhrCustomRecipeUrl : "{% url 'xhr_customrecipe' %}",
Patrick Williamsc124f4f2015-09-15 14:41:29 -050055 projectId : {{project.id}},
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050056 xhrBuildRequestUrl: "{% url 'xhr_buildrequest' project.id %}",
Patrick Williamsc0f7c042017-02-23 20:41:17 -060057 mostRecentBuildsUrl: "{% url 'most_recent_builds' %}?project_id={{project.id}}",
Patrick Williamsc124f4f2015-09-15 14:41:29 -050058 {% else %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -060059 mostRecentBuildsUrl: "{% url 'most_recent_builds' %}",
Patrick Williamsc124f4f2015-09-15 14:41:29 -050060 projectId : undefined,
61 projectPageUrl : undefined,
62 projectName : undefined,
Patrick Williamsc124f4f2015-09-15 14:41:29 -050063 {% endif %}
64 };
65 </script>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050066 {% block extraheadcontent %}
67 {% endblock %}
68 </head>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050069
Patrick Williamsc0f7c042017-02-23 20:41:17 -060070 <body>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050071
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050072 {% csrf_token %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -060073 <div id="loading-notification" class="alert alert-warning lead text-center" style="display:none">
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050074 Loading <i class="fa-pulse icon-spinner"></i>
75 </div>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050076
Patrick Williamsc0f7c042017-02-23 20:41:17 -060077 <div id="change-notification" class="alert alert-info alert-dismissible change-notification" style="display:none">
78 <button type="button" class="close" id="hide-alert" data-toggle="alert">&times;</button>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050079 <span id="change-notification-msg"></span>
80 </div>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050081
Patrick Williamsc0f7c042017-02-23 20:41:17 -060082 <nav class="navbar navbar-default navbar-fixed-top">
83 <div class="container-fluid">
84 <div class="navbar-header">
85 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#global-nav" aria-expanded="false">
86 <span class="sr-only">Toggle navigation</span>
87 <span class="icon-bar"></span>
88 <span class="icon-bar"></span>
89 <span class="icon-bar"></span>
90 </button>
91 <div class="toaster-navbar-brand">
92 <a href="/">
93 <img class="logo" src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/>
94 </a>
95 <a class="brand" href="/">Toaster</a>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050096 {% if DEBUG %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -060097 <span class="glyphicon glyphicon-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 -050098 {% endif %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -060099 </div>
100 </div>
101 <div class="collapse navbar-collapse" id="global-nav">
102 <ul class="nav navbar-nav">
103 {% if request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %}
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500104 <li id="navbar-all-builds"
105 {% if request.resolver_match.url_name == 'all-builds' %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600106 class="active"
107 {% endif %}>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500108 <a href="{% url 'all-builds' %}">
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600109 <i class="glyphicon glyphicon-tasks"></i>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500110 All builds
111 </a>
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600112 </li>
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500113 {% if project_enable %}
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500114 <li id="navbar-all-projects"
115 {% if request.resolver_match.url_name == 'all-projects' %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600116 class="active"
117 {% endif %}>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500118 <a href="{% url 'all-projects' %}">
119 <i class="icon-folder-open"></i>
120 All projects
121 </a>
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600122 </li>
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500123 {% endif %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600124 {% endif %}
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500125 <li id="navbar-docs">
Andrew Geissler9aee5002022-03-30 16:27:02 +0000126 <a target="_blank" href="http://docs.yoctoproject.org/toaster-manual/index.html#toaster-user-manual">
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600127 <i class="glyphicon glyphicon-book"></i>
128 Documentation
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500129 </a>
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600130 </li>
131 </ul>
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500132 {% if project_enable %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600133 <a class="btn btn-default navbar-btn navbar-right" id="new-project-button" href="{% url 'newproject' %}">New project</a>
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500134 {% endif %}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500135 </div>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500136 </div>
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600137 </nav>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500138
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600139 <div class="container-fluid">
140 {% block pagecontent %}
141 {% endblock %}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500142 </div>
143 </body>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500144</html>