aboutsummaryrefslogtreecommitdiff
path: root/views/_navigation.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/_navigation.haml')
-rw-r--r--views/_navigation.haml14
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']