Sha256: e058268643d92179d7ec650391c7abbd45d88faa61138e9caee04e2f2a95c574

Contents?: true

Size: 457 Bytes

Versions: 4

Compression:

Stored size: 457 Bytes

Contents

-# Partial for the navigation in the top-right corner, which relates to the current user being signed in.
-# origin: RM

#session_navigation
  - if signed_in?
    %span#current_user
      = link_to current_user.username, current_user
      (#{current_user.email})
    %span#sign_out= link_to 'Sign out', session_path, :method => :delete
  - else
    %span#sign_up= link_to 'Sign up', [ :new, :user ]
    %span#sign_in= link_to 'Sign in', [ :new, :session ]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/app/views/layouts/_session_navigation.html.haml
serum-rails-0.2.0 spec/test_apps/rails-2-3/app/views/layouts/_session_navigation.html.haml
serum-rails-0.1.1 spec/test_app/app/views/layouts/_session_navigation.html.haml
serum-rails-0.1.0 spec/test_app/app/views/layouts/_session_navigation.html.haml