client/templates/main.html
author rougeronj
Wed, 16 Sep 2015 17:36:46 +0200
changeset 524 904effa4b6d7
parent 434 0d5998b32a7c
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

<% if (options.show_bins) { %>
    <div class="Rk-Bins">
        <div class="Rk-Bins-Head">
            <h2 class="Rk-Bins-Title"><%- translate("Select contents:")%></h2>
            <form class="Rk-Web-Search-Form Rk-Search-Form">
                <input class="Rk-Web-Search-Input Rk-Search-Input" type="search"
                    placeholder="<%- translate('Search the Web') %>" />
                <div class="Rk-Search-Select">
                    <div class="Rk-Search-Current"></div>
                    <ul class="Rk-Search-List"></ul>
                </div>
                <input type="submit" value=""
                    class="Rk-Web-Search-Submit Rk-Search-Submit" title="<%- translate('Search the Web') %>" />
            </form>
            <form class="Rk-Bins-Search-Form Rk-Search-Form">
                <input class="Rk-Bins-Search-Input Rk-Search-Input" type="search"
                    placeholder="<%- translate('Search in Bins') %>" /> <input
                    type="submit" value=""
                    class="Rk-Bins-Search-Submit Rk-Search-Submit"
                    title="<%- translate('Search in Bins') %>" />
            </form>
        </div>
        <ul class="Rk-Bin-List"></ul>
    </div>
<% } %> <% if (options.show_editor) { %>
    <div class="Rk-Render Rk-Render-<% if (options.show_bins) { %>Panel<% } else { %>Full<% } %>"></div>
<% } %>