diff options
author | franck cuny <franck@lumberjaph.net> | 2011-03-13 15:10:53 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2011-03-13 15:10:53 +0100 |
commit | 359a311497985014ab48eeafa2a05907cbcc11fe (patch) | |
tree | ee0b73f8cd3cba6ff5fb279df2e9617b35b1c34a | |
parent | view home page, edit and upate (diff) | |
download | ballet-359a311497985014ab48eeafa2a05907cbcc11fe.tar.gz |
more templates
Signed-off-by: franck cuny <franck@lumberjaph.net>
-rw-r--r-- | views/edit.tt | 22 | ||||
-rw-r--r-- | views/page.tt | 24 |
2 files changed, 46 insertions, 0 deletions
diff --git a/views/edit.tt b/views/edit.tt new file mode 100644 index 0000000..3888e9c --- /dev/null +++ b/views/edit.tt @@ -0,0 +1,22 @@ +<div id="wiki-wrapper" class="edit"> + <div id="head"> + <h1>Editing <strong><% title %></strong></h1> + <ul class="actions"> + <li class="minibutton"> + <a href="/<% title %>" class="action-view-page">View Page</a> + </li> + <li class="minibutton"> + <a href="/history/<% title %>" class="action-page-history">Page History</a> + </li> + </ul> + </div> + + <div id="wiki-content"> + <form name="editor" action="/edit/<% title %>" method="post"> + <textarea id="editor-body" name="content"> + <% content %> + </textarea> + <input type="submit" id="editor-submit" value="Save" title="Save current changes"> + </form> + </div> +</div> diff --git a/views/page.tt b/views/page.tt new file mode 100644 index 0000000..bb460e9 --- /dev/null +++ b/views/page.tt @@ -0,0 +1,24 @@ +<div id="wiki-wrapper" class="page"> + +<div id="head"> + <h1><% title %></h1> + <ul class="actions"> + <li class="minibutton" class="jaws"> + <a href="#" id="minibutton-new-page">New Page</a></li> + <li class="minibutton"><a href="/edit/<% title %>" + class="action-edit-page">Edit Page</a></li> + <li class="minibutton"><a href="/history/<% title %>" + class="action-page-history">Page History</a></li> + </ul> +</div> + +<div id="wiki-content"> + <div id="wiki-body"> + <% content %> + </div> +</div> + +<div id="footer"> + <p id="last-edit">Last edited by <b><% author %></b>, <% date %></p> +</div> +</div> |