PageRenderTime 24ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_mailinglist/templates/mailinglist.tpl

http://github.com/zotonic/zotonic
Smarty Template | 24 lines | 16 code | 8 blank | 0 comment | 1 complexity | 32609fc5e6b56f7b5c74c226b3eacca9 MD5 | raw file
 1{% extends "page.tpl" %}
 2
 3{% block title %}{{ m.rsc[id].title }}{% endblock %}
 4
 5{% block content %}
 6<h1>{{ m.rsc[id].title }}</h1>
 7
 8<p class="summary">{{ m.rsc[id].summary }}</p>
 9
10{% mailinglist_subscribe id=id %}
11
12{{ m.rsc[id].body }}
13
14<h2>{_ All mailing lists _}</h2>
15
16{% for title, id in m.search[{all_bytitle cat="mailinglist"}] %}
17	{% ifnotequal m.rsc[id].name "mailinglist_test" %}
18		<h3><a href="{{ m.rsc[id].page_url }}">{{ m.rsc[id].title }}</a></h3>
19		<p>{{ m.rsc[id].summary }}</p>
20	{% endifnotequal %}
21{% empty %}
22{% endfor %}
23
24{% endblock %}