Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame^] | 1 | {% extends "base.html" %} |
| 2 | {% load projecttags %} |
| 3 | {% load humanize %} |
| 4 | {% load static %} |
| 5 | {% block pagecontent %} |
| 6 | |
| 7 | {% include "projecttopbar.html" %} |
| 8 | |
| 9 | <script src="{% static 'js/customrecipe.js' %}"></script> |
| 10 | <script> |
| 11 | $(document).ready(function (){ |
| 12 | var ctx = { |
| 13 | tableApiUrl: "{% url 'recipeselectpackages' project.id recipe.pk %}?format=json" |
| 14 | }; |
| 15 | |
| 16 | try { |
| 17 | customRecipePageInit(ctx); |
| 18 | } catch (e) { |
| 19 | document.write("Sorry, An error has occurred loading this page"); |
| 20 | console.warn(e); |
| 21 | } |
| 22 | }); |
| 23 | </script> |
| 24 | |
| 25 | <div class="row-fluid span11"> |
| 26 | <div class="alert alert-success lead" id="image-created-notification" style="margin-top: 15px; display: none"> |
| 27 | <button type="button" data-dismiss="alert" class="close">x</button> |
| 28 | Your custom image <strong>{{recipe.name}}</strong> has been created. You can now add or remove packages as needed. |
| 29 | </div> |
| 30 | <div class="page-header air"> |
| 31 | <h1> |
| 32 | {{recipe.name}} |
| 33 | <small>({{recipe.base_recipe.name}})</small> |
| 34 | </h1> |
| 35 | </div> |
| 36 | </div> |
| 37 | |
| 38 | <div class="row-fluid span11"> |
| 39 | <div class="span8"> |
| 40 | <div class="button-place btn-group" style="width: 100%"> |
| 41 | <a class="btn btn-large span6" href="#" id="build-custom-image" style="width: 50%"> |
| 42 | Build {{recipe.name}} |
| 43 | </a> |
| 44 | <button class="btn btn-large span6" data-toggle="modal" data-target="#download-file" id="download" style="width: 50%"> |
| 45 | Download recipe file |
| 46 | </button> |
| 47 | </div> |
| 48 | <div id="no-package-results" class="air" style="display:none;"> |
| 49 | <div class="alert"> |
| 50 | <h3>No packages found</h3> |
| 51 | <p>You might consider <a href="all-software-recipes.html">searching the list of recipes</a> instead. If you find a recipe that matches the name of the package you want:</p> |
| 52 | <ol> |
| 53 | <li>Add the layer providing the recipe to your project</li> |
| 54 | <li>Build the recipe</li> |
| 55 | <li>Once the build completes, come back to this page and search for the package</li> |
| 56 | </ol> |
| 57 | <form class="input-append no-results"> |
| 58 | <input type="text" class="input-xlarge" value="search query"> |
| 59 | <a href="#" class="add-on btn"> |
| 60 | <i class="icon-remove"></i> |
| 61 | </a> |
| 62 | <button class="btn">Search</button> |
| 63 | <button class="btn btn-link" id="show-all">Show all packages</button> |
| 64 | </form> |
| 65 | </div> |
| 66 | </div> |
| 67 | <div id="packages-table"> |
| 68 | {% url 'recipeselectpackages' project.id recipe.id as xhr_table_url %} |
| 69 | {% with 'recipeselection' as table_name %} |
| 70 | {% with 'Add | Remove packages' as title %} |
| 71 | |
| 72 | <h2>{{title}} (<span class="table-count-{{table_name}}"></span>) </h2> |
| 73 | |
| 74 | {% include "toastertable.html" %} |
| 75 | {% endwith %} |
| 76 | {% endwith %} |
| 77 | </div> |
| 78 | </div> |
| 79 | <div class="span4 well"> |
| 80 | <h2 style="margin-bottom:20px;">About {{recipe.name}}</h2> |
| 81 | |
| 82 | <dl> |
| 83 | <dt> |
| 84 | Approx. packages included |
| 85 | <i class="icon-question-sign get-help" title="" data-original-title="The number of packages included is based on information from previous builds and from parsing layers, so we can never be sure it is 100% accurate"></i> |
| 86 | </dt> |
| 87 | <dd class="no-packages">{{recipe.packages.count}}</dd> |
| 88 | <!-- <dt> |
| 89 | Approx. package size |
| 90 | <i class="icon-question-sign get-help" title="" data-original-title="Package size is based on information from previous builds, so we can never be sure it is 100% accurate"></i> |
| 91 | </dt> |
| 92 | <dd>244.3 MB</dd> |
| 93 | <dt>Last build</dt> |
| 94 | <dd> |
| 95 | <i class="icon-ok-sign success"></i> |
| 96 | <a href="build-dashboard.html">11/06/15 15:22</a> |
| 97 | </dd> |
| 98 | <dt>Recipe file</dt> |
| 99 | <dd> |
| 100 | <code>custom-image-name.bb</code> |
| 101 | <a href="#download-file" data-toggle="modal"><i class="icon-download-alt" title="" data-original-title="Download recipe file"></i></a> |
| 102 | </dd> --> |
| 103 | <dt>Layer</dt> |
| 104 | <!-- TODO recipe details page --> |
| 105 | <dd><a href="{% url 'layerdetails' project.id recipe.base_recipe.layer_version.pk %}">{{recipe.base_recipe.layer_version.layer.name}}</a></dd> |
| 106 | <!--<dt> |
| 107 | Summary |
| 108 | </dt> |
| 109 | <dd> |
| 110 | <span class="muted">Not set</span> |
| 111 | <i class="icon-pencil" data-original-title="" title=""></i> |
| 112 | </dd> |
| 113 | <dt> |
| 114 | Description |
| 115 | </dt> |
| 116 | <dd> |
| 117 | <span class="muted">Not set</span> |
| 118 | <i class="icon-pencil" data-original-title="" title=""></i> |
| 119 | </dd> |
| 120 | <dt>Version</dt> |
| 121 | <dd> |
| 122 | 1.0 |
| 123 | <i class="icon-pencil" data-original-title="" title=""></i> |
| 124 | </dd> |
| 125 | <dt>Section</dt> |
| 126 | <dd> |
| 127 | base |
| 128 | <i class="icon-pencil" data-original-title="" title=""></i> |
| 129 | <i class="icon-trash" data-original-title="" title=""></i> |
| 130 | </dd> |
| 131 | <dt>License</dt> |
| 132 | <dd> |
| 133 | MIT |
| 134 | <i class="icon-question-sign get-help" title="" data-original-title="All custom images have their license set to MIT. This is because the license applies only to the recipe (.bb) file, and not to the image itself. To see which licenses apply to the image you must check the license manifest generated with each build"></i> |
| 135 | </dd> --> |
| 136 | </dl> |
| 137 | <i class="icon-trash no-tooltip"></i> |
| 138 | <a href="#" class="error" id="delete">Delete custom image</a> |
| 139 | </div> |
| 140 | </div> |
| 141 | |
| 142 | {% endblock %} |