summaryrefslogtreecommitdiff
path: root/users/app/views/_login_or_signup.html.haml
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-17 01:27:55 -0700
committerelijah <elijah@riseup.net>2013-07-04 04:00:47 -0700
commite58fd0550b4a29fac9d52dc8a78d04333ccc8c06 (patch)
tree6267b104a0578645aa3a2f6a88cf2211a47d3d0d /users/app/views/_login_or_signup.html.haml
parentd00fe5bded29ad816bb70caa31414f86c69aaa53 (diff)
new ui - initial user changes
Diffstat (limited to 'users/app/views/_login_or_signup.html.haml')
-rw-r--r--users/app/views/_login_or_signup.html.haml25
1 files changed, 25 insertions, 0 deletions
diff --git a/users/app/views/_login_or_signup.html.haml b/users/app/views/_login_or_signup.html.haml
new file mode 100644
index 0000000..b353526
--- /dev/null
+++ b/users/app/views/_login_or_signup.html.haml
@@ -0,0 +1,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'