client/templates/nodeeditor_readonly.html
author rougeronj
Tue, 22 Sep 2015 15:14:10 +0200
changeset 543 5f7bebdcfc0d
parent 530 9823b527c3a1
child 635 dffc5ec04c87
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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
420
22393cbf4467 export the templates of nodeeditor to html files
rougeronj
parents:
diff changeset
     1
<h2>
434
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
     2
    <span class="Rk-CloseX">&times;</span>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
     3
    <% if (options.show_node_tooltip_color) { %>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
     4
        <span class="Rk-UserColor" style="background: <%-node.color%>;"></span>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
     5
    <% } %>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
     6
    <span class="Rk-Display-Title">
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
     7
        <% if (node.uri) { %>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
     8
            <a href="<%-node.uri%>" target="_blank">
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
     9
        <% } %>
530
9823b527c3a1 add rich text editor on title
rougeronj
parents: 520
diff changeset
    10
        <%=node.title%>
434
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    11
        <% if (node.uri) { %></a><% } %>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    12
    </span>
420
22393cbf4467 export the templates of nodeeditor to html files
rougeronj
parents:
diff changeset
    13
</h2>
22393cbf4467 export the templates of nodeeditor to html files
rougeronj
parents:
diff changeset
    14
<% if (node.uri && options.show_node_tooltip_uri) { %>
434
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    15
    <p class="Rk-Display-URI">
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    16
        <a href="<%-node.uri%>" target="_blank"><%-node.short_uri%></a>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    17
    </p>
420
22393cbf4467 export the templates of nodeeditor to html files
rougeronj
parents:
diff changeset
    18
<% } %> <% if (options.show_node_tooltip_description) { %>
468
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 434
diff changeset
    19
    <p class="Rk-Display-Description"><%=node.description%></p>
420
22393cbf4467 export the templates of nodeeditor to html files
rougeronj
parents:
diff changeset
    20
<% } %> <% if (node.image && options.show_node_tooltip_image) { %>
434
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    21
    <img class="Rk-Display-ImgPreview" src="<%-node.image%>" />
420
22393cbf4467 export the templates of nodeeditor to html files
rougeronj
parents:
diff changeset
    22
<% } %> <% if (node.has_creator && options.show_node_tooltip_creator) { %>
434
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    23
    <p>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    24
        <span class="Rk-Editor-Label"><%-renkan.translate("Created by:")%></span>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    25
        <span class="Rk-UserColor" style="background: <%-node.created_by_color%>;"></span>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    26
        <%- shortenText(node.created_by_title, 25) %>
0d5998b32a7c clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents: 420
diff changeset
    27
    </p>
420
22393cbf4467 export the templates of nodeeditor to html files
rougeronj
parents:
diff changeset
    28
<% } %>
520
f14ff8669037 fix small bug about idNode parameter
rougeronj
parents: 479
diff changeset
    29
    <a href="#?idNode=<%-node._id%>"><%-renkan.translate("Link to the node")%></a>