Skip to content

Commit

Permalink
Change: Improve consistency between manager and non-manager views
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Dec 15, 2024
1 parent 37a4ef2 commit 6de82ff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
8 changes: 6 additions & 2 deletions webclient/templates/manager_package_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>{% block title %}{{ package["name"] }}{% endblock %}</h1>
<th>Upload date</th>
<th>MD5 (partial)</th>
<th>License</th>
<th>Availability</th>
<th>Download availability</th>
<th>Edit meta data</th>
</tr>
</thead>
Expand All @@ -92,7 +92,11 @@ <h1>{% block title %}{{ package["name"] }}{% endblock %}</h1>
<td>{{ version["upload-date"] }}</td>
<td>{{ version["md5sum-partial"] }}</td>
<td>{{ version["license"] }}</td>
<td>{{ version["availability"] }}</td>
{% if version["availability"] == "new-games" %}
<td>Available ingame</td>
{% else %}
<td>Only for savegames</td>
{% endif %}
<td><a href="/manager/{{ package["content-type"] }}/{{ package["unique-id"] }}/{{ version["upload-date"] }}/edit">Edit</a></td>
</tr>
{% endfor %}
Expand Down
8 changes: 7 additions & 1 deletion webclient/templates/manager_version_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ <h1><a href="/manager/{{ package["content-type"] }}/{{ package["unique-id"] }}">
<tr><th>Upload date</th><td>{{ version["upload-date"] }}</td></tr>
<tr><th>MD5 (partial)</th><td>{{ version["md5sum-partial"] }}</td></tr>
<tr><th>License</th><td>{{ version["license"] }}</td></tr>
<tr><th>Download availability</th><td>{{ version["availability"] }}</td></tr>
<tr><th>Download availability</th>
{% if version["availability"] == "new-games" %}
<td>Available ingame</td>
{% else %}
<td>Only for savegames</td>
{% endif %}
</tr>
<tr><th>Compatibility</th><td>
<ul class="compatibility">
{% for c in compatibility %}
Expand Down
2 changes: 1 addition & 1 deletion webclient/templates/package_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h1>{% block title %}{{ package["name"] }}{% endblock %}</h1>
<th>Upload date</th>
<th>MD5 (partial)</th>
<th>License</th>
<th>Download</th>
<th>Download availability</th>
</tr>
</thead>
<tbody>
Expand Down
2 changes: 1 addition & 1 deletion webclient/templates/version_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h1><a href="/package/{{ package["content-type"] }}/{{ package["unique-id"] }}">
<tr><th>Upload date</th><td>{{ version["upload-date"] }}</td></tr>
<tr><th>MD5 (partial)</th><td>{{ version["md5sum-partial"] }}</td></tr>
<tr><th>License</th><td>{{ version["license"] }}</td></tr>
<tr><th>Download</th>
<tr><th>Download availability</th>
{% if version["availability"] == "new-games" %}
<td>Available ingame</td>
{% else %}
Expand Down

0 comments on commit 6de82ff

Please sign in to comment.