diff --git a/app/views/devise/menu/_login_items.html.erb b/app/views/devise/menu/_login_items.html.erb new file mode 100644 index 0000000..9878015 --- /dev/null +++ b/app/views/devise/menu/_login_items.html.erb @@ -0,0 +1,9 @@ +<% if user_signed_in? %> +
  • + <%= link_to('Logout', destroy_user_session_path) %> +
  • +<% else %> +
  • + <%= link_to('Login', new_user_session_path) %> +
  • +<% end %> diff --git a/app/views/devise/menu/_registration_items.html.erb b/app/views/devise/menu/_registration_items.html.erb new file mode 100644 index 0000000..0045d15 --- /dev/null +++ b/app/views/devise/menu/_registration_items.html.erb @@ -0,0 +1,9 @@ +<% if user_signed_in? %> +
  • + <%= link_to('Edit account', edit_user_registration_path) %> +
  • +<% else %> +
  • + <%= link_to('Sign up', new_user_registration_path) %> +
  • +<% end %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 1640066..8ac8e0b 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,14 +1,18 @@ - Rails3SubdomainDevise + Rails3-Subdomain-Devise <%= stylesheet_link_tag :all %> <%= javascript_include_tag :defaults %> <%= csrf_meta_tag %> - -<%= yield %> - + +

    <%= notice %>

    +

    <%= alert %>

    + <%= yield %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css new file mode 100644 index 0000000..53ce7dc --- /dev/null +++ b/public/stylesheets/application.css @@ -0,0 +1,9 @@ +ul.hmenu { + list-style: none; + margin: 0 0 2em; + padding: 0; +} + +ul.hmenu li { + display: inline; +}