client/templates/list-bin.html
author rougeronj
Tue, 22 Sep 2015 15:14:10 +0200
changeset 543 5f7bebdcfc0d
parent 434 0d5998b32a7c
permissions -rw-r--r--
Improve the way we init the view. The data loader send a "loaded" event, hooked by the scene.py and initializing the backbone.history and the view. We don't use redraw_active in save-once and full-json, because it was making the view initialization dependent of these file which are externals. Small fix to hide the "set saved view" button when there is only one view.

<li class="Rk-Bin-Item Rk-ResourceList-Item" draggable="true"
    data-uri="<%-url%>" data-title="<%-title%>"
    data-description="<%-description%>"
    <% if (image) { %>
        data-image="<%- Rkns.Utils.getFullURL(image) %>"
    <% } else { %>
        data-image=""
    <% } %>
><% if (image) { %>
    <img class="Rk-ResourceList-Image" src="<%-image%>" />
<% } %>
<h4 class="Rk-ResourceList-Title">
    <% if (url) { %>
        <a href="<%-url%>" target="_blank">
    <% } %>
    <%=htitle%>
    <% if (url) { %></a><% } %>
    </h4>
    <% if (description) { %>
        <p class="Rk-ResourceList-Description"><%=hdescription%></p>
    <% } %>
    <% if (image) { %>
        <div style="clear: both;"></div>
    <% } %>
</li>