client/templates/nodeeditor_readonly.html
author rougeronj
Wed, 16 Sep 2015 17:36:46 +0200
changeset 524 904effa4b6d7
parent 520 f14ff8669037
child 530 9823b527c3a1
permissions -rw-r--r--
improve view management: - we can pass a negative view index, in this case we count from the end of the list of view - before creating/changing the view representation, we remove the previous one and reinitialize the node visibility - each time we save a view, it creates a new one at the end of the list - "restore" view loads the last view of the list

<h2>
    <span class="Rk-CloseX">&times;</span>
    <% if (options.show_node_tooltip_color) { %>
        <span class="Rk-UserColor" style="background: <%-node.color%>;"></span>
    <% } %>
    <span class="Rk-Display-Title">
        <% if (node.uri) { %>
            <a href="<%-node.uri%>" target="_blank">
        <% } %>
        <%-node.title%>
        <% if (node.uri) { %></a><% } %>
    </span>
</h2>
<% if (node.uri && options.show_node_tooltip_uri) { %>
    <p class="Rk-Display-URI">
        <a href="<%-node.uri%>" target="_blank"><%-node.short_uri%></a>
    </p>
<% } %> <% if (options.show_node_tooltip_description) { %>
    <p class="Rk-Display-Description"><%=node.description%></p>
<% } %> <% if (node.image && options.show_node_tooltip_image) { %>
    <img class="Rk-Display-ImgPreview" src="<%-node.image%>" />
<% } %> <% if (node.has_creator && options.show_node_tooltip_creator) { %>
    <p>
        <span class="Rk-Editor-Label"><%-renkan.translate("Created by:")%></span>
        <span class="Rk-UserColor" style="background: <%-node.created_by_color%>;"></span>
        <%- shortenText(node.created_by_title, 25) %>
    </p>
<% } %>
    <a href="#?idNode=<%-node._id%>"><%-renkan.translate("Link to the node")%></a>