Comestic tweak on rom details

This commit is contained in:
Sebastian 2017-05-20 23:13:06 +02:00
parent c2bf858071
commit f8a4ee1ffc
2 changed files with 13 additions and 9 deletions

View File

@ -112,7 +112,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'de-de'
TIME_ZONE = 'UTC'
TIME_ZONE = 'Europe/Berlin'
USE_I18N = True

View File

@ -12,9 +12,7 @@
<div class="columns">
<div class="column">
<div class="box">
<h3 class="title is-3">{{rom.name}}</h3>
<h1 class="title is-1">ID: {{rom.id}}</h1>
<h2 class="title is-2">{{rom.id}} - {{rom.name}}</h2>
{% if rom.user.id == user.id %}
<div class="columns less-margin">
<div class="column">
@ -24,6 +22,16 @@
{% endif %}
<div class="columns less-margin">
<div class="column">
hochgeladen von <strong>{{rom.user.username}}</strong>
{% if rom.user.twitter %}
<a href="https://twitter.com/{{rom.user.twitter}}"><i class="fa fa-twitter"></i></a>
{% endif %}
{% if rom.user.github %}
<a href="https://twitter.com/{{rom.user.github}}"><i class="fa fa-github"></i></a>
{% endif %}
am {{rom.creation_time}}.
Zuletzt geupdated am {{rom.edit_time}}<br/>
{% for tag in rom.tags.all %}
<a href="{% url 'romlist' tag=tag.slug %}"><span class="tag is-medium categorie is-primary">{{tag.name}}</span></a>
{% endfor %}
@ -51,7 +59,7 @@
<li>Versetze das Badge in Bootloadermodus</li>
<li>
Wähle die Rom-ID:
<h3 class="title is-3">{{rom.id}}</h3>
<h3 class="title is-3">{{rom.id|stringformat:"04d"}}</h3>
</li>
<li>Wähle den Ziel-Slot</li>
<li>Warte auf den Neustart</li>
@ -106,10 +114,6 @@ var rom_infos = {
0x182000: { lable: "rom3 0x182000", is_low: false},
0x202000: { lable: "rom4 0x202000", is_low: true},
0x282000: { lable: "rom5 0x282000", is_low: false},
0x402000: { lable: "rom6 OTA 0x402000", is_low: true},
0x502000: { lable: "rom7 OTA 0x502000", is_low: true},
0x602000: { lable: "rom8 OTA 0x602000", is_low: true},
0x702000: { lable: "rom9 OTA 0x702000", is_low: true}
};
var low_url = '{{rom.low_binary.url}}';