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.
- data/README.md +116 -1
- data/app/assets/images/sc/.directory +3 -0
- data/app/assets/images/sc/64/.directory +3 -0
- data/app/assets/images/sc/64/afisha.png +0 -0
- data/app/assets/images/sc/64/blogger.png +0 -0
- data/app/assets/images/sc/64/blogru.png +0 -0
- data/app/assets/images/sc/64/delicious.png +0 -0
- data/app/assets/images/sc/64/deviantart.png +0 -0
- data/app/assets/images/sc/64/digg.png +0 -0
- data/app/assets/images/sc/64/facebook.png +0 -0
- data/app/assets/images/sc/64/feed.png +0 -0
- data/app/assets/images/sc/64/flickr.png +0 -0
- data/app/assets/images/sc/64/formazon.png +0 -0
- data/app/assets/images/sc/64/friendfeed.png +0 -0
- data/app/assets/images/sc/64/friendster.png +0 -0
- data/app/assets/images/sc/64/furl.png +0 -0
- data/app/assets/images/sc/64/gglphone.png +0 -0
- data/app/assets/images/sc/64/gmail.png +0 -0
- data/app/assets/images/sc/64/google.png +0 -0
- data/app/assets/images/sc/64/habrahabr.png +0 -0
- data/app/assets/images/sc/64/icq.png +0 -0
- data/app/assets/images/sc/64/lastfm.png +0 -0
- data/app/assets/images/sc/64/linkedin.png +0 -0
- data/app/assets/images/sc/64/livejournal.png +0 -0
- data/app/assets/images/sc/64/magnolia.png +0 -0
- data/app/assets/images/sc/64/mailru.png +0 -0
- data/app/assets/images/sc/64/memori.png +0 -0
- data/app/assets/images/sc/64/mixx.png +0 -0
- data/app/assets/images/sc/64/moikrug.png +0 -0
- data/app/assets/images/sc/64/myspace.png +0 -0
- data/app/assets/images/sc/64/netvibes.png +0 -0
- data/app/assets/images/sc/64/newsvine.png +0 -0
- data/app/assets/images/sc/64/odnoklassniki.png +0 -0
- data/app/assets/images/sc/64/open_id.png +0 -0
- data/app/assets/images/sc/64/picasa.png +0 -0
- data/app/assets/images/sc/64/plurk.png +0 -0
- data/app/assets/images/sc/64/pownce.png +0 -0
- data/app/assets/images/sc/64/reddit.png +0 -0
- data/app/assets/images/sc/64/skype.png +0 -0
- data/app/assets/images/sc/64/stumbleupon.png +0 -0
- data/app/assets/images/sc/64/technorati.png +0 -0
- data/app/assets/images/sc/64/twitter.png +0 -0
- data/app/assets/images/sc/64/vimeo.png +0 -0
- data/app/assets/images/sc/64/vkontakte.png +0 -0
- data/app/assets/images/sc/64/webshots.png +0 -0
- data/app/assets/images/sc/64/wordpress.png +0 -0
- data/app/assets/images/sc/64/yahoo.png +0 -0
- data/app/assets/images/sc/64/yandex.png +0 -0
- data/app/assets/images/sc/64/yelp.png +0 -0
- data/app/assets/images/sc/64/you_tube.png +0 -0
- data/app/assets/images/sc/brand/facebook/facebook_128.png +0 -0
- data/app/assets/images/sc/brand/facebook/facebook_256.png +0 -0
- data/app/assets/images/sc/brand/facebook/facebook_32.png +0 -0
- data/app/assets/images/sc/brand/facebook/facebook_64.png +0 -0
- data/app/assets/images/sc/brand/github/github_128.png +0 -0
- data/app/assets/images/sc/brand/github/github_256.png +0 -0
- data/app/assets/images/sc/brand/github/github_32.png +0 -0
- data/app/assets/images/sc/brand/github/github_64.png +0 -0
- data/app/assets/images/sc/brand/google/google_128 copy.png +0 -0
- data/app/assets/images/sc/brand/google/google_128.png +0 -0
- data/app/assets/images/sc/brand/google/google_256 copy.png +0 -0
- data/app/assets/images/sc/brand/google/google_256.png +0 -0
- data/app/assets/images/sc/brand/google/google_32.png +0 -0
- data/app/assets/images/sc/brand/google/google_64 copy.png +0 -0
- data/app/assets/images/sc/brand/google/google_apps_32.png +0 -0
- data/app/assets/images/sc/brand/google/google_apps_64.png +0 -0
- data/app/assets/images/sc/brand/mailru/MailRuApi_32.png +0 -0
- data/app/assets/images/sc/brand/mailru/mailru-iphone.png +0 -0
- data/app/assets/images/sc/brand/mailru/mailru_64.png +0 -0
- data/app/assets/images/sc/brand/mailru/openid_128.png +0 -0
- data/app/assets/images/sc/brand/mailru/openid_256.png +0 -0
- data/app/assets/images/sc/brand/mailru/openid_32.png +0 -0
- data/app/assets/images/sc/brand/mailru/openid_64.png +0 -0
- data/app/assets/images/sc/brand/twitter/twitter_128.png +0 -0
- data/app/assets/images/sc/brand/twitter/twitter_256.png +0 -0
- data/app/assets/images/sc/brand/twitter/twitter_32.png +0 -0
- data/app/assets/images/sc/brand/twitter/twitter_64.png +0 -0
- data/app/assets/images/sc/brand/vkontakte/vkontakte_128.png +0 -0
- data/app/assets/images/sc/brand/vkontakte/vkontakte_256.png +0 -0
- data/app/assets/images/sc/brand/vkontakte/vkontakte_32.png +0 -0
- data/app/assets/images/sc/brand/vkontakte/vkontakte_64.png +0 -0
- data/app/assets/stylesheets/sc.css +12 -0
- data/app/controllers/authentications_controller.rb +66 -0
- data/app/controllers/registrations_controller.rb +31 -0
- data/app/models/authentication.rb +35 -0
- data/app/views/authentications/_collection.html.erb +37 -0
- data/app/views/authentications/index.html.erb +2 -0
- data/app/views/devise/confirmations/new.html.erb +11 -0
- data/app/views/devise/mailer/_bottom.html.erb +5 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +4 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +6 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +5 -0
- data/app/views/devise/passwords/edit.html.erb +14 -0
- data/app/views/devise/passwords/new.html.erb +11 -0
- data/app/views/devise/registrations/edit.html.erb +18 -0
- data/app/views/devise/registrations/new.html.erb +19 -0
- data/app/views/devise/sessions/new.html.erb +16 -0
- data/app/views/devise/shared/_links.erb +17 -0
- data/app/views/devise/shared/_social_links.html.erb +10 -0
- data/app/views/devise/unlocks/new.html.erb +11 -0
- data/config/ca-bundle.crt +5182 -0
- data/config/locales/devise.ru.yml +41 -0
- data/devise_russian.gemspec +2 -0
- data/lib/devise_russian/engine.rb +11 -0
- data/lib/devise_russian/models/base.rb +50 -0
- data/lib/devise_russian/version.rb +1 -1
- data/lib/devise_russian.rb +3 -4
- 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>
|