2012-04-20 03:50:59 +02:00
< html xmlns = "http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
< xi:include href = "layout.html" / >
< head >
< title > Admin Ticker< / title >
2015-04-26 20:32:08 +02:00
< link href = "../admin.css" type = "text/css" rel = "stylesheet" / >
< link href = "../bootstrap/css/bootstrap.min.css" type = "text/css" rel = "stylesheet" media = "all" / >
< link href = "../bootstrap/css/bootstrap-theme.min.css" type = "text/css" rel = "stylesheet" media = "all" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2012-04-20 03:50:59 +02:00
< / head >
< body >
2015-04-26 20:32:08 +02:00
< div class = "container theme-showcase" role = "main" >
2015-04-26 22:20:52 +02:00
< h1 id = "title" > Tycker Administration< / h1 >
2015-04-26 20:32:08 +02:00
2012-04-20 03:50:59 +02:00
< ?python
import datetime
now = datetime.datetime.now()
?>
2015-04-26 20:32:08 +02:00
< div class = "page-header" > < / div >
< div class = "container" >
2015-04-26 02:28:05 +02:00
< p > < i > < a href = "../../${static_url}" title = "static website" > show tycker website< / a > < / i > < / p >
2015-04-26 20:32:08 +02:00
< div id = "help" >
2015-04-26 02:28:05 +02:00
< p > The content may be written in < a href = "http://www.wikicreole.org/imageServlet?page=CheatSheet%2Fcreole_cheat_sheet.png" target = "_blank" > wikicreole syntax< / a > . Here are some examples:< / p >
2015-04-26 20:32:08 +02:00
< dl >
2015-04-26 22:20:52 +02:00
< dt > < strong > Emphasis< / strong > < / dt >
2015-04-26 22:23:34 +02:00
< dd > < em > //italics//< / em > ; < strong > **bold**< / strong > < / dd >
2015-04-26 22:20:52 +02:00
< dt > < strong > Links< / strong > < / dt >
< dd > [[URL]]; [[URL|linkname]]< / dd >
2015-04-26 20:32:08 +02:00
< dt > < strong > headings< / strong > < / dt >
2015-04-26 22:20:52 +02:00
< dd > == Large heading; === Medium heading; ==== Small heading< / dd >
< dt > < strong > Lists< / strong > < / dt >
< dd > * Bullet list; ** Sub item of bullet list; # Numbered list; ## Sub item of numbered list< / dd >
< dt > < strong > Line break< / strong > < / dt >
< dd > Force\\Linebreak< / dd >
2015-04-26 20:32:08 +02:00
< / dl >
< / div >
2015-04-26 02:28:05 +02:00
2015-04-26 20:32:08 +02:00
< div id = "timestamp" >
< form action = "generate" method = "GET" >
2015-04-26 02:37:15 +02:00
< input type = "submit" value = "Generate current timestamp" / >
2015-04-26 20:32:08 +02:00
< / form >
< / div >
2015-04-26 02:37:15 +02:00
2012-04-20 03:50:59 +02:00
< table border = "1" >
< tr > < th > Timestamp< / th > < th > Title< / th > < th > Content< / th > < / tr >
< tr > < form action = "submit" method = "GET" >
2015-04-25 23:58:21 +02:00
< td > < input type = "text" size = "20" name = "date" value = "${now.strftime(date_format)}" / > < / td >
2012-04-20 03:50:59 +02:00
< td > < input type = "text" size = "25" name = "title" value = "" autofocus = "autofocus" / > < / td >
< td > < textarea name = "content" rows = "8" cols = "80" / > < / td >
< td > < input type = "submit" value = "Create" / > < / td >
< / form > < / tr >
< tr py:for = "entry in entries" > < form action = "submit" method = "GET" >
2015-04-25 23:58:21 +02:00
< td > < input type = "text" size = "20" name = "date" value = "${entry['timestamp'].strftime(date_format)}" / > < / td >
2012-04-20 03:50:59 +02:00
< td > < input type = "text" size = "25" name = "title" value = "${entry['title']}" / > < / td >
< td > < textarea name = "content" rows = "8" cols = "80" > ${entry['content']}< / textarea > < / td >
< td > < input type = "hidden" name = "entry_id" value = "${entry.id}" / > < input type = "submit" value = "Update" / > < / td >
< / form >
< td > < form action = "delete" method = "GET" >
< input type = "hidden" name = "entry_id" value = "${entry.id}" / >
< input type = "submit" value = "Delete" / >
< / form > < / td >
< / tr >
< / table >
2015-04-26 20:32:08 +02:00
< / div >
< / div >
2012-04-20 03:50:59 +02:00
< / body >
< / html >