aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/fixmybarangay
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/fixmybarangay')
-rw-r--r--templates/web/fixmybarangay/around/tabbed_lists.html2
-rw-r--r--templates/web/fixmybarangay/auth/sign_out.html8
-rw-r--r--templates/web/fixmybarangay/header.html20
-rw-r--r--templates/web/fixmybarangay/report/_message_manager.html2
-rwxr-xr-xtemplates/web/fixmybarangay/reports/index.html33
5 files changed, 21 insertions, 44 deletions
diff --git a/templates/web/fixmybarangay/around/tabbed_lists.html b/templates/web/fixmybarangay/around/tabbed_lists.html
index c9f1c2a38..342b03f0e 100644
--- a/templates/web/fixmybarangay/around/tabbed_lists.html
+++ b/templates/web/fixmybarangay/around/tabbed_lists.html
@@ -1,4 +1,4 @@
-[% allow_creation = !c.cobrand.only_authed_can_create || (c.user && c.user.from_council);
+[% allow_creation = !c.cobrand.only_authed_can_create || (c.user && c.user.from_body);
IF allow_creation %]
<menu id="problems-nav" class="tab-nav">
diff --git a/templates/web/fixmybarangay/auth/sign_out.html b/templates/web/fixmybarangay/auth/sign_out.html
deleted file mode 100644
index 11888089a..000000000
--- a/templates/web/fixmybarangay/auth/sign_out.html
+++ /dev/null
@@ -1,8 +0,0 @@
-[% INCLUDE 'header.html', title = loc('Sign out'), bodyclass = 'fullwidthpage' %]
-
-<h1>[% loc('You have been signed out') %]</h1>
-
-<p>Please feel free to <a href="[% c.uri_for('/auth') %]">sign in again</a>, or
-go back to the <a href="/">FixMyBarangay front page</a>.</p>
-
-[% INCLUDE 'footer.html' %]
diff --git a/templates/web/fixmybarangay/header.html b/templates/web/fixmybarangay/header.html
index 911a72022..06a8b71a1 100644
--- a/templates/web/fixmybarangay/header.html
+++ b/templates/web/fixmybarangay/header.html
@@ -11,23 +11,25 @@
<meta name="HandHeldFriendly" content="true">
<meta name="mobileoptimized" content="0">
- <link rel="stylesheet" href="[% version('/cobrands/fixmybarangay/base.css') %]">
- <link rel="stylesheet" href="[% version('/cobrands/fixmybarangay/layout.css') %]" media="(min-width:48em)">
+[% SET start = c.config.ADMIN_BASE_URL IF admin %]
+
+ <link rel="stylesheet" href="[% start %][% version('/cobrands/fixmybarangay/base.css') %]">
+ <link rel="stylesheet" href="[% start %][% version('/cobrands/fixmybarangay/layout.css') %]" media="(min-width:48em)">
[% extra_css %]
<!--[if (lt IE 9) & (!IEMobile)]>
- <link rel="stylesheet" href="[% version('/cobrands/fixmybarangay/layout.css') %]">
+ <link rel="stylesheet" href="[% start %][% version('/cobrands/fixmybarangay/layout.css') %]">
<![endif]-->
- <script src="[% version('/js/modernizr.custom.js') %]" charset="utf-8"></script>
- <script src="[% version('/cobrands/fixmybarangay/position_map.js') %]" charset="utf-8"></script>
+ <script src="[% start %][% version('/js/modernizr.custom.js') %]" charset="utf-8"></script>
+ <script src="[% start %][% version('/cobrands/fixmybarangay/position_map.js') %]" charset="utf-8"></script>
[% INCLUDE 'common_header_tags.html', site_title = 'FixMyBarangay', js_override = '/cobrands/fixmystreet/fixmystreet.js' %]
[% extra_js %]
- [% allow_creation = !c.cobrand.only_authed_can_create || (c.user && c.user.from_council); %]
+ [% allow_creation = !c.cobrand.only_authed_can_create || (c.user && c.user.from_body); %]
[% IF allow_creation %]
- <link rel="stylesheet" href="[% version('/js/fancybox/jquery.fancybox-1.3.4.css') %]">
- <script src="[% version('/js/fancybox/jquery.fancybox-1.3.4.pack.js') %]" charset="utf-8"></script>
- <script src="[% version('/cobrands/fixmybarangay/message_manager_client.js') %]" charset="utf-8"></script>
+ <link rel="stylesheet" href="[% start %][% version('/js/fancybox/jquery.fancybox-1.3.4.css') %]">
+ <script src="[% start %][% version('/js/fancybox/jquery.fancybox-1.3.4.pack.js') %]" charset="utf-8"></script>
+ <script src="[% start %][% version('/cobrands/fixmybarangay/message_manager_client.js') %]" charset="utf-8"></script>
<script>
$(document).ready(function() {
diff --git a/templates/web/fixmybarangay/report/_message_manager.html b/templates/web/fixmybarangay/report/_message_manager.html
index 950ed2db8..2860689be 100644
--- a/templates/web/fixmybarangay/report/_message_manager.html
+++ b/templates/web/fixmybarangay/report/_message_manager.html
@@ -1,4 +1,4 @@
-[% IF c.user && c.user.from_council %]
+[% IF c.user && c.user.from_body %]
[% IF problem.external_source_id && problem.external_source == c.config.MESSAGE_MANAGER_URL %]
<p class="mm-submitted-by-sms">
diff --git a/templates/web/fixmybarangay/reports/index.html b/templates/web/fixmybarangay/reports/index.html
index 2d8da17c6..984e0d472 100755
--- a/templates/web/fixmybarangay/reports/index.html
+++ b/templates/web/fixmybarangay/reports/index.html
@@ -22,17 +22,16 @@
</thead>
<tbody>
-[% FOREACH area IN areas_info_sorted %]
+[% FOREACH body IN bodies %]
<tr align="center"
-[%- IF area.generation_high == 10 %] class="gone"
-[%- ELSIF ! (loop.count % 2) %] class="a"
+[%- IF ! (loop.count % 2) %] class="a"
[%- END %]>
-<td class="title"><a href="[% area.url %]">[% area.name %]</a></td>
-<td class="data">[% open.${area.id}.new or 0 %]</td>
-<td class="data">[% open.${area.id}.older or 0 %]</td>
-<td class="data">[% open.${area.id}.unknown or 0 %]</td>
-<td class="data">[% fixed.${area.id}.new or 0 %]</td>
-<td class="data">[% fixed.${area.id}.old or 0 %]</td>
+<td class="title"><a href="[% body.url(c) %]">[% body.name %]</a></td>
+<td class="data">[% open.${body.id}.new or 0 %]</td>
+<td class="data">[% open.${body.id}.older or 0 %]</td>
+<td class="data">[% open.${body.id}.unknown or 0 %]</td>
+<td class="data">[% fixed.${body.id}.new or 0 %]</td>
+<td class="data">[% fixed.${body.id}.old or 0 %]</td>
</tr>
[% TRY %][% PROCESS "reports/_extras.html" %][% CATCH file %][% END %]
[% END %]
@@ -40,20 +39,4 @@
</table>
-<p>
-[%# (this will change when we have 'body' logic in place, meanwhile: hardcoded) %]
-See also the maps of reports submitted to these departments:
-</p>
-<ul>
-<li>
-<a href="/reports/depw" title="Department of Engineering and Public Works">DEPW</a> &mdash; city road maintenance
-</li>
-<li>
-<a href="/reports/dps" title="Department of Public Services">DPS</a> &mdash; streetlight maintenance
-</li>
-<li>
-<a href="/reports/dpwh" title="Department of Public Works and Highways">DPWH</a> &mdash; national road maintenance
-</li>
-</ul>
-</p>
[% INCLUDE 'footer.html', pagefooter = 'yes' %]