Skip to content

Commit

Permalink
Removed recursion and used walk
Browse files Browse the repository at this point in the history
  • Loading branch information
navilan committed Feb 24, 2009
1 parent f71505a commit 22a4b81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
8 changes: 4 additions & 4 deletions layout/_code.html
Expand Up @@ -6,10 +6,10 @@
{% block extra_extra_js %}{% endblock %}
<script type="text/javascript" charset="utf-8">
$(function(){
dp.SyntaxHighlighter.ClipboardSwf = '{{site.url}}/media/flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
{% block ready_function %}
{% endblock %}
dp.SyntaxHighlighter.ClipboardSwf = '{{site.url}}/media/flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
{% block ready_function %}
{% endblock %}
});
</script>
{% endblock %}
Expand Down
13 changes: 1 addition & 12 deletions layout/skeleton/_innerlisting.html
Expand Up @@ -17,21 +17,10 @@
{%with list_page as page %}
{% include "skeleton/_breadcrumbs.html" %}
{%endwith%}
<a href="{{list_page.url}}">Read More...</a>
<a href="{{list_page.url}}">Read More ...</a>
</div>
{%endif%}
</li>{%endif%}{% endifnotequal %}{% endfor %}
</ul>
<ul>
{% with node as parent%}
{% for node in parent.children %}
<li class="node">
{% block inner_listing %}
{% include "skeleton/_innerlisting.html" %}
{% endblock %}
</li>
{% endfor %}
{% endwith %}
</ul>
{%endspaceless%}
{% endblock %}
4 changes: 2 additions & 2 deletions layout/skeleton/_listing.html
Expand Up @@ -2,9 +2,9 @@
{% block content_header %}{% endblock %}
{% block content_body %}
<div class="page-listing">
{% with page.node as node %}
{% for node in page.node.walk %}
{% include "skeleton/_innerlisting.html" %}
{% endwith %}
{% endfor %}
</div>
<div class="clear"></div>
{% endblock %}

0 comments on commit 22a4b81

Please sign in to comment.