devise_russian 0.0.1 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/README.md +116 -1
  2. data/app/assets/images/sc/.directory +3 -0
  3. data/app/assets/images/sc/64/.directory +3 -0
  4. data/app/assets/images/sc/64/afisha.png +0 -0
  5. data/app/assets/images/sc/64/blogger.png +0 -0
  6. data/app/assets/images/sc/64/blogru.png +0 -0
  7. data/app/assets/images/sc/64/delicious.png +0 -0
  8. data/app/assets/images/sc/64/deviantart.png +0 -0
  9. data/app/assets/images/sc/64/digg.png +0 -0
  10. data/app/assets/images/sc/64/facebook.png +0 -0
  11. data/app/assets/images/sc/64/feed.png +0 -0
  12. data/app/assets/images/sc/64/flickr.png +0 -0
  13. data/app/assets/images/sc/64/formazon.png +0 -0
  14. data/app/assets/images/sc/64/friendfeed.png +0 -0
  15. data/app/assets/images/sc/64/friendster.png +0 -0
  16. data/app/assets/images/sc/64/furl.png +0 -0
  17. data/app/assets/images/sc/64/gglphone.png +0 -0
  18. data/app/assets/images/sc/64/gmail.png +0 -0
  19. data/app/assets/images/sc/64/google.png +0 -0
  20. data/app/assets/images/sc/64/habrahabr.png +0 -0
  21. data/app/assets/images/sc/64/icq.png +0 -0
  22. data/app/assets/images/sc/64/lastfm.png +0 -0
  23. data/app/assets/images/sc/64/linkedin.png +0 -0
  24. data/app/assets/images/sc/64/livejournal.png +0 -0
  25. data/app/assets/images/sc/64/magnolia.png +0 -0
  26. data/app/assets/images/sc/64/mailru.png +0 -0
  27. data/app/assets/images/sc/64/memori.png +0 -0
  28. data/app/assets/images/sc/64/mixx.png +0 -0
  29. data/app/assets/images/sc/64/moikrug.png +0 -0
  30. data/app/assets/images/sc/64/myspace.png +0 -0
  31. data/app/assets/images/sc/64/netvibes.png +0 -0
  32. data/app/assets/images/sc/64/newsvine.png +0 -0
  33. data/app/assets/images/sc/64/odnoklassniki.png +0 -0
  34. data/app/assets/images/sc/64/open_id.png +0 -0
  35. data/app/assets/images/sc/64/picasa.png +0 -0
  36. data/app/assets/images/sc/64/plurk.png +0 -0
  37. data/app/assets/images/sc/64/pownce.png +0 -0
  38. data/app/assets/images/sc/64/reddit.png +0 -0
  39. data/app/assets/images/sc/64/skype.png +0 -0
  40. data/app/assets/images/sc/64/stumbleupon.png +0 -0
  41. data/app/assets/images/sc/64/technorati.png +0 -0
  42. data/app/assets/images/sc/64/twitter.png +0 -0
  43. data/app/assets/images/sc/64/vimeo.png +0 -0
  44. data/app/assets/images/sc/64/vkontakte.png +0 -0
  45. data/app/assets/images/sc/64/webshots.png +0 -0
  46. data/app/assets/images/sc/64/wordpress.png +0 -0
  47. data/app/assets/images/sc/64/yahoo.png +0 -0
  48. data/app/assets/images/sc/64/yandex.png +0 -0
  49. data/app/assets/images/sc/64/yelp.png +0 -0
  50. data/app/assets/images/sc/64/you_tube.png +0 -0
  51. data/app/assets/images/sc/brand/facebook/facebook_128.png +0 -0
  52. data/app/assets/images/sc/brand/facebook/facebook_256.png +0 -0
  53. data/app/assets/images/sc/brand/facebook/facebook_32.png +0 -0
  54. data/app/assets/images/sc/brand/facebook/facebook_64.png +0 -0
  55. data/app/assets/images/sc/brand/github/github_128.png +0 -0
  56. data/app/assets/images/sc/brand/github/github_256.png +0 -0
  57. data/app/assets/images/sc/brand/github/github_32.png +0 -0
  58. data/app/assets/images/sc/brand/github/github_64.png +0 -0
  59. data/app/assets/images/sc/brand/google/google_128 copy.png +0 -0
  60. data/app/assets/images/sc/brand/google/google_128.png +0 -0
  61. data/app/assets/images/sc/brand/google/google_256 copy.png +0 -0
  62. data/app/assets/images/sc/brand/google/google_256.png +0 -0
  63. data/app/assets/images/sc/brand/google/google_32.png +0 -0
  64. data/app/assets/images/sc/brand/google/google_64 copy.png +0 -0
  65. data/app/assets/images/sc/brand/google/google_apps_32.png +0 -0
  66. data/app/assets/images/sc/brand/google/google_apps_64.png +0 -0
  67. data/app/assets/images/sc/brand/mailru/MailRuApi_32.png +0 -0
  68. data/app/assets/images/sc/brand/mailru/mailru-iphone.png +0 -0
  69. data/app/assets/images/sc/brand/mailru/mailru_64.png +0 -0
  70. data/app/assets/images/sc/brand/mailru/openid_128.png +0 -0
  71. data/app/assets/images/sc/brand/mailru/openid_256.png +0 -0
  72. data/app/assets/images/sc/brand/mailru/openid_32.png +0 -0
  73. data/app/assets/images/sc/brand/mailru/openid_64.png +0 -0
  74. data/app/assets/images/sc/brand/twitter/twitter_128.png +0 -0
  75. data/app/assets/images/sc/brand/twitter/twitter_256.png +0 -0
  76. data/app/assets/images/sc/brand/twitter/twitter_32.png +0 -0
  77. data/app/assets/images/sc/brand/twitter/twitter_64.png +0 -0
  78. data/app/assets/images/sc/brand/vkontakte/vkontakte_128.png +0 -0
  79. data/app/assets/images/sc/brand/vkontakte/vkontakte_256.png +0 -0
  80. data/app/assets/images/sc/brand/vkontakte/vkontakte_32.png +0 -0
  81. data/app/assets/images/sc/brand/vkontakte/vkontakte_64.png +0 -0
  82. data/app/assets/stylesheets/sc.css +12 -0
  83. data/app/controllers/authentications_controller.rb +66 -0
  84. data/app/controllers/registrations_controller.rb +31 -0
  85. data/app/models/authentication.rb +35 -0
  86. data/app/views/authentications/_collection.html.erb +37 -0
  87. data/app/views/authentications/index.html.erb +2 -0
  88. data/app/views/devise/confirmations/new.html.erb +11 -0
  89. data/app/views/devise/mailer/_bottom.html.erb +5 -0
  90. data/app/views/devise/mailer/confirmation_instructions.html.erb +4 -0
  91. data/app/views/devise/mailer/reset_password_instructions.html.erb +6 -0
  92. data/app/views/devise/mailer/unlock_instructions.html.erb +5 -0
  93. data/app/views/devise/passwords/edit.html.erb +14 -0
  94. data/app/views/devise/passwords/new.html.erb +11 -0
  95. data/app/views/devise/registrations/edit.html.erb +18 -0
  96. data/app/views/devise/registrations/new.html.erb +19 -0
  97. data/app/views/devise/sessions/new.html.erb +16 -0
  98. data/app/views/devise/shared/_links.erb +17 -0
  99. data/app/views/devise/shared/_social_links.html.erb +10 -0
  100. data/app/views/devise/unlocks/new.html.erb +11 -0
  101. data/config/ca-bundle.crt +5182 -0
  102. data/config/locales/devise.ru.yml +41 -0
  103. data/devise_russian.gemspec +2 -0
  104. data/lib/devise_russian/engine.rb +11 -0
  105. data/lib/devise_russian/models/base.rb +50 -0
  106. data/lib/devise_russian/version.rb +1 -1
  107. data/lib/devise_russian.rb +3 -4
  108. metadata +137 -2
