summaryrefslogtreecommitdiff
path: root/users/app/views/_login_or_signup.html.haml
blob: b353526837a68d94971b9f38e7b2f8097e02c0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// displays a little widget to login or sign up
//

%ul.nav.nav-tabs
  %li.active
    %a{:href => ''}= t(:login)
  %li
    = link_to t(:signup), new_user_path

= render 'sessions/new'

//
// this is nice, but it doesn't work because both forms have the same names for fields.
//
// %ul.nav.nav-tabs
//   %li.active
//     %a{:href => '#login', 'data-toggle' => 'tab'}= t(:login)
//   %li
//     %a{:href => '#signup', 'data-toggle' => 'tab'}= t(:signup)
// .tab-content
//   #login.tab-pane.active
//     = render 'sessions/new'
//   #signup.tab-pane
//     = render 'users/new'