Skip to content

Commit

Permalink
Merge pull request #5211 from dimagi/revert-5182-hide-media-download
Browse files Browse the repository at this point in the history
Revert "Only show the multimedia column if ther is media"
  • Loading branch information
twymer committed Jan 6, 2015
2 parents e653fb6 + d561186 commit 2211a34
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion corehq/apps/reports/standard/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ def _sortkey(form):
if group.form_exports],
report_slug=self.slug,
property_hash=self.properties(size_hash),
has_media=self.request.project.has_media(),
)
return context

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<th>{% trans "Edit" %}</th>
{% endif %}
<th>{% trans "Download" %}</th>
{% if not deid and has_media %}
{% if not deid %}
<th>{% trans "Download Multimedia" %}</th>
{% endif %}
<th>
Expand Down Expand Up @@ -66,7 +66,7 @@
data-bind="click: requestDownload"
class="dl-export btn btn-primary"><i class="icon-download-alt icon-white"></i> {% trans "Download" %}</a>
</td>
{% if not deid and has_media %}
{% if not deid %}
<td class="cell-vertical-centered">
{% with property_hash|dict_lookup:export.name as properties %}
{% if properties.size %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ <h2>{% trans "Export Full Forms" %}</h2>
<th>{% trans "Form" %}</th>
<th>{% trans "Custom Export" %}</th>
<th>{% trans "Download" %}</th>
{% if has_media %}
<th>{% trans "Download Multimedia" %}</th>
{% endif %}
<th>{% trans "Total Submissions" %}</th>
<th>
{% trans "Add to Bulk Export" %} <i class="bulk-export-info icon-white icon-info-sign"></i>
Expand Down Expand Up @@ -300,7 +298,6 @@ <h6>{% trans "No suggestions" %}</h6>
{% trans "No Forms" %}
{% endif %}
</td>
{% if has_media %}
<td class="cell-vertical-centered">
{% if form.size %}
{% if form.app.id %}
Expand All @@ -316,7 +313,6 @@ <h6>{% trans "No suggestions" %}</h6>
<span class="label">{% trans "No Multimedia" %}</span>
{% endif %}
</td>
{% endif %}
<td>
{{ form.submissions }} {% if form.submissions %}
<i class="icon-info-sign all-users-all-time">
Expand Down

0 comments on commit 2211a34

Please sign in to comment.