~hristoast/modding-openmw.com

53ec32ddbb459de70aa2519d5fcfe6ef7a0bdb5f — Hristos N. Triantafillou 3 months ago 9576e13
Show the updated date

Also alter the mobile views.
2 files changed, 7 insertions(+), 5 deletions(-)

M momw/momw/templates/latest_mods.html
M momw/momw/templates/mod_table.html
M momw/momw/templates/latest_mods.html => momw/momw/templates/latest_mods.html +1 -1
@@ 7,7 7,7 @@
    <p>
      {% include 'mods-nav.html' with cur_page="latest_mods" %}
    </p>
    {% include 'mod_table.html' with mods=mods show_category=True %}
    {% include 'mod_table.html' with latest=True mods=mods show_category=True %}
  </div>

  {% include "main-nav.html" with cur_page="all_mods" prev_link=False next_link=False %}

M momw/momw/templates/mod_table.html => momw/momw/templates/mod_table.html +6 -4
@@ 1,19 1,21 @@
<table class="u-full-width">
  <thead>
    <tr>
      {% if latest %}<th>Date Updated</th>{% endif %}
      <th>Name</th>
      <th>Author</th>
      <th{% if latest %} class="mobile-hide"{% endif %}>Author</th>
      {% if show_category %}<th class="mobile-hide">Category</th>{% endif %}
      <th class="mobile-hide">Description</th>
      {% if not latest %}<th class="mobile-hide">Description</th>{% endif %}
    </tr>
  </thead>
  <tbody>
    {% for mod in mods %}
      <tr>
        {% if latest %}<th title="This mod's record on this website was last updated on: {{ mod.date_updated|date:"Y-m-d" }}">{{ mod.date_updated|date:"Y-m-d" }}</th>{% endif %}
        <td><a href="{{ mod.url }}"><i class="fa fa-download"></i></a> <a href="{{ mod.get_absolute_url }}">{{ mod.name }}</a>{% if mod.compat == 6 %} <i class="fa fa-ban" title="This mod is currently NOT compatible with the latest OpenMW!"></i>{% endif %}</td>
        <td>{{ mod.author|safe|truncatewords:6 }}</td>
        <td{% if latest %} class="mobile-hide"{% endif %}>{{ mod.author|safe|truncatewords:6 }}</td>
        {% if show_category %}<td class="mobile-hide"><a href="{{ mod.category.get_absolute_url }}">{{ mod.category }}</a> </td>{% endif %}
        <td class="mobile-hide">{{ mod.description|safe|truncatewords:8 }}</td>
        {% if not latest %}<td class="mobile-hide">{{ mod.description|safe|truncatewords:8 }}</td>{% endif %}
      </tr>
    {% endfor %}
  </tbody>