Remove files section for request actions (bug 641988)

This commit is contained in:
Gregory Koberger 2011-03-21 17:40:17 -07:00
Родитель eacb0196cd
Коммит ff89133088
2 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -102,14 +102,15 @@
{{ form.canned_response }}
</div>
<div class="review-actions-section">
<div class="review-actions-section review-actions-tested data-toggle"
data-value="{{ actions_minimal|join("|") }}">
<label for="id_addon_files"><strong>{{ form.addon_files.label }}</strong></label>
{{ form.addon_files }}
{{ form.addon_files.errors }}
</div>
<div class="review-actions-section review-actions-tested data-toggle"
data-value="{{ actions_tested|join("|") }}">
data-value="{{ actions_minimal|join("|") }}">
<strong>{{ _('Tested on:') }}</strong>
<label>
{{ form.operating_systems.label }}

Просмотреть файл

@ -249,14 +249,16 @@ def review(request, version_id):
is_admin = acl.action_allowed(request, 'Admin', 'EditAnyAddon')
actions = form.helper.actions.items()
actions_tested = [k for (k, a) in actions if a.get('tested_on')]
# The actions we should show a minimal form form.
actions_minimal = [k for (k, a) in actions if a.get('tested_on')]
ctx = context(version=version, addon=addon,
flags=Review.objects.filter(addon=addon, flag=True),
form=form, paging=paging, canned=canned, is_admin=is_admin,
status_types=amo.STATUS_CHOICES,
has_public_files=has_public_files,
actions=actions, actions_tested=actions_tested,
actions=actions, actions_minimal=actions_minimal,
history=ActivityLog.objects.for_addons(addon)
.order_by('created')
.filter(action__in=LOG_STATUSES))