diff options
-rw-r--r-- | templates/base.html | 1 | ||||
-rw-r--r-- | templates/show_msg.html | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index 2ed2687..79e8bb0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,7 @@ <html> <head> <title>{% block title %}PyTasks{% endblock %}</title> + {% block js_script %} {% endblock %} <style type="text/css"> body { font-family: Verdana, Arial, Helvetica, sans-serif; diff --git a/templates/show_msg.html b/templates/show_msg.html index a05c5ac..dc7e472 100644 --- a/templates/show_msg.html +++ b/templates/show_msg.html @@ -1,11 +1,27 @@ {% extends 'base.html' %} +{% block js_script %} + <script language="JavaScript"> + <!-- + function getgoing() + { + window.location="{{redirect_url}}"; + } + + setTimeout('getgoing()',5000); + //--> + </script> +{% endblock %} {% block content %} + {% if message %} {{message}}<br /> {% endif %} + You will be redirected to {{url_desc}} page in 5 seconds + <!-- {% if redirect_url %} <a href="{{redirect_url}}">click here</a> to return to {{url_desc}} {% else %} <a href="/">click here</a> to return to Homepage {% endif %} + --> {% endblock %} |