3434class ToolsOverView (TitleMixin , TemplateView ):
3535 title = gettext_lazy ("Tools" )
3636 template_name = "gcampustools/tools.html"
37+ description = gettext_lazy (
38+ "GewässerCampus provides tools that help you to easily "
39+ "perform and analyze measurements. Calculate chemical "
40+ "parameters from optical densities or view documents and "
41+ "support material for a successful measurement."
42+ )
43+
44+
45+ _DESCRIPTION = gettext_lazy (
46+ "This tool helps you to convert the optical density you measured "
47+ "with the photometer into the value of the specific parameter. "
48+ "It uses a standard calibration which has been prepared by the "
49+ "GewässerCampus team."
50+ )
3751
3852
3953class MeasurementKitOverView (TitleMixin , ListView ):
4054 title = gettext_lazy ("Measurement Kits" )
55+ description = _DESCRIPTION
4156 template_name = "gcampustools/measurement_kit_overview.html"
4257 model = MeasurementKit
4358 queryset = MeasurementKit .objects .filter (calibrations__isnull = False ).distinct ()
4459
4560
4661class ODConverterOverView (TitleMixin , ListView ):
4762 title = gettext_lazy ("Optical Density Converter" )
63+ description = _DESCRIPTION
4864 template_name = "gcampustools/od_converter_overview.html"
4965 model = ParameterType
5066 kit : MeasurementKit
@@ -69,6 +85,7 @@ def get_context_data(self, **kwargs):
6985
7086class ODConverterDetailView (TitleMixin , DetailView ):
7187 title = gettext_lazy ("Optical Density Converter" )
88+ description = _DESCRIPTION
7289 template_name = "gcampustools/od_converter_detail.html"
7390 model = ParameterType
7491 context_object_name = "parameter"
0 commit comments