<divclass="summary {% if t.state == 'NEW' or t.state == 'SAVING'%}unfinished{% endif %}">
<divclass="name">{{t.name}}</div>
<divclass="name">{{t.name}}
{% if t.myshares %}
<ul>
{% for i in t.myshares %}
<li>share {{i.name}} -> {{i.group}}</li>
{% endfor %}
{% endif %}
</div>
<divclass="status">{{t.state}}</div>
<divclass="actions">
<ahref="#"class="try-template-button"data-id="{{t.id}}"title="{% trans "Try"%}">
<imgsrc="static/icons/control.png"alt="{% trans "Start"%}"/></a>
<ahref="#"title="{% trans "Edit"%}"><imgsrc="/static/icons/pencil.png"alt="{% trans "Edit"%}"/></a>
<ahref="#"class="delete-template-button"data-id="{{ t.id }}"data-name="{{ t.name }}"title="{% trans "Remove"%}"><imgsrc="/static/icons/minus-circle.png"alt="{% trans "Remove"%}"/></a>
<ahref="#"class="template-share"data-id="{{t.id}}"title="{% trans "Share"%}"><imgsrc="static/icons/user-share.png"alt="{% trans "Share"%}"/></a>
<ahref="#"class="template-share"data-id="{{t.id}}"title="{% trans "Share"%}"><imgsrc="/static/icons/user-share.png"alt="{% trans "Share"%}"/></a>
</div>
<divclass="clear"></div>
</div>
...
...
@@ -58,12 +65,21 @@
{% for t in publictemplates %}
<liclass="wm"id="t{{t.id }}">
<divclass="summary public-template">
<divclass="name">{{t.name}}</div>
<divclass="name">{{t.name}}
{% if t.myshares %}
<ul>
{% for i in t.myshares %}
<li>share {{i.name}} -> {{i.group}}
<ahref="/vm/unshare/{{i.id}}/">unshare</a>
</li>
{% endfor %}
{% endif %}
</div>
<divclass="status">{{t.state}}</div>
<divclass="actions">
<ahref="#"class="try-template-button"data-id="{{t.id}}"title="{% trans "Try"%}">
<imgsrc="static/icons/control.png"alt="{% trans "Start"%}"/></a>
<ahref="#"class="template-share"data-id="{{t.id}}"{%ifgroup%}data-gid="{{group.id}}"{%endif%}title="{% trans "Share"%}"><imgsrc="static/icons/user-share.png"alt="{% trans "Share"%}"/></a>
<imgsrc="/static/icons/control.png"alt="{% trans "Start"%}"/></a>
<ahref="#"class="template-share"data-id="{{t.id}}"{%ifgroup%}data-gid="{{group.id}}"{%endif%}title="{% trans "Share"%}"><imgsrc="/static/icons/user-share.png"alt="{% trans "Share"%}"/></a>