multi_auth 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ <%- content_for(:multi_auth_additional_head) do -%>
2
+ <%# MEMO: meta要素による自動遷移は無効化されている可能性があるため、JavaScriptによる遷移を併用する %>
3
+ <meta http-equiv="refresh" content="1; URL=<%= URI.escape(@return_path) %>" />
4
+ <script type="text/javascript">
5
+ // <![CDATA[
6
+ setTimeout(function() {
7
+ window.location = "<%= URI.escape(@return_path) %>";
8
+ }, 2000);
9
+ // ]]>
10
+ </script>
11
+ <%= stylesheet_link_tag 'multi_auth' %>
12
+ <%- end -%>
@@ -1,23 +1,12 @@
1
1
 
2
2
  <%- @title = p_("MultiAuth", "Logged in successfully.") -%>
3
3
  <%- @enable_side_column = false -%>
4
- <%- @stylesheets = %[auth] -%>
5
4
 
6
- <%- additional_head { -%>
7
- <%# MEMO: meta要素による自動遷移は無効化されている可能性があるため、JavaScriptによる遷移を併用する %>
8
- <meta http-equiv="refresh" content="1; URL=<%= URI.escape(@return_path) %>" />
9
- <script type="text/javascript">
10
- // <![CDATA[
11
- setTimeout(function() {
12
- window.location = "<%= URI.escape(@return_path) %>";
13
- }, 2000);
14
- // ]]>
15
- </script>
16
- <%- } -%>
5
+ <%= render :partial => 'header' %>
17
6
 
18
7
  <div id="dialog">
19
8
  <h1><%=h @title %></h1>
20
9
  <div class="message">
21
- <%=h p_("MultiAuth", "Please click %{link} when the page doesn't change." % { :link => link_to(h(@return_path), @return_path) }) %>
10
+ <%= p_("MultiAuth", "Please click %{link} when the page doesn't change." % { :link => link_to(h(@return_path), @return_path) }) %>
22
11
  </div>
23
12
  </div>
@@ -1,19 +1,8 @@
1
1
 
2
2
  <%- @title = p_("MultiAuth", "You have been logged out.") -%>
3
3
  <%- @enable_side_column = false -%>
4
- <%- @stylesheets = %[auth] -%>
5
4
 
6
- <%- additional_head { -%>
7
- <%# MEMO: meta要素による自動遷移は無効化されている可能性があるため、JavaScriptによる遷移を併用する %>
8
- <meta http-equiv="refresh" content="1; URL=<%= URI.escape(@return_path) %>" />
9
- <script type="text/javascript">
10
- // <![CDATA[
11
- setTimeout(function() {
12
- window.location = "<%= URI.escape(@return_path) %>";
13
- }, 2000);
14
- // ]]>
15
- </script>
16
- <%- } -%>
5
+ <%= render :partial => 'header' %>
17
6
 
18
7
  <div id="dialog">
19
8
  <h1><%=h @title %></h1>
@@ -6,4 +6,4 @@
6
6
  <%= render(:partial => "progress", :locals => {:step => 5}) %>
7
7
 
8
8
  <div><%=h p_("MultiAuth", "Registration completed") %></div>
9
- <div><%= link_to(h(p_("MultiAuth", "Login")), :controller => "auth/email") %></div>
9
+ <div id="login_by_email"><%= link_to(h(p_("MultiAuth", "Login")), :controller => "auth/email") %></div>
@@ -3,4 +3,4 @@
3
3
 
4
4
  <h1><%=h p_("MultiAuth", "Registration completed") %></h1>
5
5
 
6
- <p><%= link_to(h(p_("MultiAuth", "Login")), :controller => "auth/open_id") %></p>
6
+ <p id="login_by_open_id"><%= link_to(h(p_("MultiAuth", "Login")), :controller => "auth/open_id") %></p>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - okkez
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-13 00:00:00 +09:00
13
+ date: 2010-01-23 00:00:00 +09:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -83,6 +83,7 @@ files:
83
83
  - app/views/credentials/email/activation.html.erb
84
84
  - app/views/auth/logged_out.html.erb
85
85
  - app/views/auth/index.html.erb
86
+ - app/views/auth/_header.html.erb
86
87
  - app/views/auth/open_id/index.html.erb
87
88
  - app/views/auth/email/index.html.erb
88
89
  - app/views/auth/logged_in.html.erb