angular.module('dashnex').run(['$templateCache', function($templateCache) {
  'use strict';

  $templateCache.put('import-content/wp-category.html',
    "<td class=\"check-column\">\n" +
    "    <input type=\"checkbox\"\n" +
    "            ng-checked=\"!category.disabled && bulkCategories.indexOf(category) > -1\"\n" +
    "            ng-click=\"toggleBulkCategory(category)\"\n" +
    "            ng-disabled=\"category.disabled\"/>\n" +
    "</td>\n" +
    "\n" +
    "<td class=\"name\">[[category.text]]</td>\n" +
    "\n" +
    "<td class=\"actions\">\n" +
    "    <div ng-if=\"!category.disabled\">\n" +
    "        <button class=\"btn btn-sm btn-primary\" data-target=\"#category-keyword-assign\"\n" +
    "                data-toggle=\"modal\" ng-click=\"addToRequest('category', category)\">Assign\n" +
    "        </button>\n" +
    "        <button class=\"btn btn-sm btn-primary\" data-target=\"#category-keyword-create\"\n" +
    "                data-toggle=\"modal\" ng-click=\"addToRequest('category', category)\">Create new\n" +
    "        </button>\n" +
    "    </div>\n" +
    "</td>\n"
  );


  $templateCache.put('import-content/wp-page.html',
    "<td class=\"check-column\">\n" +
    "    <input type=\"checkbox\" ng-checked=\"bulkPages.indexOf(page) > -1\"\n" +
    "           ng-click=\"toggleBulkObject('bulkPages',page)\" />\n" +
    "</td>\n" +
    "<td class=\"name\">[[page.post_title]]</td>\n" +
    "<td class=\"actions\">\n" +
    "    <button class=\"btn btn-sm btn-primary\" data-target=\"#page-keyword-create\"\n" +
    "            data-toggle=\"modal\" ng-click=\"addToRequest('page', page)\">Create new</button>\n" +
    "    <button class=\"btn btn-sm btn-primary\" data-target=\"#page-keyword-assign\"\n" +
    "            data-toggle=\"modal\" ng-click=\"addToRequest('page', page)\">Assign</button>\n" +
    "</td>"
  );


  $templateCache.put('import-content/wp-post.html',
    "<td class=\"check-column\">\n" +
    "    <input type=\"checkbox\" ng-checked=\"bulkPosts.indexOf(post) > -1\"\n" +
    "           ng-click=\"toggleBulkObject('bulkPosts', post)\" />\n" +
    "</td>\n" +
    "<td class=\"name\">[[post.post_title]]</td>\n" +
    "<td class=\"actions\">\n" +
    "    <button class=\"btn btn-sm btn-primary\" data-target=\"#post-keyword-create\"\n" +
    "            data-toggle=\"modal\" ng-click=\"addToRequest('post', post)\">Create new</button>\n" +
    "    <button class=\"btn btn-sm btn-primary\" data-target=\"#post-keyword-assign\"\n" +
    "            data-toggle=\"modal\" ng-click=\"addToRequest('post', post)\">Assign</button>\n" +
    "</td>"
  );


  $templateCache.put('proxy/active-list.html',
    "<table class=\"table proxies\" ng-show=\"(proxies | filter: {active : true}).length\">\n" +
    "    <caption>\n" +
    "        Active proxies\n" +
    "\n" +
    "        <button class=\"btn btn-sm btn-danger pull-right\"\n" +
    "                ng-class=\"{'disabled' : requestInProgress}\"\n" +
    "                ng-click=\"showRemoveAllModal(true)\">\n" +
    "            Delete All\n" +
    "        </button>\n" +
    "\n" +
    "        <button class=\"btn btn-sm btn-primary pull-right\"\n" +
    "                ng-class=\"{'disabled' : requestInProgress}\"\n" +
    "                ng-click=\"testAll(true)\">\n" +
    "            Check All\n" +
    "        </button>\n" +
    "\n" +
    "    </caption>\n" +
    "\n" +
    "    <tbody id=\"proxy-table-body\">\n" +
    "        <tr ng-class=\"{'success': proxy.active }; {'dashnex-blocked-proxy-row': proxyBlocksFound}\" \n" +
    "            ng-repeat=\"proxy in proxies | filter: {active : true}\"\n" +
    "        >\n" +
    "            <td class=\"dashnex-proxy-column\">[[ proxy.ip ]]</td>\n" +
    "            <td class=\"dashnex-proxy-column\">[[ proxy.port ]]</td>\n" +
    "            <td class=\"dashnex-proxy-column\">[[ proxy.username ]]</td>\n" +
    "            <td class=\"dashnex-proxy-column\">[[ proxy.password ]]</td>\n" +
    "            <td class=\"dashnex-proxy-column\" ng-show=\"proxyBlocksFound\">\n" +
    "                <span ng-repeat=\"block in proxy.blocks\"><em>[[ block ]]</em>[[ {true: '', false: ', '}[$last] ]]</span>\n" +
    "            </td>\n" +
    "            <td class=\"dashnex-proxy-column\">\n" +
    "                <span ng-show=\"!proxy.processing\" class=\"glyphicon glyphicon-trash delete-proxy\"\n" +
    "                      data-toggle=\"tooltip\" title=\"\" data-original-title=\"Delete\"\n" +
    "                      ng-click=\"showRemoveModal(proxy)\"></span>\n" +
    "\n" +
    "                <span ng-show=\"!proxy.processing\" class=\"glyphicon glyphicon-refresh test-proxy\"\n" +
    "                      data-toggle=\"tooltip\" title=\"\" data-original-title=\"Test\"\n" +
    "                      ng-click=\"test(proxy)\"></span>\n" +
    "\n" +
    "                <span ng-show=\"proxy.processing\" class=\"loading\">\n" +
    "            </td>\n" +
    "        </tr>\n" +
    "    </tbody>\n" +
    "</table>"
  );


  $templateCache.put('proxy/inactive-list.html',
    "<table class=\"table proxies\" ng-show=\"(proxies | filter: {active : false}).length\">\n" +
    "    <caption>\n" +
    "        Inactive proxies\n" +
    "\n" +
    "        <button class=\"btn btn-sm btn-danger pull-right\"\n" +
    "                ng-click=\"showRemoveAllModal(false)\"\n" +
    "                ng-class=\"{'disabled' : requestInProgress}\">\n" +
    "            Delete All\n" +
    "        </button>\n" +
    "\n" +
    "        <button class=\"btn btn-sm btn-primary pull-right\" ng-class=\"{'disabled' : requestInProgress}\"\n" +
    "                ng-click=\"testAll(false)\" >\n" +
    "            Check All\n" +
    "        </button>\n" +
    "\n" +
    "    </caption>\n" +
    "\n" +
    "    <tbody id=\"proxy-table-body\">\n" +
    "        <tr ng-class=\"{'success': proxy.active }; {'dashnex-blocked-proxy-row': proxyBlocksFound}\" \n" +
    "            ng-repeat=\"proxy in proxies | filter: {active : false}\"\n" +
    "        >\n" +
    "            <td class=\"dashnex-proxy-column\">[[ proxy.ip ]]</td>\n" +
    "            <td class=\"dashnex-proxy-column\">[[ proxy.port ]]</td>\n" +
    "            <td class=\"dashnex-proxy-column\">[[ proxy.username ]]</td>\n" +
    "            <td class=\"dashnex-proxy-column\">[[ proxy.password ]]</td>\n" +
    "            <td class=\"dashnex-proxy-column\" ng-show=\"proxyBlocksFound\">\n" +
    "                <span ng-repeat=\"block in proxy.blocks\"><em>[[ block ]]</em>[[ {true: '', false: ', '}[$last] ]]</span>\n" +
    "            </td>\n" +
    "            <td class=\"dashnex-proxy-column\">\n" +
    "                <span ng-show=\"!proxy.processing\" class=\"glyphicon glyphicon-trash delete-proxy\"\n" +
    "                      data-toggle=\"tooltip\" title=\"\" data-original-title=\"Delete\"\n" +
    "                      ng-click=\"showRemoveModal(proxy)\"></span>\n" +
    "\n" +
    "                <span ng-show=\"!proxy.processing\" class=\"glyphicon glyphicon-refresh test-proxy\"\n" +
    "                      data-toggle=\"tooltip\" title=\"\" data-original-title=\"Test\"\n" +
    "                      ng-click=\"test(proxy)\"></span>\n" +
    "\n" +
    "                <span ng-show=\"proxy.processing\" class=\"loading\">\n" +
    "            </td>\n" +
    "        </tr>\n" +
    "    </tbody>\n" +
    "</table>"
  );

}]);
