<?xml version="1.0"?>
<fest:template xmlns:fest="http://fest.mail.ru" context_name="json">
    <fest:include src="layout.xml" />
    <fest:set name="content">
        <h2>Project «<fest:value>json.project.name</fest:value>»</h2>
        <fest:if test="json.project.watchers">
            <article class="row" data-widget="{JSON.stringify({{view: 'watchers'}})}">
                <div class="span12">
                    <div class="btn-group pull-right" data-toggle="buttons-radio">
                      <button type="button" class="btn btn-small active" data-action="filter-none"><i class="icon-asterisk"></i></button>
                      <button type="button" class="btn btn-small" data-action="filter-file"><i class="icon-file"></i></button>
                    </div>
                    <h3>Watchers</h3>
                </div>
                <fest:each iterate="json.project.watchers" index="i" value="watcher">
                    <section data-widget="{JSON.stringify({{view: 'watcher'}})}" data-model="{JSON.stringify(watcher)}" class="span6">
                        <fest:include src="watcher/index.xml" context="watcher" />
                    </section>
                </fest:each>
            </article>
        </fest:if>
    </fest:set>
</fest:template>