forked from KolibriOS/kolibrios.org
feat/flask: global locales and templates rework
Now list of locales is autogenerated from locales .ini files, and each locale use shared template files
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ lang }}" onmouseup="dropdown_hide()">
|
||||
|
||||
{% include 'tmpl/_header.htm' %}
|
||||
|
||||
<body onkeydown="checkkey(event)">
|
||||
|
||||
{% include 'tmpl/_lang-dropdown.htm' %}
|
||||
|
||||
{% include 'tmpl/_menu.htm' %}
|
||||
|
||||
<div id="article">
|
||||
<h1>{{ locale['downloads']['header'] }}</h1>
|
||||
<table>
|
||||
{% for ext, alt in (
|
||||
('img', 'floppy'),
|
||||
('iso', 'cd'),
|
||||
('distr', 'universal'),
|
||||
('raw', 'uefi')
|
||||
) %}
|
||||
<tr class="tr-margin-bot">
|
||||
<td class="td-image" width="40">
|
||||
<img src="{{ url_for('static', filename='img/icons/i_%s.png' % alt) }}" alt="{{ alt }}">
|
||||
</td>
|
||||
<td class="td-description">
|
||||
{{ locale['downloads']['%s-descr' % ext] }}
|
||||
{% if ext == 'raw' %}
|
||||
<span class="beta">BETA</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="td-date">
|
||||
$autobuild_date_ru
|
||||
</td>
|
||||
<td class="td-languages">
|
||||
{% for l, lang in (
|
||||
('en_US', 'English'),
|
||||
('ru_RU', 'Русский'),
|
||||
('es_ES', 'Español')
|
||||
) %}
|
||||
<a href="//builds.kolibrios.org/{{ l }}/latest-{{ ext }}.7z"
|
||||
title="ver. $autobuild_cmtid_{{ l }}, $autobuild_size_{{ l }}_{{ ext }}">{{ lang }}</a>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<hr />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="tr-margin-top">
|
||||
<td class="td-description" colspan="2">
|
||||
<div role="button" class="help-button"
|
||||
onclick="alert('{{ locale.downloads.download_help }}');">
|
||||
{{ locale['downloads']['download_choice'] }}
|
||||
</div>
|
||||
<td class="td-date">
|
||||
<a href="//archive.kolibrios.org/ru/">{{ locale['downloads']['prev_rev'] }}</a>
|
||||
</td>
|
||||
<td class="td-languages">
|
||||
<a href="//builds.kolibrios.org/">{{ locale['downloads']['all_rev'] }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
{{ locale['downloads']['download_description[0]'] }}
|
||||
<a href='http://www.7-zip.org' target='_blank'>7zip</a>.
|
||||
<b>{{ locale['title']['index'] }}</b> {{ locale['downloads']['download_description[1]'] }}
|
||||
<a href='http://www.gnu.org/licenses/gpl-2.0.html' target='_blank'>GPLv2</a>,
|
||||
{{ locale['downloads']['download_description[2]'] }}
|
||||
<a href='https://git.kolibrios.org'>{{ locale['downloads']['download_description[3]'] }}</a>.
|
||||
</p>
|
||||
|
||||
<h1>{{ locale['screenshots']['header'] }}</h1>
|
||||
|
||||
<div id="screen" onclick="next()">
|
||||
<div id="show">
|
||||
{% for i in range(1, 7) %}
|
||||
<img
|
||||
id="slide{{ i }}"
|
||||
src="{{ url_for('static', filename='img/screenshots/%d.png' % i ) }}"
|
||||
{% if i == 1 %}class="visible"{% endif %}
|
||||
alt="{{ locale['screenshots']['%d' % i] }}"
|
||||
>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div id="carousel"></div>
|
||||
<div id="dots"></div>
|
||||
</div>
|
||||
|
||||
{% include 'tmpl/_footer.htm' %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user