From a038833a7f11a4b6bc9a217b9945b95f683caa5f Mon Sep 17 00:00:00 2001 From: Ian Webster Date: Tue, 10 Apr 2018 11:46:42 -0700 Subject: [PATCH] Hide calculations when there is no CI --- lightcurve/templates/lightcurve.html | 58 ++++++++++++++-------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/lightcurve/templates/lightcurve.html b/lightcurve/templates/lightcurve.html index 41201fa..96b7ad0 100644 --- a/lightcurve/templates/lightcurve.html +++ b/lightcurve/templates/lightcurve.html @@ -212,39 +212,41 @@

Calculations

-
-

- If CI is skipped, the equation becomes: -

-

-

- Mt = (mt - mc) + Mc -
-

-
- -
- {% include 'partials/extinction.html' %} - -
+ {% if (not lightcurve.ciband or lightcurve.ciband == "NONE") and not lightcurve.color_index_manual %} +

- Now we will compute the transformation coefficient Tf and the hidden transforms for your image. + Because CI is omitted, the equation simplifies to: +

+

+

+ Mt = (mt - mc) + Mc +

-
-
Run lightcurve reductions
- -
- {% if lightcurve.is_reduction_complete %} - {% include 'partials/transformation_coefficient.html' with reduction=lightcurve.lightcurvereduction %} - {% include 'partials/hidden_transform.html' with reduction=lightcurve.lightcurvereduction %} - {% else %} -
- Your results will display here when lightcurve reductions are complete. +
+ {% include 'partials/extinction.html' %} + +
+

+ Now we will compute the transformation coefficient Tf and the hidden transforms for your image. +

+
+
Run lightcurve reductions
+ +
- {% endif %} -
+ + {% if lightcurve.is_reduction_complete %} + {% include 'partials/transformation_coefficient.html' with reduction=lightcurve.lightcurvereduction %} + {% include 'partials/hidden_transform.html' with reduction=lightcurve.lightcurvereduction %} + {% else %} +
+ Your results will display here when lightcurve reductions are complete. +
+ {% endif %} +
+ {% endif %}