59 return menue |
59 return menue |
60 |
60 |
61 app.jinja_env.globals.update(get_o3lossclams_dates=get_o3lossclams_dates) |
61 app.jinja_env.globals.update(get_o3lossclams_dates=get_o3lossclams_dates) |
62 app.jinja_env.globals.update(get_vpsc_dates=get_vpsc_dates) |
62 app.jinja_env.globals.update(get_vpsc_dates=get_vpsc_dates) |
63 |
63 |
64 def author_info(name, filename): |
64 |
|
65 def modal_info(template, act, title, filename): |
65 content = get_content(filename) |
66 content = get_content(filename) |
66 html = render_template("/author_info.html", act="author", title=name, content=content, exit=_(u"Close")) |
67 print template |
|
68 html = render_template(template, act=act, title=title, content=content, exit=_(u"Close")) |
67 return html |
69 return html |
68 |
70 |
69 |
71 |
70 @babel.localeselector |
72 @babel.localeselector |
71 def get_locale(): |
73 def get_locale(): |
124 @app.route("/ozoneloss") |
126 @app.route("/ozoneloss") |
125 def ozoneloss(): |
127 def ozoneloss(): |
126 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst") |
128 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst") |
127 content = get_content(filename) |
129 content = get_content(filename) |
128 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_author.rst") |
130 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_author.rst") |
129 author = author_info(_(u"Ozoneloss"), filename) |
131 author = modal_info("/author_info.html", "author", _(u"Ozoneloss"), filename) |
|
132 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_publications.rst") |
|
133 publications = modal_info("/publications_info.html", "publications", _(u"Ozoneloss"), filename) |
130 return render_template("/ozoneloss.html", act="ozoneloss", content=content, |
134 return render_template("/ozoneloss.html", act="ozoneloss", content=content, |
131 author=author, contact = u"Dr. Jens-Uwe Grooß", publications=u"Publications" ) |
135 author=author, contact = u"Dr. Jens-Uwe Grooß", publications=publications ) |
132 |
136 |
133 @app.route("/ozoneloss/clams") |
137 @app.route("/ozoneloss/clams") |
134 def ozoneloss_clams(): |
138 def ozoneloss_clams(): |
135 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_clams.rst") |
139 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_clams.rst") |
136 content = get_content(filename) |
140 content = get_content(filename) |
145 @app.route("/iek-7") |
149 @app.route("/iek-7") |
146 def institute(): |
150 def institute(): |
147 filename = os.path.join("templates", get_locale(), "rst", "iek-7.rst") |
151 filename = os.path.join("templates", get_locale(), "rst", "iek-7.rst") |
148 content = get_content(filename) |
152 content = get_content(filename) |
149 filename = os.path.join("templates", get_locale(), "rst", "iek-7_author.rst") |
153 filename = os.path.join("templates", get_locale(), "rst", "iek-7_author.rst") |
150 author = author_info(_(u"IEK-7"), filename) |
154 author = modal_info("/author_info.html", "author", _(u"IEK-7"), filename) |
151 return render_template("/iek-7.html", act="iek-7", content=content, |
155 return render_template("/iek-7.html", act="iek-7", content=content, |
152 author=author, contact = u"Sandra Stein") |
156 author=author, contact = u"Sandra Stein") |
153 |
157 |
154 |
158 |
155 @app.route("/imprint") |
159 @app.route("/imprint") |