devise_rails3_ennder 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/README.rdoc +1 -1
- data/app/views/devise/shared/_user_nav.html.erb +5 -5
- data/version.txt +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/README.rdoc
CHANGED
|
@@ -16,7 +16,7 @@ You will have to provide this partial filled with you User personal fields input
|
|
|
16
16
|
|
|
17
17
|
devise_for :users
|
|
18
18
|
|
|
19
|
-
+This gem does not (you have to do it
|
|
19
|
+
+This gem does not (you have to do it yourself):+
|
|
20
20
|
* install the *warden* and *devise* gems
|
|
21
21
|
* lauch the 3 rake tasks
|
|
22
22
|
* add the before_filter instruction to your ApplicationController:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
<div id="user_nav" align="right">
|
|
2
2
|
<%
|
|
3
3
|
if user_signed_in?
|
|
4
|
-
%>
|
|
4
|
+
%> <%= t('devise.sessions.signed_in_as') %> <b><%= current_user.email %></b>. <%= link_to t('devise.sessions.Logout'), destroy_user_session_path %> <%= link_to t('devise.registrations.edit'), edit_user_registration_path %><%
|
|
5
5
|
else
|
|
6
|
-
%>
|
|
7
|
-
|
|
6
|
+
%> <%= link_to( t('devise.registrations.link'), new_user_registration_path ) %> <%= t('devise.sessions.or') %> <%= link_to( t('devise.sessions.link'), new_user_session_path ) %><%
|
|
7
|
+
end
|
|
8
8
|
|
|
9
9
|
if I18n.locale == :en
|
|
10
10
|
%> [ en | <%= link_to 'fr', url_for(:locale => 'fr') %> ]<%
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
%> [ <%= link_to 'en', url_for(:locale => 'en') %> | fr ]<%
|
|
13
13
|
end
|
|
14
14
|
%>
|
|
15
|
-
|
|
15
|
+
</div>
|
data/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.5
|