From d86d330130b4e3b3e2795496510253ae6cd1f717 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Tue, 19 Aug 2014 19:07:17 +0400 Subject: [PATCH] Updated templates for nanoUI changes. --- nano/templates/engines_control.tmpl | 4 ++-- nano/templates/helm.tmpl | 3 +-- nano/templates/shuttle_control_console_exploration.tmpl | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/nano/templates/engines_control.tmpl b/nano/templates/engines_control.tmpl index 2e4816a3ac1..726edf27ac3 100644 --- a/nano/templates/engines_control.tmpl +++ b/nano/templates/engines_control.tmpl @@ -1,6 +1,6 @@
- {{:helper.link('Overall status', 'note', {'state' :'status'}, null, state == 'status' ? 'selected' : null)}} - {{:helper.link('Details', 'note', {'state' : 'engines'}, null, state == 'engines' ? 'selected' : null)}} + {{:helper.link('Overall status', 'note', {'state' :'status'}, null, data.state == 'status' ? 'selected' : null)}} + {{:helper.link('Details', 'note', {'state' : 'engines'}, null, data.state == 'engines' ? 'selected' : null)}}
{{if data.state == "engines"}} diff --git a/nano/templates/helm.tmpl b/nano/templates/helm.tmpl index 9fcee26fb2c..c72d0921b8f 100644 --- a/nano/templates/helm.tmpl +++ b/nano/templates/helm.tmpl @@ -6,8 +6,7 @@
Coordinates: {{:data.s_x}} : {{:data.s_y}}
- Additional information: {{:data.s_x}} : {{:data.s_y}} - {{:data.sector_info}} + Additional information: {{:data.sector_info}} diff --git a/nano/templates/shuttle_control_console_exploration.tmpl b/nano/templates/shuttle_control_console_exploration.tmpl index 0b1671c8c51..b220a44fda8 100644 --- a/nano/templates/shuttle_control_console_exploration.tmpl +++ b/nano/templates/shuttle_control_console_exploration.tmpl @@ -58,16 +58,16 @@ {{:data.destination_name}}
- {{:data.~link('Choose Destination', 'arrowreturn-1-s', {'pick' : '1'}, data.can_pick ? null : 'disabled' , null)}} + {{:helper.link('Choose Destination', 'arrowreturn-1-s', {'pick' : '1'}, data.can_pick ? null : 'disabled' , null)}}

Shuttle Control

- {{:data.~link('Launch Shuttle', 'arrowthickstop-1-e', {'move' : '1'}, data.can_launch ? null : 'disabled' , null)}} - {{:data.~link('Cancel Launch', 'cancel', {'cancel' : '1'}, data.can_cancel ? null : 'disabled' , null)}} - {{:data.~link('Force Launch', 'alert', {'force' : '1'}, data.can_force ? null : 'disabled' , data.can_force ? 'redBackground' : null)}} + {{:helper.link('Launch Shuttle', 'arrowthickstop-1-e', {'move' : '1'}, data.can_launch ? null : 'disabled' , null)}} + {{:helper.link('Cancel Launch', 'cancel', {'cancel' : '1'}, data.can_cancel ? null : 'disabled' , null)}} + {{:helper.link('Force Launch', 'alert', {'force' : '1'}, data.can_force ? null : 'disabled' , data.can_force ? 'redBackground' : null)}}
\ No newline at end of file