[% INCLUDE 'navigation/_report.html' %]
[%~ IF c.user_exists ~%]
[%~ INCLUDE navitem uri='/my' label=loc('Your account') ~%]
[%~ ELSE ~%]
[%~ INCLUDE navitem uri='/auth' label=loc('Sign in') ~%]
[%~ END ~%]
[%~ IF c.user_exists AND c.user.has_body_permission_to('planned_reports') ~%]
[%~ INCLUDE navitem always_url=1 uri='/my/planned' label=loc('Shortlist') ~%]
[%~ END ~%]
[%~
IF c.user_exists AND c.user.from_body AND ( c.user.categories.size OR c.user.area_ids.size );
reports_uri = '/my/inspector_redirect';
ELSE;
reports_uri = '/reports';
IF c.cobrand.council_area;
body_name = c.cobrand.council_area | uri;
reports_uri = "${reports_uri}/${body_name}";
END;
END;
INCLUDE navitem uri=reports_uri label=loc('Problems');
~%]
[%~
IF pc;
pc_uri = pc | uri;
pc_suffix = "/list?pc=" _ pc_uri;
END;
INCLUDE navitem uri='/alert' label=loc('Local alerts') suffix=pc_suffix;
~%]
[%~ UNLESS hide_privacy_link ~%]
[%~ INCLUDE navitem uri=c.cobrand.privacy_policy_url label=loc('Privacy') liattrs='class="nav-menu__item--privacy"' ~%]
[%~ END ~%]
[%~ IF c.user_exists AND c.cobrand.admin_allow_user(c.user) ~%]
[%~ INCLUDE navitem uri='/admin' label=loc('Admin') ~%]
[%~ END ~%]