~matteo-collina/+junk/gipieffe

« back to all changes in this revision

Viewing changes to app/views/associates/_associate_bar.html.erb

  • Committer: Matteo Collina
  • Date: 2008-11-02 09:46:31 UTC
  • Revision ID: matteo.collina@gmail.com-20081102094631-h9w18le32hew28xp
 * Generated login system by the restful-authentication-i18n plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<% if logged_in? -%>
 
2
  <div id="associate-bar-greeting"><%= I18n.t(:logged_in_as, :login => link_to_current_associate, :content_method => :login) %></div>
 
3
  <div id="associate-bar-action"  >(<%= link_to t(:log_out), logout_path, { :title => t(:log_out) }    %>)</div>
 
4
<% else -%>
 
5
  <div id="associate-bar-greeting"><%= link_to_login_with_IP I18n.t(:not_logged_in), :style => 'border: none;' %></div>
 
6
  <div id="associate-bar-action"  ><%= link_to I18n.t(:log_in),  login_path,  { :title => I18n.t(:log_in) } %> /
 
7
                               <%= link_to I18n.t(:sign_up), signup_path, { :title => I18n.t(:create_account) } %></div>
 
8
<% end -%>