%inherit file="master.html"/> <%namespace name="json" module="json"/> <% from urllib.parse import urljoin from bodhi.server import models from bodhi.server.config import config install_command = update.install_command %> <%block name="pagetitle"> ${update.alias} — ${update.type} update for ${update.get_title(amp=True,beautify=True) | h} — Fedora Updates System %block> <% update.bugs.sort(key = lambda x: x.bug_id) %> <%block name="css"> ${parent.css()} %block> <% actions = {} if can_edit and update.release.composed_by_bodhi: if not update.locked: if not update.pushed: if update.request is None: if update.status.value != 'testing': actions['push to testing'] = True else: actions['revoke'] = True elif update.pushed and (update.status.value != 'stable' or (update.status.value == 'stable' and 'releng' in [group.name for group in request.user.groups])): if update.request: actions['revoke'] = True actions['unpush'] = True if update.meets_testing_requirements and not update.request: actions['push to stable'] = True %>
% if 'logout' in update.suggest:
${install_command}
<% koji_web_url = request.registry.settings.get('koji_web_url').strip('/') + '/' build_url = urljoin(koji_web_url, 'search?terms='+build.nvr+'&type=build&match=exact') %> ${build.nvr} | % if build.signed: % endif | % if can_edit: % if build.override: % else: % endif % endif |
${self.fragments.karma(update.get_testcase_karma(test)[0], show_digit=True, zero_thumbsup=False)} | ${self.fragments.karma(update.get_testcase_karma(test)[1], show_digit=True, zero_thumbsup=True)} | ${self.util.testcase_link(test) | n} |