68 def get_topmenue(): |
68 def get_topmenue(): |
69 newest_date = get_newest_date() |
69 newest_date = get_newest_date() |
70 menue = [ |
70 menue = [ |
71 ('/ozoneloss', _(u'Ozoneloss'), |
71 ('/ozoneloss', _(u'Ozoneloss'), |
72 (('/ozoneloss', _(u'overview')), |
72 (('/ozoneloss', _(u'overview')), |
73 ('/ozoneloss/clams/2020', _(u'calculations')), |
73 ('/ozoneloss/clams/2022', _(u'calculations')), |
74 ('/ozoneloss/vpsc/2020', _(u'estimations')), |
74 ('/ozoneloss/vpsc/2022', _(u'estimations')), |
75 ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')), |
75 ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')), |
76 ('/ozoneloss/uvi', _(u'uv increase')), |
76 ('/ozoneloss/uvi', _(u'uv increase')), |
77 ('/ozoneloss/decadal', _(u'decadal')))), |
77 ('/ozoneloss/decadal', _(u'decadal')))), |
78 ('/eskp', _(u'ESKP'), (None, None)), |
78 ('/eskp', _(u'ESKP'), (None, None)), |
79 ('/iek-7', _(u'IEK-7'), (None, None)) |
79 ('/iek-7', _(u'IEK-7'), (None, None)) |
84 app.jinja_env.globals.update(get_topmenue=get_topmenue) |
84 app.jinja_env.globals.update(get_topmenue=get_topmenue) |
85 |
85 |
86 |
86 |
87 def get_o3lossclams_dates(): |
87 def get_o3lossclams_dates(): |
88 menue = [ |
88 menue = [ |
|
89 ('/ozoneloss/clams/2022', _(u'2022')), |
89 ('/ozoneloss/clams/2020', _(u'2020')), |
90 ('/ozoneloss/clams/2020', _(u'2020')), |
90 ('/ozoneloss/clams/2019', _(u'2019')), |
91 ('/ozoneloss/clams/2019', _(u'2019')), |
91 ('/ozoneloss/clams/2018', _(u'2018')), |
92 ('/ozoneloss/clams/2018', _(u'2018')), |
92 ('/ozoneloss/clams/2017', _(u'2017')), |
93 ('/ozoneloss/clams/2017', _(u'2017')), |
93 ('/ozoneloss/clams/2016', _(u'2016')), |
94 ('/ozoneloss/clams/2016', _(u'2016')), |
143 return menue |
144 return menue |
144 |
145 |
145 |
146 |
146 def get_vpsc_dates(): |
147 def get_vpsc_dates(): |
147 menue = [ |
148 menue = [ |
|
149 ('/ozoneloss/vpsc/2022', _(u'2022')), |
148 ('/ozoneloss/vpsc/2020', _(u'2020')), |
150 ('/ozoneloss/vpsc/2020', _(u'2020')), |
149 ('/ozoneloss/vpsc/2019', _(u'2019')), |
151 ('/ozoneloss/vpsc/2019', _(u'2019')), |
150 ('/ozoneloss/vpsc/2018', _(u'2018')), |
152 ('/ozoneloss/vpsc/2018', _(u'2018')), |
151 ('/ozoneloss/vpsc/2017', _(u'2017')), |
153 ('/ozoneloss/vpsc/2017', _(u'2017')), |
152 ('/ozoneloss/vpsc/2016', _(u'2016')), |
154 ('/ozoneloss/vpsc/2016', _(u'2016')), |