From 5f978cf71067a1783caf01e64be05160b9b1e6d2 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sun, 3 Oct 2010 16:33:12 +0000 Subject: - deny readonly host modification --- root/html/includes/host_information.tt | 45 ++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/root/html/includes/host_information.tt b/root/html/includes/host_information.tt index 2c9b574..9093f98 100644 --- a/root/html/includes/host_information.tt +++ b/root/html/includes/host_information.tt @@ -1,39 +1,63 @@
+[% IF NOT host.readonly %]
+[% END %] +[% IF NOT host.readonly %] + +[% END %] -[% FOREACH mirror = c.model('Mirrors').find_mirrors %] -[% IF loop.first %] - [% END %] [% END %] +[% END %] + + +
Country +[% IF host.readonly %] +[% c.model('Mirrors').country_info(host.country).name | html %] +[% ELSE %] +[% END %]
City +[% IF host.readonly %] +[% host.city | html %] +[% ELSE %] +[% END %]
Latitude +[% IF host.readonly %] +[% host.latitude | html %] +[% ELSE %] +[% END %]
Longitude +[% IF host.readonly %] +[% host.longitude | html %] +[% ELSE %] +[% END %]
Click on the map to update latitude and longitude
Synchronized from +[% IF host.readonly %] +[% host.syncfrom | html %] +[% ELSE %] +[% FOREACH mirror = c.model('Mirrors').find_mirrors %] +[% IF loop.first %] -
Approximated bandwidth +[% IF host.readonly %] +[% c.model('Mirrors').bandwidth_name(host.bandwidth) | html %] +[% ELSE %] +[% END %]
+[% IF NOT host.readonly %] +
+[% END %]