Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | {% extends "basebuilddetailpage.html" %} |
| 2 | |
| 3 | {% load projecttags %} |
| 4 | {% load humanize %} |
| 5 | {% block localbreadcrumb %} |
| 6 | <li><a href="{% url 'recipes' build.pk %}">Recipes</a></li> |
| 7 | <li>{{recipe.name}}_{{recipe.version}} </li> |
| 8 | {% endblock %} |
| 9 | |
| 10 | {% block pagedetailinfomain %} |
| 11 | |
| 12 | <!-- Begin container --> |
| 13 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 14 | <div class="row"> |
| 15 | <div class="col-md-12"> |
| 16 | <div class="page-header build-data"> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | <h1>{{recipe.name}}_{{recipe.version}}</h1> |
| 18 | </div> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 19 | </div> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | </div> |
| 21 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 22 | <div class="row"> |
| 23 | <div class="col-md-8 tabbable"> |
| 24 | <ul class="nav nav-tabs"> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | <li> |
| 26 | <a href="{% url "recipe" build.pk recipe.id "1" %}"> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 27 | <span class="glyphicon glyphicon-question-sign get-help" title="Build-related |
| 28 | information about the recipe"></span> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 29 | Recipe details |
| 30 | </a> |
| 31 | </li> |
| 32 | <li class="active"> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 33 | <a href="#packages-built" data-toggle="tab"> |
| 34 | <span class="glyphicon glyphicon-question-sign get-help" title="The packaged |
| 35 | output resulting from building the recipe"></span> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | Packages ({{object_count}}) |
| 37 | </a> |
| 38 | </li> |
| 39 | <li> |
| 40 | <a href="{% url "recipe" build.pk recipe.id "3" %}"> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 41 | <span class="glyphicon glyphicon-question-sign get-help" title="The recipe |
| 42 | build-time dependencies (i.e. other recipes)"></span> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | Build dependencies ({{recipe.r_dependencies_recipe.all.count}}) |
| 44 | </a> |
| 45 | </li> |
| 46 | <li> |
| 47 | <a href="{% url "recipe" build.pk recipe.id "4" %}"> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 48 | <span class="glyphicon glyphicon-question-sign get-help" title="The recipe |
| 49 | build-time reverse dependencies (i.e. the recipes that |
| 50 | depend on this recipe)"></span> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 51 | Reverse build dependencies ({{recipe.r_dependencies_depends.all.count}}) |
| 52 | </a> |
| 53 | </li> |
| 54 | </ul> |
| 55 | <div class="tab-content"> |
| 56 | {# <div class="tab-pane active" id="packages-built" name="packages-built">#} |
| 57 | <div class="tab-pane active" id="packages-built"> |
| 58 | {% if not objects and not request.GET.search %} |
| 59 | <div class="alert alert-info"> |
| 60 | <strong>{{recipe.name}}_{{recipe.version}}</strong> does not build any packages. |
| 61 | </div> |
| 62 | |
| 63 | {% elif not objects %} |
| 64 | {# have empty search results, no table nor pagination #} |
| 65 | {% with "packages" as search_what %} |
| 66 | {% include "detail_search_header.html" %} |
| 67 | {% endwith %} |
| 68 | |
| 69 | {% else %} |
| 70 | |
| 71 | |
| 72 | {% with "packages" as search_what %} |
| 73 | {% include "detail_search_header.html" %} |
| 74 | {% endwith %} |
| 75 | <table class="table table-bordered table-hover tablesorter" id="otable"> |
| 76 | {% include "detail_sorted_header.html" %} |
| 77 | |
| 78 | <tbody> |
| 79 | {% for package in objects %} |
| 80 | |
| 81 | <tr> |
| 82 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 83 | <td>{{package.version}}_{{package.revision}}</td> |
| 84 | <td class="sizecol">{{package.size|filtered_filesizeformat}}</td> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 85 | </tr> |
| 86 | |
| 87 | {% endfor %} |
| 88 | |
| 89 | {% endif %} |
| 90 | {% if objects %} |
| 91 | </tbody> |
| 92 | </table> |
| 93 | {% include "detail_pagination_bottom.html" %} |
| 94 | {% endif %} |
| 95 | </div> {# tab-pane #} |
| 96 | </div> {# tab-content #} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 97 | </div> {# col-md-8 #} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 98 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 99 | <div class="col-md-4"> |
| 100 | <div class="well"> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 101 | <h2>About {{recipe.name}}</h2> |
| 102 | <dl class="item-info"> |
| 103 | {% if recipe.summary %} |
| 104 | <dt>Summary</dt> |
| 105 | <dd>{{recipe.summary}}</dd> |
| 106 | {% endif %} |
| 107 | {% if recipe.description %} |
| 108 | <dt>Description</dt> |
| 109 | <dd>{{recipe.description}}</dd> |
| 110 | {% endif %} |
| 111 | {% if recipe.homepage %} |
| 112 | <dt>Homepage</dt> |
| 113 | <dd><a href="{{recipe.homepage}}">{{recipe.homepage}}</a></dd> |
| 114 | {% endif %} |
| 115 | {% if recipe.bugtracker %} |
| 116 | <dt>Bugtracker</dt> |
| 117 | <dd><a href="{{recipe.bugtracker}}">{{recipe.bugtracker}}</a></dd> |
| 118 | {% endif %} |
| 119 | {% if recipe.section %} |
| 120 | <dt> |
| 121 | Section |
| 122 | <i class="icon-question-sign get-help" title="The section in which recipes should be categorized"></i> |
| 123 | </dt> |
| 124 | <dd>{{recipe.section}}</dd> |
| 125 | {% endif %} |
| 126 | {% if recipe.license %} |
| 127 | <dt>License</dt> |
| 128 | <dd>{{recipe.license}}</dd> |
| 129 | {% endif %} |
| 130 | </dl> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 131 | </div> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 132 | </div> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 133 | |
| 134 | </div> <!-- end row --> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 135 | {% endblock pagedetailinfomain %} |