"use strict";

/*
 * *******************************************************************************
 *  * Copyright (c) 2018 Edgeworx, Inc.
 *  *
 *  * This program and the accompanying materials are made available under the
 *  * terms of the Eclipse Public License v. 2.0 which is available at
 *  * http://www.eclipse.org/legal/epl-2.0
 *  *
 *  * SPDX-License-Identifier: EPL-2.0
 *  *******************************************************************************
 *
 */

ioAuthoring = ioAuthoring || {};

ioAuthoring.templates = ioAuthoring.templates || {};

ioAuthoring.templates.publishElementsList = "\
    <div class='element-type-container' data-element-type='new' data-element-type-image='default.png'>\
      <img class='element-type-icon' src='/images/shared/default.png'>\
      <p><strong>New element</strong></p>\
    </div>\
    <% for(var i=0; i<publishElementsList.length; i++) { %>\
    <div class='element-type-container' data-element-type-id='<%= publishElementsList[i].ID %>' \
        data-element-type-name='<%= publishElementsList[i].Name %>' data-element-type-image='<%= publishElementsList[i].Image %>'>\
        <img class='element-type-icon' src='/images/shared/<%= publishElementsList[i].Image %>?<%=  Date.now() %>'>\
        <p><strong>New element for </strong></p>\
        <p><strong><%= publishElementsList[i].Name %></strong></p>\
    </div>\
    <% } %>\
";