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"/> |
| 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
| 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 Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 41 | projectPageUrl : {% url 'project' project.id as purl %}{{purl|json}}, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}}, |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 47 | xhrCustomRecipeUrl : "{% url 'xhr_customrecipe' %}", |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 48 | projectId : {{project.id}}, |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 49 | xhrBuildRequestUrl: "{% url 'xhr_buildrequest' project.id %}", |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 50 | {% else %} |
| 51 | projectId : undefined, |
| 52 | projectPageUrl : undefined, |
| 53 | projectName : undefined, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 54 | {% endif %} |
| 55 | }; |
| 56 | </script> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 57 | {% block extraheadcontent %} |
| 58 | {% endblock %} |
| 59 | </head> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 60 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 61 | <body style="height: 100%"> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 62 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 63 | {% 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 67 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 68 | <div id="change-notification" class="alert lead alert-info" style="display:none"> |
| 69 | <button type="button" class="close" id="hide-alert">×</button> |
| 70 | <span id="change-notification-msg"></span> |
| 71 | </div> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 72 | |
| 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 Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 80 | <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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 81 | {% endif %} |
| 82 | </span> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 83 | {% if request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 84 | <ul class="nav"> |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 85 | <li {% if request.resolver_match.url_name == 'all-builds' %} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 86 | 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 Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 112 | <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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 117 | </div> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 118 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 119 | <div class="container-fluid top-padded"> |
| 120 | <div class="row-fluid"> |
| 121 | {% block pagecontent %} |
| 122 | {% endblock %} |
| 123 | </div> |
| 124 | </div> |
| 125 | </body> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 126 | </html> |