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