diff options
author | Jayaram Pai | 2013-11-21 13:24:46 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-11-21 13:24:46 +0530 |
commit | 580e49e98f2c87dcc2356234d2404bfb999fcf8d (patch) | |
tree | 6ae1f1f321493cb2a6ab7355d0ed01f49c17ca97 /static/website/templates | |
parent | 610327bd6604832f40361836c3eb89ba169650aa (diff) | |
download | pyfoss-580e49e98f2c87dcc2356234d2404bfb999fcf8d.tar.gz pyfoss-580e49e98f2c87dcc2356234d2404bfb999fcf8d.tar.bz2 pyfoss-580e49e98f2c87dcc2356234d2404bfb999fcf8d.zip |
changing the static files structure
Diffstat (limited to 'static/website/templates')
-rw-r--r-- | static/website/templates/content.html | 3 | ||||
-rw-r--r-- | static/website/templates/footer.html | 0 | ||||
-rw-r--r-- | static/website/templates/header.html | 0 | ||||
-rw-r--r-- | static/website/templates/home.html | 0 | ||||
-rw-r--r-- | static/website/templates/page.html | 147 |
5 files changed, 150 insertions, 0 deletions
diff --git a/static/website/templates/content.html b/static/website/templates/content.html new file mode 100644 index 0000000..88e9736 --- /dev/null +++ b/static/website/templates/content.html @@ -0,0 +1,3 @@ +{% block content %} +<h1>Contene</h1> +{% endblock%}
\ No newline at end of file diff --git a/static/website/templates/footer.html b/static/website/templates/footer.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/website/templates/footer.html diff --git a/static/website/templates/header.html b/static/website/templates/header.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/website/templates/header.html diff --git a/static/website/templates/home.html b/static/website/templates/home.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/website/templates/home.html diff --git a/static/website/templates/page.html b/static/website/templates/page.html new file mode 100644 index 0000000..91c23dd --- /dev/null +++ b/static/website/templates/page.html @@ -0,0 +1,147 @@ +{% load static %} +<!doctype html> +<html> + <head> + <title>{{ page.heading }} | python.fossee.in</title> + <link rel="stylesheet" type="text/css" href="{% static 'website/css/bootstrap.min.css' %}"> + <link rel="stylesheet" type="text/css" href="{% static 'website/css/bootstrap-theme.min.css' %}"> + <link rel="stylesheet" type="text/css" href="{% static 'website/css/main.css'%}"> + </head> + <body> + <div id="page-wrapper"> + {% block page %} + + {% block header %} + <div id="header-wrapper"> + <div id="header-inner"> + <div id="branding" class="pull-left"> + <img id="brand-logo" src="{% static 'website/images/pylogo.png' %}"> + <span id="brand-text">Python</span> + </div> + + <ul id="main-nav" class="nav nav-pills pull-right"> + {% for nav in navs %} + {% with subnavs=nav.subnav_set.all %} + {% if nav.link|slice:":4" == "http" or nav.link == "#" %} + <li> + <a href="{{ nav.link }}"> + {% else %} + <li class="dropdown"> + {% if subnavs|length > 0 %} + <a class="dropdown-toggle" data-toggle="dropdown" href="#"> + {% else %} + <a href="{% url 'website:dispatcher' nav.link %}"> + {% endif %} + {% endif %} + {{ nav.nav_name }} {% if subnavs|length > 0 %} <span class="caret"></span> {% endif %} + </a> + {% if subnavs|length > 0 %} + <ul class="dropdown-menu pull-right"> + {% for subnav in subnavs %} + <li><a href="{% url 'website:dispatcher' subnav.link %}">{{ subnav.subnav_name }}</a></li> + {% endfor %} + </ul> + {% endif %} + </li> + {% endwith %} + {% endfor %} + </ul> + <div class="clearfix"></div> + </div> <!-- /header-inner --> + </div> <!-- /header-wrapper --> + {% endblock %} + + {% block content %} + <div id="content-wrapper"> + <div id="content-inner" class="row"> + <div id="content" class="col-lg-10"> + <h3>{{ page.heading }} </h3> + <p> + {{ page.content|safe }} + </p> + </div> <!-- /content --> + + <div id="sidebar" class="col-lg-2"> + {% for block in sidebar %} + {% if block.linkbox_name %} + <div class="block"> + <h5 class="block-heading">{{ block.linkbox_name }}</h4> + <ul> + {% for link in block.link_set.all|dictsort:"position" %} + {% if link.link|slice:":4" == "http" or nav.link == "#" %} + <li><a href="{{link.link}}">{{ link.link_name }}</a></li> + {% else %} + <li><a href="{% url 'website:dispatcher' link.link %}">{{ link.link_name }}</a></li> + {% endif %} + {% endfor %} + </ul> + </div> <!-- /block --> + {% endif %} + + {% if block.textbox_name %} + <div class="block"> + <h5 class="block-heading">{{ block.textbox_name }}</h4> + <p> + {{ block.content|safe }} + </p> + </div> <!-- /block --> + {% endif %} + + {% endfor %} + </div> <!-- /sidebar --> + <div class="clearfix"></div> + </div> <!-- /content-inner --> + </div> <!-- /content-wrapper --> + {% endblock %} + + <div id="extra-wrapper"> + <div id="extra-inner" class="row"> + <!-- /future use --> + </div> <!-- /extra-inner --> + </div> <!-- /extra-wrapper --> + + {% block footer %} + <div id="footer-wrapper"> + <div id="footer-inner"> + {% for block in footer %} + {% if block.linkbox_name %} + <div class="foot col-lg-4"> + <h5 class="foot-heading">{{ block.linkbox_name }}</h4> + <ul> + {% for link in block.link_set.all|dictsort:"position" %} + {% if link.link|slice:":4" == "http" or link.link == "#" %} + <li><a href="{{ link.link }}">{{ link.link_name }}</a></li> + {% else %} + <li><a href="{% url 'website:dispatcher' link.link %}">{{ link.link_name }}</a></li> + {% endif %} + {% endfor %} + </ul> + </div> <!-- /foot --> + {% endif %} + + {% if block.textbox_name %} + <div class="foot col-lg-4"> + <h5 class="foot-heading">{{ block.textbox_name }}</h4> + <p> + {{ block.content|safe }} + </p> + </div> <!-- /foot --> + {% endif %} + + {% endfor %} + <div class="clearfix"></div> + <img id="django-logo" src="{% static 'images/django-logo.png' %}"> + </div> <!-- /footer-inner --> + </div> <!-- /footer-wrapper --> + {% endblock %} + + {% endblock %} + </div> <!-- /page-wrapper --> + + <script src="{% static 'js/jquery.min.js' %}"></script> + <script src="{% static 'js/bootstrap.min.js' %}"></script> + <script type="text/javascript"> + + </script> + </body> +</html> |