umap/youmap/templates/base.html

78 lines
3.4 KiB
HTML
Raw Normal View History

2012-11-20 03:47:19 -06:00
<!DOCTYPE html>
<html>
<head>
<title>{% block head_title %}u{Map}{% endblock %}</title>
2012-11-20 03:47:19 -06:00
<meta charset="utf-8">
<!-- Included CSS Files (Compressed) -->
<link rel="stylesheet" href="{{ STATIC_URL }}foundation/stylesheets/foundation.css">
<link rel="stylesheet" href="{{ STATIC_URL }}youmap/youmap.css">
<script src="{{ STATIC_URL }}foundation/javascripts/modernizr.foundation.js"></script>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% block extra_head %}
{% endblock extra_head %}
</head>
<body class="{% block body_class %}{% endblock %}">
<div>
{% block content %}
{% endblock %}
</div>
<script src="{{ STATIC_URL }}foundation/javascripts/modernizr.foundation.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.mediaQueryToggle.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.reveal.js"></script>
<!--script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.orbit.js"></script-->
2012-11-20 03:47:19 -06:00
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.navigation.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.buttons.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.tabs.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.forms.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.tooltips.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.accordion.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.placeholder.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.alerts.js"></script>
2012-12-07 06:40:57 -06:00
<script src="{{ STATIC_URL }}endless_pagination/js/endless-pagination.js"></script>
2012-11-20 03:47:19 -06:00
{% block bottom_js %}
<script type="text/javascript">
$(document).foundationAlerts();
2012-12-12 11:15:02 -06:00
L.Storage.on('modal_ready', function (e) {
2012-11-20 03:47:19 -06:00
var $div = $('#reveal-container');
// reset class
$div.attr("class", "");
$div.addClass("reveal-modal");
if (e.cssClass) {
$div.addClass(e.cssClass);
2012-11-20 03:47:19 -06:00
}
// in case a modal is already opened with same id, unbind
$div.unbind('.reveal');
return $div.empty().html(e.data.html).append('<a class="close-reveal-modal">&#215;</a>').reveal();
});
2012-12-12 11:15:02 -06:00
L.Storage.on('modal_close', function (e) {
var $div = $('#reveal-container')
if ($div) {
$div.trigger('reveal:close');
}
});
2012-12-12 11:15:02 -06:00
L.Storage.on('alert', function (e) {
2012-12-06 11:09:45 -06:00
var level_class = e.level && e.level == "info"? "success": "alert";
$div = $('<div>').addClass('alert-box global').addClass(level_class).html(e.content);
2012-11-20 03:47:19 -06:00
$div.append('<a href="#" class="close">&times;</a>');
$("body").prepend($div);
});
2012-11-20 03:47:19 -06:00
$('a.reveal').click(function(e) {
e.preventDefault();
var $this = $(this);
2012-12-12 11:15:02 -06:00
L.Storage.Xhr.get($this.attr('href'));
2012-11-20 03:47:19 -06:00
});
</script>
{% endblock %}
<div id="reveal-container"></div>
2012-11-20 03:47:19 -06:00
</body>
</html>