diff options
author | florent <florent.pigout@gmail.com> | 2011-09-11 13:42:44 (GMT) |
---|---|---|
committer | florent <florent.pigout@gmail.com> | 2011-09-11 13:42:44 (GMT) |
commit | 131ab16ed7ce9289de5e51bcc1bc23a118a27dd4 (patch) | |
tree | 03384ee657090e627f4b8763c36f0f3787524583 /creactiweb/_templates/templates/+package+/gallery.html | |
parent | 3e4ef40085c12d53690668e4504a0f70393f6cfa (diff) |
add project template for flask besed activity
Diffstat (limited to 'creactiweb/_templates/templates/+package+/gallery.html')
-rw-r--r-- | creactiweb/_templates/templates/+package+/gallery.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/creactiweb/_templates/templates/+package+/gallery.html b/creactiweb/_templates/templates/+package+/gallery.html new file mode 100644 index 0000000..cd8e726 --- /dev/null +++ b/creactiweb/_templates/templates/+package+/gallery.html @@ -0,0 +1,28 @@ +{% extends "layout.html" %} +{% block head %} + <!-- js import --> + <script type="text/javascript" src="/static/js/jquery.lightbox-0.5.min.js"></script> + <!-- stylesheet import --> + <link rel="stylesheet" type="text/css" href="/static/css/jquery.lightbox-0.5.css" media="screen" /> +{% endblock %} +{% block content %} + <h1>{{ title }}</h1> + <div id="gallery"> + <ul> + {% for _i, _img in images %} + <li> + <a href="{{ _img }}" title="Image {{ _i }}"> + <img src="{{ _img }}" width="72" height="72" alt="" /> + </a> + </li> + {% endfor %} + </ul> + <script type="text/javascript"> + <!-- + $(function() { + $('#gallery a').lightBox(); + }); + --> + </script> + </div> +{% endblock %} |