generate subpage listings automatically
right now very barebones! - doesn't sort pages quite correctly - no search function - still not sure about the UI design aspects includes refactor of tree generation code
This commit is contained in:
parent
9a86b5f98e
commit
fbb9f39353
8 changed files with 508 additions and 187 deletions
|
@ -73,9 +73,14 @@ export class Branch {
|
|||
});
|
||||
}
|
||||
|
||||
if (ulid.isCanonicalUlid(this.namedID)) {
|
||||
// Adjust dates to fit the user's time zone.
|
||||
let timestamp = ulid.getTimestamp(this.namedID);
|
||||
// Adjust dates to fit the user's time zone.
|
||||
let timestamp = null;
|
||||
if (element.hasAttribute("th-ts")) {
|
||||
timestamp = new Date(parseInt(element.getAttribute("th-ts")));
|
||||
} else if (ulid.isCanonicalUlid(this.namedID)) {
|
||||
timestamp = ulid.getTimestamp(this.namedID);
|
||||
}
|
||||
if (timestamp != null) {
|
||||
let branchDate = this.buttonBar.getElementsByTagName("th-bd")[0];
|
||||
branchDate.textContent = dateToString(timestamp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue