60 def get_topmenue(): |
60 def get_topmenue(): |
61 newest_date = get_newest_date() |
61 newest_date = get_newest_date() |
62 menue = [ |
62 menue = [ |
63 ('/ozoneloss', _(u'Ozoneloss'), |
63 ('/ozoneloss', _(u'Ozoneloss'), |
64 (('/ozoneloss', _(u'overview')), |
64 (('/ozoneloss', _(u'overview')), |
65 ('/ozoneloss/clams/2019', _(u'calculations')), |
65 ('/ozoneloss/clams/2020', _(u'calculations')), |
66 ('/ozoneloss/vpsc/2019', _(u'estimations')), |
66 ('/ozoneloss/vpsc/2020', _(u'estimations')), |
67 ('/ozoneloss/uvi', _(u'uv increase')), |
67 ('/ozoneloss/uvi', _(u'uv increase')), |
68 ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')))), |
68 ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')))), |
69 ('/eskp', _(u'ESKP'), (None, None)), |
69 ('/eskp', _(u'ESKP'), (None, None)), |
70 ('/iek-7', _(u'IEK-7'), (None, None)) |
70 ('/iek-7', _(u'IEK-7'), (None, None)) |
71 ] |
71 ] |
75 app.jinja_env.globals.update(get_topmenue=get_topmenue) |
75 app.jinja_env.globals.update(get_topmenue=get_topmenue) |
76 |
76 |
77 |
77 |
78 def get_o3lossclams_dates(): |
78 def get_o3lossclams_dates(): |
79 menue = [ |
79 menue = [ |
|
80 ('/ozoneloss/clams/2020', _(u'2020')), |
80 ('/ozoneloss/clams/2019', _(u'2019')), |
81 ('/ozoneloss/clams/2019', _(u'2019')), |
81 ('/ozoneloss/clams/2018', _(u'2018')), |
82 ('/ozoneloss/clams/2018', _(u'2018')), |
82 ('/ozoneloss/clams/2017', _(u'2017')), |
83 ('/ozoneloss/clams/2017', _(u'2017')), |
83 ('/ozoneloss/clams/2016', _(u'2016')), |
84 ('/ozoneloss/clams/2016', _(u'2016')), |
84 ('/ozoneloss/clams/2015', _(u'2015')), |
85 ('/ozoneloss/clams/2015', _(u'2015')), |
133 return menue |
134 return menue |
134 |
135 |
135 |
136 |
136 def get_vpsc_dates(): |
137 def get_vpsc_dates(): |
137 menue = [ |
138 menue = [ |
|
139 ('/ozoneloss/vpsc/2020', _(u'2020')), |
138 ('/ozoneloss/vpsc/2019', _(u'2019')), |
140 ('/ozoneloss/vpsc/2019', _(u'2019')), |
139 ('/ozoneloss/vpsc/2018', _(u'2018')), |
141 ('/ozoneloss/vpsc/2018', _(u'2018')), |
140 ('/ozoneloss/vpsc/2017', _(u'2017')), |
142 ('/ozoneloss/vpsc/2017', _(u'2017')), |
141 ('/ozoneloss/vpsc/2016', _(u'2016')), |
143 ('/ozoneloss/vpsc/2016', _(u'2016')), |
142 ('/ozoneloss/vpsc/2015', _(u'2015')), |
144 ('/ozoneloss/vpsc/2015', _(u'2015')), |