Module: template/html/table
Variables
default
• Const
default: "<div class=\"container-fluid\">\n <% it.version.entities.forEach((entity) => { -%>\n<div class=\"container-fluid\">\n <h2 id=\"<%= it.version.version.replaceAll('.', '-') %>-<%= entity.dbName %>-<%= entity.name %>\" class=\"title is-3\">\n <% if (entity.change === 'add') { -%>\n <span class=\"badge text-bg-success\">Add</span>\n <% } else if (entity.change === 'change') { -%>\n <span class=\"badge text-bg-warning\">Update</span>\n <% } else if (entity.change === 'delete') { -%>\n <span class=\"badge text-bg-danger\">Delete</span>\n <% } -%>\n <%= entity.dbName %>\n <small class=\"text-body-secondary\">(<%= entity.name %>)</small>\n <a class=\"anchor-link\" href=\"#<%= it.version.version.replaceAll('.', '-') %>-<%= entity.dbName %>-<%= entity.name %>\" aria-label=\"Link to this section: <%= entity.dbName %>(<%= entity.name %>)\">#</a>\n </h2>\n\n <table class=\"table table-striped table-hover\">\n <thead>\n <tr>\n <th> </th>\n <th>Database Name</th>\n <th>Property Name</th>\n <th>Attribute</th>\n <th>Type</th>\n <th>Nullable</th>\n <th>Charset</th>\n <th>Comment</th>\n </tr>\n </thead>\n <tbody>\n <% entity.columns.forEach((column) => { -%><tr>\n <td>\n <% if (column.change === 'add') { -%>\n <span class=\"badge text-bg-success\">Add</span>\n <% } else if (column.change === 'change') { -%>\n <span class=\"badge text-bg-warning\">Update</span>\n <% } else if (column.change === 'delete') { -%>\n <span class=\"badge text-bg-danger\">Delete</span>\n <% } -%>\n </td>\n <td id=\"<%= it.version.version.replaceAll('.', '-') %>-<%= entity.dbName %>-<%= entity.name %>-<%= column.dbName %>\">\n <a class=\"anchor-link\" href=\"#<%= it.version.version.replaceAll('.', '-') %>-<%= entity.dbName %>-<%= entity.name %>-<%= column.dbName %>\" aria-label=\"Link to this section: <%= column.dbName %> in <%= entity.dbName %>(<%= entity.name %>)\">#</a>\n <span><%= column.dbName %></span>\n </td>\n <td id=\"<%= it.version.version.replaceAll('.', '-') %>-<%= entity.dbName %>-<%= entity.name %>-<%= column.name %>\">\n <a class=\"anchor-link\" href=\"#<%= it.version.version.replaceAll('.', '-') %>-<%= entity.dbName %>-<%= entity.name %>-<%= column.name %>\" aria-label=\"Link to this section: <%= column.name %> in <%= entity.dbName %>(<%= entity.name %>)\">#</a>\n <span><%= column.name %></span>\n </td>\n <td>\n <% if (column.change !== 'change') { -%>\n <span><%= column.attributeKey.join(',') %></span>\n <% } else { -%>\n <span><%= column.attributeKey.join(',') %></span>\n <br />\n <% if (column.prev != null && column?.prev?.columnTypeWithLength && column.attributeKey.join(',') !== column?.prev?.attributeKey.join(',')) { -%>\n <span><del><%= column.attributeKey.join(',') %></del></span>\n <% } -%>\n <% } -%>\n </td>\n <td>\n <% if (column.change !== 'change') { -%>\n <span><%= column.columnTypeWithLength %></span>\n <% } else { -%>\n <span><%= column.columnTypeWithLength %></span>\n <br />\n <% if (column.prev != null && column?.prev?.columnTypeWithLength && column.columnTypeWithLength !== column?.prev?.columnTypeWithLength) { -%>\n <span><del><%= column.prev.columnTypeWithLength %></del></span>\n <% } -%>\n <% } -%>\n </td>\n <td>\n <% if (column.change !== 'change') { -%>\n <span><%= column.isNullable ? 'Nullable' : '' %></span>\n <% } else { -%>\n <span><%= column.isNullable ? 'Nullable' : '' %></span>\n <br />\n <% if (column.prev != null && column?.prev?.isNullable && column.isNullable !== column?.prev?.isNullable) { -%>\n <span><del><%= column.prev.isNullable ? 'Nullable' : '' %></del></span>\n <% } -%>\n <% } -%>\n </td>\n <td>\n <% if (column.change !== 'change') { -%>\n <span><%= column.charset %></span>\n <% } else { -%>\n <span><%= column.charset %></span>\n <br />\n <% if (column.prev != null && column?.prev?.charset != null && column.charset !== column?.prev?.charset) { -%>\n <span><del><%= column.prev.charset %></del></span>\n <% } -%>\n <% } -%>\n </td>\n <td>\n <% if (column.change !== 'change') { -%>\n <span><%= column.comment %></span>\n <% } else { -%>\n <span><%= column.comment %></span>\n <br />\n <% if (column.prev != null && column?.prev?.comment != null && column.comment !== column?.prev?.comment) { -%>\n <span><del><%= column.prev.comment %></del></span>\n <% } -%>\n <% } -%>\n </td>\n </tr>\n <% }) %>\n </tbody>\n </table>\n <div class=\"mx-auto p-4\" style=\"width: 100%;\"></div>\n</div>\n<% }) -%>\n</div>"