diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-04-13 17:03:16 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-04-13 17:03:16 +0100 |
commit | 89a67770e66d11740948e90a41db6cee0482cf8e (patch) | |
tree | be858515fb789a89d68f94975690ab019813726c /views/_navigation.haml |
new version.
Diffstat (limited to 'views/_navigation.haml')
-rw-r--r-- | views/_navigation.haml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/views/_navigation.haml b/views/_navigation.haml new file mode 100644 index 0000000..6c47b28 --- /dev/null +++ b/views/_navigation.haml @@ -0,0 +1,14 @@ +- if @person + %a{:href => "/alerts"} Current alerts + %a{:href => "/events"} Last day + %a{:href => "/preferences"} My preferences + %a{:href => "/logout"} Logout <strong>(#{@person.username})</strong> +- else + %form{:action => '/login', :method => :POST} + Username + %input{:name => 'username', :type => 'text', :size => 10} + Password + %input{:name => 'password', :type => 'password', :size => 10} + %input{:type => 'submit', :value => 'Log in'} +- if flash['error'] + .error= flash['error'] |