diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-12-23 00:16:09 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-12-23 00:16:09 +0000 |
| commit | 1b433819cbfc084836ee05e338d06f159e77a3d1 (patch) | |
| tree | 3edd19947d3514b07ef4a761998dbfe86c02ce54 /views/pageinfo.ejs | |
| parent | 58b50e0c90a51d5d1c8801e8d9e63bdf5d07a468 (diff) | |
Add page info page
Diffstat (limited to 'views/pageinfo.ejs')
| -rw-r--r-- | views/pageinfo.ejs | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/views/pageinfo.ejs b/views/pageinfo.ejs new file mode 100644 index 0000000..c0ba59d --- /dev/null +++ b/views/pageinfo.ejs @@ -0,0 +1,83 @@ +<!DOCTYPE html> +<html> +<head> + <title>Page information for <%= standardName %></title> + <link rel="stylesheet" href="/css/globalstyles.css"> +</head> +<body> + <div id="main-container"> + <%- include('partials/header') %> + <div id="content-container"> + <%- include('partials/navbar') %> + <div id="content"> + <h1>Information for page <%= standardName %></h1> + <table> + <tr> + <td>Standard name</td> + <td><%= standardName %></td> + </tr> + <tr> + <td>Display title</td> + <td><%= displayTitle ?? '-' %></td> + </tr> + <tr> + <td>Last build</td> + <td><%- (buildTime != 0) ? new Date(buildTime) : '-' %></td> + </tr> + <tr> + <td>Primary</td> + <td><%= primary ?? false %></td> + </tr> + <tr> + <td>Show title</td> + <td><%= showTitle ?? false %></td> + </tr> + <tr> + <td>Sort order</td> + <td><%- sortOrder ?? '-' %></td> + </tr> + <tr> + <td>Dependencies</td> + <td> + <% if (dependencies.size === 0) { %> + <%- '-' %> + <% } else { %> + <% dependencies.forEach(e => { %> + <%- `${e}<br>` %> + <% }); %> + <%}%> + </td> + </tr> + <tr> + <td>Pages which depend on this page</td> + <td> + <% if (dependents.size === 0) { %> + <%- '-' %> + <% } else { %> + <% dependents.forEach(e => { %> + <%- `${e}<br>` %> + <% }); %> + <%}%> + </td> + </tr> + <tr> + <td>Errors</td> + <td> + <% if (errors.length === 0) { %> + <%- '-' %> + <% } else { %> + <% errors.forEach(e => { %> + <%- `${e.identifier}: ${e.message}<br>` %> + <% }); %> + <%}%> + </td> + </tr> + </table> + <p><a href="/special/purge/<%= standardName %>">Purge this page?</a></p> + <hr> + <span class=footer><a href="https://github.com/LMBishop/website">GitHub</a> | <a href="/<%= path %>">View original</a></span> + </div> + </div> + </div> +</body> +</html> |
