/*
   This JavaScript code was generated by Jemplate, the JavaScript
   Template Toolkit. Any changes made to this file will be lost the next
   time the templates are compiled.

   Copyright 2006 - Ingy döt Net - All rights reserved.
*/

if (typeof(Jemplate) == 'undefined')
    throw('Jemplate.js must be loaded before any Jemplate template files');

Jemplate.templateMap['pager.html'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<li><a href="#" class="pager">次の';
//line 1 "pager.html"
output += stash.get(['pager', 0, 'entries_per_page', 0]);
output += '件</a></li>\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['tagcloud.html'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 3 "tagcloud.html"

// FOREACH 
(function() {
    var list = stash.get('items');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['item'] = value;
output += '\n<li class="tag"><a href="javascript:void(0);" title="';
//line 2 "tagcloud.html"
output += stash.get(['item', 0, 'name', 0]);
output += '" class="filter-tag">';
//line 2 "tagcloud.html"
output += stash.get(['item', 0, 'name', 0]);
output += '(';
//line 2 "tagcloud.html"
output += stash.get(['item', 0, 'count', 0]);
output += ')</a></li>';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['tagremoves.html'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 3 "tagremoves.html"

// FOREACH 
(function() {
    var list = stash.get('tags');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['tag'] = value;
output += '\n<li class="tag-remove">';
//line 2 "tagremoves.html"
output += stash.get('tag');
output += '<a href="javascript:void(0)" title="';
//line 2 "tagremoves.html"

// FILTER
output += (function() {
    var output = '';

output += stash.get('tag');

    return context.filter(output, 'html', []);
})();

output += '">除去</a></li>';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['uris-ranking.html'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 3 "uris-ranking.html"

// FOREACH 
(function() {
    var list = stash.get('uris');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['uri'] = value;
output += '\n<li class="ranking"><a href="/entry/';
//line 2 "uris-ranking.html"

// FILTER
output += (function() {
    var output = '';


// FILTER
output += (function() {
    var output = '';

output += stash.get(['uri', 0, 'uri', 0]);

    return context.filter(output, 'uri', []);
})();


    return context.filter(output, 'uri', []);
})();

output += '" class="uri"><img src="/static/images/ranking/';
//line 2 "uris-ranking.html"
output += stash.get(['loop', 0, 'count', 0]);
output += '.gif" class="ranking" /><img src="http://img.simpleapi.net/small/';
//line 2 "uris-ranking.html"
output += stash.get(['uri', 0, 'uri', 0]);
output += '" class="thumbnail" />';
//line 2 "uris-ranking.html"

// FILTER
output += (function() {
    var output = '';

output += stash.get(['uri', 0, 'title', 0]);

    return context.filter(output, 'html', []);
})();

output += '<br><span class="tags">';
//line 2 "uris-ranking.html"
output += stash.get(['uri', 0, 'taglist', 0]);
output += '</span></a></li>\n';
//line 3 "uris-ranking.html"
if (stash.get(['loop', 0, 'count', 0]) >= 10) {
break;
}
;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['uris.html'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 3 "uris.html"

// FOREACH 
(function() {
    var list = stash.get('uris');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['uri'] = value;
output += '\n<li><a href="/entry/';
//line 2 "uris.html"

// FILTER
output += (function() {
    var output = '';


// FILTER
output += (function() {
    var output = '';

output += stash.get(['uri', 0, 'uri', 0]);

    return context.filter(output, 'uri', []);
})();


    return context.filter(output, 'uri', []);
})();

output += '" class="uri"><img src="http://img.simpleapi.net/small/';
//line 2 "uris.html"
output += stash.get(['uri', 0, 'uri', 0]);
output += '" class="thumbnail" />';
//line 2 "uris.html"

// FILTER
output += (function() {
    var output = '';

output += stash.get(['uri', 0, 'title', 0]);

    return context.filter(output, 'html', []);
})();

output += '<br><span class="tags">';
//line 2 "uris.html"
output += stash.get(['uri', 0, 'taglist', 0]);
output += '</span></a></li>';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

