OSDN Git Service

add: omniauth
[pettanr/pettanr.git] / app / views / user_sessions / new.html.erb
index 3b1c8eb..2266c47 100644 (file)
@@ -1,27 +1,43 @@
-<% @page_title = t('users.signin.signin') %>
-<h1><%= link_to h(manifest.magic_numbers['profile']['users']['caption']), root_path %></h1>
-<table class="no-border">
-  <tr>
-    <td width="60%">
-      <p><%= sanitize manifest.magic_numbers['profile']['users']['description'], :tags => %w(a p img br) %></p>
-    </td>
-    <td width="40%">
-      <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
-        <div><%= f.label :email %><br />
-        <%= f.email_field :email %></div>
+<% @page_title = t('users.signin.title') %>
+<h1>
+  <%= link_to h(manifest.magic_numbers['profile']['users']['caption']), root_path %>
+  <%= link_to h(manifest.magic_numbers['profile']['users']['caption']), 'll/' %>
+</h1>
+<h2>
+  <%= sanitize manifest.magic_numbers['profile']['users']['description'], :tags => %w(a p img br) %>
+</h2>
+<div>
+  <%= t('users.signin.notice') %>
+</div>
+<ul class="auth-servers">
+  <li class="twitter">
+    <%= link_to t('users.signin.twitter.caption'), user_omniauth_authorize_path(:twitter) %>
+    <%= link_to tag(:img, :src => '/images/twitter.png'), user_omniauth_authorize_path(:twitter) %>
+    <p><%= t('users.signin.twitter.notice') %></p>
+  </li>
+  <li class="google">
+    <%= link_to t('users.signin.google.caption'), user_omniauth_authorize_path(:google_oauth2) %>
+    <%= link_to tag(:img, :src => '/images/google.png'), user_omniauth_authorize_path(:google_oauth2) %>
+    <p><%= t('users.signin.google.notice') %></p>
+  </li>
+</ul>
+<div class="row_break"></div>
+<div class="users-signin">
+  <h3>
+    <%= t('users.signin.form.notice') %>
+  </h3>
+  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
+    <div><%= f.label :email %><br />
+    <%= f.email_field :email %></div>
 
-        <div><%= f.label :password %><br />
-        <%= f.password_field :password %></div>
+    <div><%= f.label :password %><br />
+    <%= f.password_field :password %></div>
 
-        <% if devise_mapping.rememberable? -%>
-          <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
-        <% end -%>
+    <% if devise_mapping.rememberable? -%>
+      <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
+    <% end -%>
 
-        <div><%= f.submit t('users.signin.signin') %></div>
-      <% end %>
-      <p>      <%= link_to "Sign in with Twitter", user_omniauth_authorize_path(:twitter) %>
-</p>
-      <%= render :partial => "/users/shared/links" %>
-    </td>
-  </tr>
-</table>
+    <div><%= f.submit t('users.signin.form.signin') %></div>
+  <% end %>
+  <%= render :partial => "/users/shared/links" %>
+</div>