Mercurial > agora-palash
view templates/snippet/snippet_box.djhtml @ 195:baf8776dc44d
added code for the integration of comment system into bundles and snippets.
database sync must be run so that necessary tables is created for the comments to work properly.
author | ahsanalishahid <ahsan.ali.shahid@gmail.com> |
---|---|
date | Tue, 02 Jul 2013 02:09:21 +0500 |
parents | a4f88ac85837 |
children | b3c3d940cc87 |
line wrap: on
line source
{% autoescape off %} <div class="snippet {{ default_style }}"> {% if show %} <div class="code-lines"> {% for line in lines %} <p class="line" id="l{{ forloop.counter }}">{% if line %}{{ line }}{% else %} {% endif %}</p> {% endfor %} </div> <div class="line-counters"></div> </div> {% else %} <div class="code-lines"> <p class="hint"> You need to register first if you want to see the content. Register for a new account or log in. </p> </div> </div> {% endif %} {% endautoescape %}