aboutsummaryrefslogtreecommitdiff
path: root/views/_navigation.haml
blob: 6c47b28e249b26d70c3ac52568be3bdd7e2a5532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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']