Socialify

Folder ..

Viewing 404.html
41 lines (39 loc) • 2.3 KB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends 'blog/partials/base.html' %} {% block content %}
{% load static %}

<div id="notfound" style="margin: 0px auto 0px auto;width: 720px;">
  <img src="{% static 'images/site/skippy.png' %}" style="width: 200px; float: left; padding-right: 20px; display: inline;">
  <div style="width: 500px; display: inline;">
    {% if context.mode == 'article' %}
      {% load random_numbers %}
      {% if context.similar_posts %}
      <img src="/static/images/site/errors/404/{% random_numbers 1 4 %}.gif" style="width: 500px;">
      {% else %}
      <img src="{% static 'images/site/errors/404/404.gif' %}" style="width: 500px;">
      {% endif %}
      <br><br>
      <p>Hey! Skippy here! I am the 404 Assistant Bot for this site. Looks like you are trying to search an article, but I couldn't find the page. {% if context.similar_posts %}Maybe you are looking for one of these?{% endif %}</p>
      <ul style="position: relative; left: 30px; top: 10px;">
        {% for post in context.similar_posts %}
          <li><a href="{% url 'blog:post' post.slug %}">{{ post.title }}</a></li>
        {% endfor %}
      </ul>
    {% elif context.mode == 'user' %}
      <img src="{% static 'images/site/errors/404/404_user.gif' %}" style="width: 500px;">
      <br><br>
      <p>Hey! Skippy here! I am the 404 Assistant Bot for this site. Looks like you are trying to search a user with username <b>{{ context.username }}</b> but I couldn't find any user with that username. {% if context.similar_users %}Maybe you are looking for one of these users?{% endif %}</p>
      <ul style="position: relative; left: 30px; top: 10px;">
        {% for user in context.similar_users %}
          <li><a href="{% url 'blog:user_activity' user.username %}">{{ user.username }}</a></li>
        {% endfor %}
      </ul>
    {% else %}
      <img src="{% static 'images/site/errors/404/404.gif' %}" style="width: 500px;">
      <p>Hey! Skippy here! I am the 404 Assistant Bot for this site. Unfortunately, I couldn't find the page you were looking for. Let me guide you home!</p>
    {% endif %}
    <br>
    <p><a href="{% url 'blog:home' %}" class="button button-special">Go Home</a></p>
  </div>
  <div style="clear:both;"></div>
  <div style="margin-top: 28px; border-bottom: dotted 1px #fefefe;"></div>
</div>

{% endblock %}