Download list styling

This commit is contained in:
str4d
2015-10-14 14:58:58 +00:00
parent d92e35321d
commit 434554fd73
5 changed files with 40 additions and 34 deletions

View File

@@ -84,7 +84,6 @@ or type <tt>java -version</tt> at your command prompt.
{% endcall %} {% endcall %}
{% call package('android') %} {% call package('android') %}
<p>&nbsp;</p>
<div class="warning"> <div class="warning">
{% trans -%} {% trans -%}
Requires Android 2.3 (Gingerbread) or higher. If you earlier installed Requires Android 2.3 (Gingerbread) or higher. If you earlier installed

View File

@@ -60,27 +60,14 @@
{% call package_outer(type, name, icon) %} {% call package_outer(type, name, icon) %}
<div class="file"> <div class="file">
{%- if type == 'android' %} {%- if type == 'android' %}
{% trans %}Outside I2P{% endtrans %}:
<!-- do not use url_for here --> <!-- do not use url_for here -->
<a class="default" href="https://download.i2p2.de/android/current/i2p.apk">I2P {{ i2p_android_version }}</a> <a class="default" href="https://download.i2p2.de/android/current/i2p.apk">{% trans %}Outside I2P{% endtrans %} ({{ i2p_android_version }})</a>
<br>
{% trans %}Inside I2P{% endtrans %}:
<!-- do not use i2pconv here --> <!-- do not use i2pconv here -->
<a class="default" href="http://update.killyourtv.i2p/i2p.apk">I2P {{ i2p_android_version_kytv }}</a> <a class="default" href="http://update.killyourtv.i2p/i2p.apk">{% trans %}Inside I2P{% endtrans %} ({{ i2p_android_version_kytv }})</a>
<br> <a class="default" href="https://play.google.com/store/apps/details?id=net.i2p.android">Google Play ({{ i2p_android_version }})</a>
Google Play: <a class="default" href="https://f-droid.i2p.io/">{% trans %}Our F-Droid repository{% endtrans %} ({{ i2p_android_version }})</a>
<a class="default" href="https://play.google.com/store/apps/details?id=net.i2p.android">I2P {{ i2p_android_version }}</a> <a class="default" href="https://f-droid.org/app/net.i2p.android.router">F-Droid ({{ i2p_android_version_fdroid }})</a>
<br> <a class="default" href="{{ 'http://'+i2pconv('str4d.i2p')+'/android/' }}">{% trans %}Development Builds{% endtrans %}</a>
{% trans %}Our F-Droid repository{% endtrans %}:
<a class="default" href="https://f-droid.i2p.io/">I2P {{ i2p_android_version }}</a>
<br>
F-Droid:
<a class="default" href="https://f-droid.org/app/net.i2p.android.router">I2P {{ i2p_android_version_fdroid }}</a>
<br>
{% trans %}Development Builds{% endtrans %}:
{% trans str4durl='http://'+i2pconv('str4d.i2p')+'/android/' -%}
<a class="default" href="{{ str4durl }}">str4d's eepsite</a>
{%- endtrans %}
{% else %} {% else %}
<a class="default" href="{{ url_for('downloads_redirect', version=ver(), net=def_mirror.net, protocol=def_mirror.protocol, domain=def_mirror.domain, file=ver(filename)) }}"> <a class="default" href="{{ url_for('downloads_redirect', version=ver(), net=def_mirror.net, protocol=def_mirror.protocol, domain=def_mirror.domain, file=ver(filename)) }}">
<span class="name">{{ ver(filename) }}</span><br /> <span class="name">{{ ver(filename) }}</span><br />
@@ -90,9 +77,11 @@
<a class="sig" href="{{ url_for('downloads_redirect', version=ver(), net=def_mirror.net, protocol=def_mirror.protocol, domain=def_mirror.domain, file=ver(signame)) }}">sig</a> <a class="sig" href="{{ url_for('downloads_redirect', version=ver(), net=def_mirror.net, protocol=def_mirror.protocol, domain=def_mirror.domain, file=ver(signame)) }}">sig</a>
{% endif -%} {% endif -%}
</div> </div>
<div class="meta">
<div class="hash"> <div class="hash">
<code>{{ hash }}</code> <code>{{ hash }}</code>
</div> </div>
</div>
{{ details }} {{ details }}
{% endcall %} {% endcall %}
{%- endmacro %} {%- endmacro %}

View File

@@ -212,6 +212,7 @@ div#content .inner .box {
} }
div#content .inner .meta { div#content .inner .meta {
clear: both;
text-align: center; text-align: center;
} }
@@ -347,6 +348,10 @@ div#content .inner .box img {
vertical-align: top; vertical-align: top;
} }
.details .hash {
overflow: auto;
}
.details .hash:before { .details .hash:before {
content: 'SHA256: '; content: 'SHA256: ';
font-size: 0.8125em; font-size: 0.8125em;

View File

@@ -275,24 +275,41 @@ div#content > .title {
.package .details { .package .details {
float: right; float: right;
width: 80%; width: 78%;
} }
.file { .file {
float: left; float: left;
width: 40%; width: 100%;
}
.file .default {
clear: left;
border-radius: 5px;
float: left;
max-width: 67%;
}
.file .mirrors,
.file .sig {
clear: right;
float: right;
width: 25%;
}
.file .mirrors {
border-radius: 5px 5px 0 0;
}
.file .sig {
border-radius: 0 0 5px 5px;
} }
.file > a:hover { .file > a:hover {
box-shadow: 1px 1px 1px 1px rgb(51, 51, 51) inset box-shadow: 1px 1px 1px 1px rgb(51, 51, 51) inset
} }
.details .hash { .details > div,
float: right;
overflow: auto;
width: 50%;
}
.details > p, .details > p,
.details > ol { .details > ol {
clear: both clear: both

View File

@@ -126,10 +126,6 @@ div#content .inner {
margin-top: 1em margin-top: 1em
} }
.details .hash {
display: none
}
#global-footer .aside { #global-footer .aside {
margin-left: 1%; margin-left: 1%;
width: 49%; width: 49%;