Skip to content

Instantly share code, notes, and snippets.

@melinath
Created June 15, 2011 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melinath/1027384 to your computer and use it in GitHub Desktop.
Save melinath/1027384 to your computer and use it in GitHub Desktop.
widgets
{% extends 'oncampus/students/base.html' %}
{% load collections pipette_tags %}
{% block content %}
{% spaceless %}
{% container banners references philo.collection as banners_collection %}
{% membersof banners_collection with oberlin.banner as banners %}
{% container newsletter_node references philo.node as newsletter_node %}
{% endspaceless %}
{% include 'oncampus/modules/emergency-bulletins.html' %}
<div class="yui-gd">
<div class="yui-u first">
{% include 'oncampus/modules/from-the-source.html' %}
{% include 'oncampus/modules/bulletins.html' %}
</div><!-- /.yui-u -->
<div class="yui-u">
{% if banners_collection %}
{% include 'oncampus/modules/banners.html' %}
{% endif %}
{% comment %}{% with 'pong' as game %}{% include 'oncampus/modules/game.html' %}{% endwith %}{% endcomment %}
<div class="yui-g">
<div class="yui-u first">
{% include 'oncampus/modules/poll.html' %}
</div><!-- /.yui-u -->
<div class="yui-u">
<div class="yui-g">
<div class="yui-u first">
{% noaa 'KLPR' %}
</div><!-- /.yui-u -->
<div class="yui-u">
{% apollo %}
</div><!-- /.yui-u -->
</div><!-- /.yui-g -->
{% include 'oncampus/modules/student_quicklinks.html' %}
</div><!-- /.yui-u -->
</div><!-- /.yui-g -->
</div><!-- /.yui-u -->
</div>
{{ block.super }}
{% endblock %}
{% extends 'oncampus/students/base.html' %}
{% block content %}
{% include 'oncampus/modules/emergency-bulletins.html' %}
<div class="yui-gd">
<div class="yui-u first">
{% widget "from_the_source" key=val key=val ... %}
{% widget "bulletins" key=val ... %}
</div><!-- /.yui-u -->
<div class="yui-u">
{% widget "banners" ... %}
{% comment %}{% widget "game" game="pong" %}{% endcomment %}
<div class="yui-g">
<div class="yui-u first">
{% widget "poll" %}
</div><!-- /.yui-u -->
<div class="yui-u">
<div class="yui-g">
<div class="yui-u first">
{% widget "weather" %}
</div><!-- /.yui-u -->
<div class="yui-u">
{% widget "apollo" %}
</div><!-- /.yui-u -->
</div><!-- /.yui-g -->
{% widget "quicklinks" %}
</div><!-- /.yui-u -->
</div><!-- /.yui-g -->
</div><!-- /.yui-u -->
</div>
{{ block.super }}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment