<div class="backgrounded_block">
<div class="caption_v1">Odpověď:</div>
<div class="@_ANSWER_KIND_@">@_ANSWER_MESSAGE_@</div>
- <img class="titration_curve_image" src="@_TITRATION_CURVE_IMAGE_PATH_@" />
+ <img class="@_TITRATION_CURVE_IMAGE_CLASS_@" src="@_TITRATION_CURVE_IMAGE_PATH_@" />
</div>
Insert(Translations_Answer, Assoc(ANSWER_KIND_KEY, ANSWER_KIND_GOOD));
Insert(Translations_Answer, Assoc(ANSWER_MESSAGE_KEY, UB_Text_To_Fixed_String(Answer_Message)));
Insert(Translations_Answer, Assoc(Titration_Curve_Suite.TITRATION_CURVE_IMAGE_PATH_KEY, Assignment.Element(Titration_Curve_Suite.TITRATION_CURVE_IMAGE_PATH_KEY)));
+ Insert(Translations_Answer, Assoc(Titration_Curve_Suite.TITRATION_CURVE_IMAGE_CLASS_KEY, Titration_Curve_Suite.TITRATION_CURVE_IMAGE_CLASS_NORM));
Temp := Parse(Filename => "templates/titration_curve_answer_section.html", Translations => Translations_Answer);
Insert(Translations, Assoc(ANSWER_SECTION_KEY, HTML_To_Fixed_String(Temp)));
when Wrong_Answer | Malformed_Answer =>
Insert(Translations_Answer, Assoc(ANSWER_KIND_KEY, ANSWER_KIND_BAD));
Insert(Translations_Answer, Assoc(ANSWER_MESSAGE_KEY, UB_Text_To_Fixed_String(Answer_Message)));
Insert(Translations_Answer, Assoc(Titration_Curve_Suite.TITRATION_CURVE_IMAGE_PATH_KEY, "/resources/noimage.png"));
+ Insert(Translations_Answer, Assoc(Titration_Curve_Suite.TITRATION_CURVE_IMAGE_CLASS_KEY, Titration_Curve_Suite.TITRATION_CURVE_IMAGE_CLASS_NODISP));
Temp := Parse(Filename => "templates/titration_curve_answer_section.html", Translations => Translations_Answer);
Insert(Translations, Assoc(ANSWER_SECTION_KEY, HTML_To_Fixed_String(Temp)));
when others =>
ANSWER_PH_OVER_SECOND_EQUIV_KEY: constant String := "ANSWER_PH_OVER_SECOND_EQUIV";
ANSWER_VOLUME_OVER_SECOND_EQUIV_KEY: constant String := "ANSWER_VOLUME_OVER_SECOND_EQUIV";
--
+ TITRATION_CURVE_IMAGE_CLASS_KEY: constant String := "TITRATION_CURVE_IMAGE_CLASS";
+ TITRATION_CURVE_IMAGE_CLASS_NODISP: constant String := "hidden_image";
+ TITRATION_CURVE_IMAGE_CLASS_NORM: constant String := "titration_curve_image";
TITRATION_CURVE_IMAGE_PATH_KEY: constant String := "TITRATION_CURVE_IMAGE_PATH";