diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-03-19 22:45:31 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-03-19 22:45:31 +0100 |
commit | efbdc3bbd6cba8691391ec2192ea96adbfb8c029 (patch) | |
tree | be6a69fab84d15d9fc1f8a50a02e8d57e9388c3b /ui/master.html | |
download | todo-efbdc3bbd6cba8691391ec2192ea96adbfb8c029.tar.gz todo-efbdc3bbd6cba8691391ec2192ea96adbfb8c029.tar.bz2 todo-efbdc3bbd6cba8691391ec2192ea96adbfb8c029.zip |
Initial commit
Diffstat (limited to 'ui/master.html')
-rw-r--r-- | ui/master.html | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/ui/master.html b/ui/master.html new file mode 100644 index 0000000..25775f9 --- /dev/null +++ b/ui/master.html @@ -0,0 +1,63 @@ +<!DOCTYPE html> +<html> +<head> + <title>Todo</title> + <link rel="stylesheet" type="text/css" href="{{ @BASE }}/ui/style.css" /> +</head> +<body> + <div id="headerwrap"><div id="header"> + <a href="{{ @BASE . @ALIASES.root }}" id="appname">{{ @appname }}</a> + <span id="userinfo"> + <check if="{{ empty(@user) }}"> + <true> + <a href="{{ @BASE . @ALIASES.login }}">Login</a> + </true> + <false> + Logged in as <span class="username">{{ @user }}</span>. + <a href="{{ @BASE . @ALIASES.settings }}">Settings</a> + <a href="{{ @BASE . @ALIASES.logout }}">Logout</a> + </false> + </check> + </span> + </div></div> + + <div class="bghelp"></div> + <div id="lists"> + <check if="{{ !empty(@user) }}"> + <ul> + <check if="{{ !empty(@lists) }}"> + <true> + <repeat group="{{ @lists }}" value="{{ @l }}"> + <li{{ @l.active ? ' class="active"' : '' }}> + <a href="{{ @BASE . '/list/' . @l.id }}" class="listlink">{{ @l.name }}</a> + <a class="deletelist" href="{{ @BASE . '/list/' . @l.id }}/delete" title="delete">X</a> + </li> + </repeat> + </true> + <false> + <li class="empty">No lists here. Why not add one below?</li> + </false> + </check> + </ul> + + <form id="addlist" action="{{ @BASE . @ALIASES.newlist }}" method="post"> + <input type="text" name="listname" /><button type="submit">+</button> + </form> + </check> + </div> + + <div id="content"> + <check if="{{ !empty(@success) }}"> + <div class="success notify"><span class="icon"></span>{{ @success }}</div> + </check> + <check if="{{ !empty(@error) }}"> + <div class="error notify"><span class="icon"></span>{{ @error }}</div> + </check> + <check if="{{ !empty(@info) }}"> + <div class="info notify"><span class="icon"></span>{{ @info }}</div> + </check> + + <include href="{{ @content }}" /> + </div> +</body> +</html>
\ No newline at end of file |