aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-20 20:44:07 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-20 20:44:07 +0000
commit0064588dc965a6ef593a86038b162209942e79f0 (patch)
tree11ca01f90de8275d8ec0dc4e303aaf172b47a245 /templates
parent6e87212e860a81cafdbc988d3a46b0e4651221b8 (diff)
Hide Zurich Edit column if JS enabled.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/zurich/admin/header.html3
-rw-r--r--templates/web/zurich/admin/problem_row.html4
2 files changed, 3 insertions, 4 deletions
diff --git a/templates/web/zurich/admin/header.html b/templates/web/zurich/admin/header.html
index d27b0c6af..b620fa9f7 100644
--- a/templates/web/zurich/admin/header.html
+++ b/templates/web/zurich/admin/header.html
@@ -26,7 +26,8 @@ $(function(){
$(this).toggleClass("active");
}).click(function(){
window.location = this.getElementsByTagName('a')[0];
- });
+ }).find('td:last').hide();
+ $('table th:last').hide();
});
</script>
diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html
index f84d22711..8b1a30cb0 100644
--- a/templates/web/zurich/admin/problem_row.html
+++ b/templates/web/zurich/admin/problem_row.html
@@ -10,10 +10,8 @@
<td class="record-id">
[% IF no_edit AND problem.is_visible %]
<a href="[% c.uri_for_email( '/report', problem.id ) %]">[% problem.id %]</a>
- [% ELSIF no_edit %]
- [% problem.id %]
[% ELSE %]
- <a href="[% c.uri_for( 'report_edit', problem.id ) %]">[% problem.id %]</a>
+ [% problem.id %]
[% END %]
</td>
<td>[% PROCESS value_or_nbsp value=problem.title %]</td>