@@ -0,0 +1,16 @@
1
+ <% @meta_title = "Вход в систему" %>
2
+ <% page_title "Вход в систему" %>
3
+ <div class="ct-box">
4
+ <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
5
+ <p><%= f.label :email %>
6
+ <%= f.email_field :email %></p>
7
+ <p><%= f.label :password, "Пароль" %>
8
+ <%= f.password_field :password %></p>
9
+ <% if devise_mapping.rememberable? -%>
10
+ <p><%= f.check_box :remember_me %> <%= f.label :remember_me, "Запомнить меня" %></p>
11
+ <% end -%>
12
+ <p><%= f.submit "Войти" %></p>
13
+ <% end %>
14
+ <%= render "devise/shared/social_links" %>
15
+ <%= render "devise/shared/links" %>
16
+ </div>
@@ -0,0 +1,17 @@
1
+ <div class="links">
2
+ <%- if controller_name != 'sessions' %>
3
+ <p><%= link_to "Вход", new_session_path(resource_name) %></p>
4
+ <% end -%>
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ <p><%= link_to "Регистрация", new_registration_path(resource_name) %></p>
7
+ <% end -%>
8
+ <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
9
+ <p><%= link_to "Забыли пароль?", new_password_path(resource_name) %></p>
10
+ <% end -%>
11
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
12
+ <p><%= link_to "Не получали инструкции по подтверждению электронной почты?", new_confirmation_path(resource_name) %></p>
13
+ <% end -%>
14
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
15
+ <p><%= link_to "Не получали инструкции по разблокировке профиля?", new_unlock_path(resource_name) %></p>
16
+ <% end -%>
17
+ </div>
@@ -0,0 +1,10 @@
1
+ <div class="sc">
2
+ <p>Войти через:</p>
3
+ <p>
4
+ <% Authentication.providers.each do |provider| %>
5
+ <a class="<%= provider[0] %>" title="Войти через <%= provider[1] %>" href="/auth/<%= provider[0] %>">
6
+ <img width="32" height="32" src="/assets/sc/64/<%= provider[0] %>.png" alt="Войти через <%= provider[1] %>" />
7
+ </a>
8
+ <% end %>
9
+ </p>
10
+ </div>
@@ -0,0 +1,11 @@
1
+ <% @meta_title = "Отправка инструкций по разблокировке профиля" %>
2
+ <% page_title "Отправка инструкций по разблокировке профиля" %>
3
+ <div class="ct-box">
4
+ <%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
5
+ <%= devise_error_messages! %>
6
+ <p><%= f.label :email %>
7
+ <%= f.email_field :email %></p>
8
+ <p><%= f.submit "Отправить" %></p>
9
+ <% end %>
10
+ <%= render :partial => "devise/shared/links" %>
11
+ </div>