~hristoast/modding-openmw.com

a1d41a82502784c894054aa9b9b3e3737ffaafef — Hristos N. Triantafillou 2 months ago dd3ac38 3.17
Make it look a little better
3 files changed, 3 insertions(+), 5 deletions(-)

M momw/media/models.py
M momw/templates/live_media.html
M momw/templates/live_video.html
M momw/media/models.py => momw/media/models.py +1 -3
@@ 129,6 129,4 @@ Your browser does not support the video tag, so you can't watch this.
                self.url.replace("/images/", "/images/300200_")
            )
        elif self.media_type == self.VIDEO:
            return """<video width="300" height="200" controls><source src="{}" type="video/mp4">Your browser does not support the video tag, so you can't watch this.</video>""".format(
                self.url.replace("/images/", "/images/300200_")
            )
            return """<video src="{}" type="video/mp4"></video>""".format(self.url)

M momw/templates/live_media.html => momw/templates/live_media.html +1 -1
@@ 12,7 12,7 @@
          <a style="float: left; padding-right: 10px;" href="{% url 'media:detail' m.slug %}">{{ m.media_link_300200|striptags }}</a>
          <h5 class="bold"><a href="{% url 'media:detail' m.slug %}">{{ m.title }}</a></h5>
          <div>Posted on {{ m.date_added|date:'Y' }}-{{ m.date_added|date:"m" }}-{{ m.date_added|date:"d" }}</div>
          <p>{{ m.description|striptags|truncatewords:8 }}</p>
          <p>{{ m.description|striptags|truncatewords:14 }}</p>
        </div>
      </div>
    {% endfor %}

M momw/templates/live_video.html => momw/templates/live_video.html +1 -1
@@ 11,7 11,7 @@
          <a style="float: left; padding-right: 10px;" href="{% url 'media:detail' v.slug %}">{{ v.media_link_300200|striptags }}</a>
          <h5 class="bold"><a href="{% url 'media:detail' v.slug %}">{{ v.title }}</a></h5>
          <div>Posted on {{ v.date_added|date:'Y' }}-{{ v.date_added|date:"m" }}-{{ v.date_added|date:"d" }}</div>
          <p>{{ v.description|striptags|truncatewords:8 }}</p>
          <p>{{ v.description|striptags|truncatewords:14 }}</p>
        </div>
      </div>
    {% endfor %}