Commits

Luke Plant  committed 5cb80c1

Removed use of iframe template for midweek/sunday boxes

These are now loaded into the parent page via AJAX, since this has several
advantages over an iframe.

  • Participants
  • Parent commits 042fcc9

Comments (0)

Files changed (4)

File christchurch/static/christchurch/css/style.css

 h2 { font-size: 1.1em; }
 h3 { font-size: 1.0em; }
 
-/* iframes */
-
-body.iframecontent {
-    background-color: white;
-    background-image: none;
-    color: black;
-}
-
-body.iframecontent .iframeinner
-{
-    /* allow room for h2 indent */
-    padding: 0 1em;
-}
-
 /* NAVBAR */
 #navbarcont {
     margin: 0;

File christchurch/templates/christchurch/iframe.html

-<!DOCTYPE html>
-<html>
-<head>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-  <title>{{ title }}</title>
-  <link rel="StyleSheet" href="{{ STATIC_URL }}christchurch/css/style.css" type="text/css">
-</head>
-<body class="iframecontent">
-  <div class="iframeinner">
-    {% block content %}
-    {% endblock %}
-  </div>
-</body>
-</html>

File christchurch/templates/christchurch/midweek.html

-{% extends "christchurch/iframe.html" %}
-{% block content %}
 {% if message %}
   <p><i>{{ message }}</i></p>
 {% else %}
   </p>
   {% endfor %}
 {% endif %}
-{% endblock %}

File christchurch/templates/christchurch/thissunday.html

-{% extends "christchurch/iframe.html" %}
-{% block content %}
 {% if message %}
   <p><i>{{ message }}</i></p>
 {% else %}
   <p><b>{{ event.nice_time }}:</b> {{ event.summary }}</p>
   {% endfor %}
 {% endif %}
-{% endblock %}