Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | {% load static %} |
| 3 | {% load projecttags %} |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 4 | {% load project_url_tag %} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | <html lang="en"> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 6 | <head> |
| 7 | <title> |
| 8 | {% block title %} Toaster {% endblock %} |
| 9 | </title> |
| 10 | <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css"/> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 11 | <!--link rel="stylesheet" href="{% static 'css/bootstrap-theme.css' %}" type="text/css"/--> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 12 | <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'/> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 13 | <link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'/> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | |
| 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 Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 23 | <script src="{% static 'js/typeahead.jquery.js' %}"> |
| 24 | </script> |
| 25 | <script src="{% static 'js/jsrender.min.js' %}"> |
| 26 | </script> |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | <script src="{% static 'js/highlight.pack.js' %}"> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | </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 Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 37 | $.views.settings.delimiters("<%", "%>"); |
| 38 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | 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 Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 46 | projectPageUrl : {% url 'project' project.id as purl %}{{purl|json}}, |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 47 | xhrProjectUrl : {% url 'xhr_project' project.id as pxurl %}{{pxurl|json}}, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 48 | 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 52 | distrosTypeAheadUrl: {% url 'xhr_distrostypeahead' project.id as paturl%}{{paturl|json}}, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}}, |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 54 | xhrCustomRecipeUrl : "{% url 'xhr_customrecipe' %}", |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 55 | projectId : {{project.id}}, |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 56 | xhrBuildRequestUrl: "{% url 'xhr_buildrequest' project.id %}", |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 57 | mostRecentBuildsUrl: "{% url 'most_recent_builds' %}?project_id={{project.id}}", |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 58 | {% else %} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 59 | mostRecentBuildsUrl: "{% url 'most_recent_builds' %}", |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 60 | projectId : undefined, |
| 61 | projectPageUrl : undefined, |
| 62 | projectName : undefined, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 63 | {% endif %} |
| 64 | }; |
| 65 | </script> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 66 | {% block extraheadcontent %} |
| 67 | {% endblock %} |
| 68 | </head> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 69 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 70 | <body> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 71 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 72 | {% csrf_token %} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 73 | <div id="loading-notification" class="alert alert-warning lead text-center" style="display:none"> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 74 | Loading <i class="fa-pulse icon-spinner"></i> |
| 75 | </div> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 76 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 77 | <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">×</button> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 79 | <span id="change-notification-msg"></span> |
| 80 | </div> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 81 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 82 | <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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 96 | {% if DEBUG %} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 97 | <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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 98 | {% endif %} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 99 | </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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 104 | <li id="navbar-all-builds" |
| 105 | {% if request.resolver_match.url_name == 'all-builds' %} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 106 | class="active" |
| 107 | {% endif %}> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 108 | <a href="{% url 'all-builds' %}"> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 109 | <i class="glyphicon glyphicon-tasks"></i> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 110 | All builds |
| 111 | </a> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 112 | </li> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 113 | {% if project_enable %} |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 114 | <li id="navbar-all-projects" |
| 115 | {% if request.resolver_match.url_name == 'all-projects' %} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 116 | class="active" |
| 117 | {% endif %}> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 118 | <a href="{% url 'all-projects' %}"> |
| 119 | <i class="icon-folder-open"></i> |
| 120 | All projects |
| 121 | </a> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 122 | </li> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 123 | {% endif %} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 124 | {% endif %} |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 125 | <li id="navbar-docs"> |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 126 | <a target="_blank" href="https://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html"> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 127 | <i class="glyphicon glyphicon-book"></i> |
| 128 | Documentation |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 129 | </a> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 130 | </li> |
| 131 | </ul> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 132 | {% if project_enable %} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 133 | <a class="btn btn-default navbar-btn navbar-right" id="new-project-button" href="{% url 'newproject' %}">New project</a> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 134 | {% endif %} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 135 | </div> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 136 | </div> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 137 | </nav> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 138 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 139 | <div class="container-fluid"> |
| 140 | {% block pagecontent %} |
| 141 | {% endblock %} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 142 | </div> |
| 143 | </body> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 144 | </html> |