The backend for the AiteStory website
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
import ../base/mixins
$pagePath = printf("/page/%s", $.Page.ID) $pageEditPath = printf("/page/edit/%s", $.Page.ID) $pageDeletePath = printf("/page/delete/%s", $.Page.ID) $pageSourcePath = printf("/page/source/%s", $.Page.ID) $datePath = printf("/month/%s", $.Page.FictionalDate.UTC.Format("2006-01")) $authorPath = printf("/author/%s", $.Page.Author)
a[href="/"] h1 Page
if !$.HideMenu ul +menuitem($pagePath, "V", "View") if $.Page.Author == $.User.ID +menuitem($pageEditPath, "E", "Edit") +menuitem($pageDeletePath, "X", "Delete") else +menuitem($pageSourcePath, "#", "Source") ul each $tag in $.Page.Tags +tagmenuitem($tag)
ul if $.Page.Dated +menuitem($datePath, "D", formatDate($.Page.FictionalDate)) +menuitem($authorPath, "A", formatUserID($.Page.Author))
|