projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
consider path when determining if an IA profile user can view a topic
[websub-hub]
/
src
/
template
/
admin-topic-details-html.js
diff --git
a/src/template/admin-topic-details-html.js
b/src/template/admin-topic-details-html.js
index e03918910d935f98f9c70f6cd1720d5d545b8f59..abf441adfe8178d5d2a1104e0b848791fc023c16 100644
(file)
--- a/
src/template/admin-topic-details-html.js
+++ b/
src/template/admin-topic-details-html.js
@@
-14,7
+14,7
@@
const th = require('./template-helper');
*/
module.exports = (ctx, options) => {
const pageTitle = `${options.manager.pageTitle} - Topic Details`;
*/
module.exports = (ctx, options) => {
const pageTitle = `${options.manager.pageTitle} - Topic Details`;
- const
headElements = []
;
+ const
logoUrl = options.manager.logoUrl
;
const navLinks = [
{
href: '..',
const navLinks = [
{
href: '..',
@@
-25,7
+25,15
@@
module.exports = (ctx, options) => {
if (!ctx.subscriptions) {
ctx.subscriptions = [];
}
if (!ctx.subscriptions) {
ctx.subscriptions = [];
}
- return th.htmlTemplate(ctx, 2, pageTitle, headElements, navLinks, [
+
+ const htmlOptions = {
+ pageTitle,
+ logoUrl,
+ navLinks,
+ footerEntries,
+ };
+
+ const content = [
` <section class="topics">
<table>
<thead>`,
` <section class="topics">
<table>
<thead>`,
@@
-36,6
+44,10
@@
module.exports = (ctx, options) => {
` </tbody>
</table>
</section>`,
` </tbody>
</table>
</section>`,
+ ` <section class="history">
+ <p>Topic Publish History — ${ctx.publishCount} updates in the last ${ctx.publishSpan} days</p>
+ <img title="Topic Publish History" src="${ctx.params.topicId}/history.svg">
+ </section>`,
` <section class="subscriptions">
<p>${ctx.subscriptions.length ? ctx.subscriptions.length : 'no'} subscription${(ctx.subscriptions.length === 1) ? '' : 's'}</p>
<table>
` <section class="subscriptions">
<p>${ctx.subscriptions.length ? ctx.subscriptions.length : 'no'} subscription${(ctx.subscriptions.length === 1) ? '' : 's'}</p>
<table>
@@
-47,5
+59,7
@@
module.exports = (ctx, options) => {
` </tbody>
</table>
</section>`,
` </tbody>
</table>
</section>`,
- ], footerEntries);
+ ];
+
+ return th.htmlPage(2, ctx, htmlOptions, content);
};
\ No newline at end of file
};
\ No newline at end of file