diff options
author | nishanth | 2010-03-02 14:04:03 +0530 |
---|---|---|
committer | nishanth | 2010-03-02 14:04:03 +0530 |
commit | 7ac3530fcd96dac4e78462f8495357e95ba6e4ae (patch) | |
tree | b75cd594d5147122a37c47e49ab5dc7d729b3e67 | |
parent | 14eb7878755370b2eede938f61a491de4fcda7db (diff) | |
download | pytask-7ac3530fcd96dac4e78462f8495357e95ba6e4ae.tar.gz pytask-7ac3530fcd96dac4e78462f8495357e95ba6e4ae.tar.bz2 pytask-7ac3530fcd96dac4e78462f8495357e95ba6e4ae.zip |
changed show_msg page to redirect instead of showing a link
-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 %} |