111 |
109 |
112 @app.route('/ozoneloss/vpsc/2014') |
110 @app.route('/ozoneloss/vpsc/2014') |
113 def y2014a(): |
111 def y2014a(): |
114 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
112 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
115 content = get_content(filename) |
113 content = get_content(filename) |
116 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2014", content=content, year=2014) |
114 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
|
115 explanation = get_content(filename) |
|
116 |
|
117 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2014", content=content, content_explanation=explanation, year=2014) |
117 |
118 |
118 @app.route('/ozoneloss/vpsc/2013') |
119 @app.route('/ozoneloss/vpsc/2013') |
119 def y2013a(): |
120 def y2013a(): |
120 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
121 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
121 content = get_content(filename) |
122 content = get_content(filename) |
122 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2013", content=content, year=2013) |
123 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
|
124 explanation = get_content(filename) |
|
125 |
|
126 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2014", content=content, content_explanation=explanation, year=2013) |
123 |
127 |
124 @app.route('/ozoneloss/vpsc/2012') |
128 @app.route('/ozoneloss/vpsc/2012') |
125 def y2012a(): |
129 def y2012a(): |
126 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
130 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
127 content = get_content(filename) |
131 content = get_content(filename) |
128 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2012", content=content, year=2012) |
132 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
|
133 explanation = get_content(filename) |
|
134 |
|
135 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2014", content=content, content_explanation=explanation, year=2012) |
129 |
136 |
130 @app.route('/ozoneloss/vpsc/2011') |
137 @app.route('/ozoneloss/vpsc/2011') |
131 def y2011a(): |
138 def y2011a(): |
132 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
139 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
133 content = get_content(filename) |
140 content = get_content(filename) |
134 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2011", content=content, year=2011) |
141 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
|
142 explanation = get_content(filename) |
|
143 |
|
144 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2014", content=content, content_explanation=explanation, year=2011) |
135 |
145 |
136 @app.route('/ozoneloss/vpsc/2010') |
146 @app.route('/ozoneloss/vpsc/2010') |
137 def y2010a(): |
147 def y2010a(): |
138 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
148 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
139 content = get_content(filename) |
149 content = get_content(filename) |
140 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2010", content=content, year=2010) |
150 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
|
151 explanation = get_content(filename) |
|
152 |
|
153 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2014", content=content, content_explanation=explanation, year=2011) |
141 |
154 |
142 @app.route('/de') |
155 @app.route('/de') |
143 def de(): |
156 def de(): |
144 global LANGUAGE_SELECTED |
157 global LANGUAGE_SELECTED |
145 LANGUAGE_SELECTED = "de" |
158 LANGUAGE_SELECTED = "de" |