{aTopic |
[
Newline,
Presentations.Image(federation.LinkMaker.LinkToImage("images/logo.gif")),
Newline, "----", Newline,
request.IsAuthenticated.IfTrue
{[
"||{C2+}",
"Welcome '''",
request.AuthenticatedUserName,
"'''",
"||",
Newline,
request.CanLogInAndOut.IfTrue
{[
"||",
with (Presentations)
{
Link(federation.LinkMaker.LinkToLogoff(aTopic.Fullname), "Log off", "Log off.")
},
"||",
Newline
]}
IfFalse{""},
]}
IfFalse
{
[
"||{C2+}Not logged in.||",
Presentations.Link(federation.LinkMaker.LinkToLogin(aTopic.Fullname), "Log in", "Log in."),
"||"
]
},
namespace.Description.IfNull
{
""
}
Else
{
[ Newline, namespace.Description ]
},
Newline, "----", Newline, Newline,
[
"||{C2T-}*Recent Topics*||",
Newline,
request.UniqueVisitorEvents.Snip(15).Collect
{ each |
[
MenuItem(each.Fullname, String.MaxLengthString(each.Name, 20), federation.LinkMaker.LinkToTopic(each.Fullname),"images/p-off.gif"),
Newline
]
},
Newline, "----", Newline,
MenuItem("List all versions of this topic", "List all versions", federation.LinkMaker.LinkToVersions(aTopic.Fullname),"images/p-off.gif"),
aTopic.Version.IfNotNull
{[
Newline,
Presentations.FormStart(federation.LinkMaker.LinkToRestore(aTopic.Fullname), "post"),
Presentations.HiddenField("RestoreTopic", aTopic.Fullname),
Presentations.SubmitButton("restoreButton", "Restore Version"),
Presentations.FormEnd(),
]}
Else
{
""
},
"----", Newline,
[
"||{T-}",
Presentations.Image(federation.LinkMaker.LinkToImage("images/Logo_25gry.gif"), "Go to Google.com", "http://www.google.com"),
"||", Newline,
"||{+}",
Presentations.FormStart("http://www.google.com/search", "get"),
Presentations.InputField("q", "", 15),
Presentations.ImageButton("btnG", federation.LinkMaker.LinkToImage("images/search.gif"),"Search Google for this text"),
Presentations.FormEnd(),
"||", Newline,
],
Newline, "----", Newline,
federation.Application("AlternateStyles").IfNull
{
""
}
Else
{
[
"||{T-}'''Change Style'''||",
Newline,
"||",
Presentations.FormStart("", "get","onsubmit='SetActiveStylesheet(this.styles.options[this.styles.selectedIndex].value);return false;'"),
Presentations.ComboSelectField("styles", ["Choose here."].Append(federation.Application("AlternateStyles")),null,[""].Append(federation.Application("AlternateStyles"))),
Presentations.ImageButton("goButton", federation.LinkMaker.LinkToImage("images/go-dark.gif"), "Select alternate stylesheet"),
Presentations.FormEnd(),
"||"
]
},
Newline,"----", Newline, "||{^T-}Powered by Flexwiki v", ProductVersion, "||", Newline
]
]
}