PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_base/templates/_action_typeselect_result.tpl

http://github.com/zotonic/zotonic
Smarty Template | 16 lines | 15 code | 1 blank | 0 comment | 1 complexity | 4f7bff4cd06a56f0c622991bd5ccfd2e MD5 | raw file
 1{% for id, rank in result %}
 2<li class="suggestions-result clearfix">
 3    {% with m.rsc[id] as r %}
 4    <a id="{{ #connect.id }}" href="#add-connection">
 5        <span class="pull-right">{{ m.rsc[r.category.id].title|default:r.category.name }}</span>
 6        {% image r.depiction width=40 height=18 crop %} 
 7        {{ r.title }}
 8    </a>
 9    {% endwith %}
10</li>
11
12{% wire_args id=#connect.id action=action_with_id select_id=id %}
13{% wire id=#connect.id action=action %}
14{% empty %}
15<li class="suggestions-result"><a href="javascript:void(0);">Nothing found.</a></li>
16{% endfor %}