<% if @user and @user.id %>
<%= t 'layouts.welcome_user', :user_link => (link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}, :title => t('layouts.welcome_user_link_tooltip')) %> |
<%= yield :greeting %>
- <%= link_to t('layouts.inbox', :size => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, case @user.new_messages.size when 0 then { :title => t('layouts.inbox_tooltip_0') } when 1 then { :class => 'greeting-bar-unread', :title => t('layouts.inbox_tooltip_1') } else { :class => 'greeting-bar-unread', :title => t('layouts.inbox_tooltip_n', :size => @user.new_messages.size) } end %> |
+ <%
+ inbox_attributes = {}
+ inbox_attributes[:class] = 'greeting-bar-unread' if @user.new_messages.size > 0
+ inbox_attributes[:title] = t 'layouts.inbox_tooltip', :count => @user.new_messages.size
+ %>
+ <%= link_to t('layouts.inbox', :count => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, inbox_attributes %> |
<%= link_to t('layouts.logout'), {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor', :title => t('layouts.logout_tooltip')}%>
<% else %>
<%= link_to t('layouts.log_in'), {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor', :title => t('layouts.log_in_tooltip')} %>
layouts:
welcome_user: "Вітаем, {{user_link}}"
home: "дамоў"
- inbox: "уваходныя ({{size}})"
+ inbox: "уваходныя ({{count}})"
logout: выйсці
log_in: увайсці
sign_up: зарэгістравацца
layouts:
welcome_user: "Willkommen, {{user_link}}"
home: "home"
- inbox: "Posteingang ({{size}})"
+ inbox: "Posteingang ({{count}})"
logout: Abmelden
log_in: Anmelden
sign_up: Registrieren
welcome_user_link_tooltip: Your user page
home: home
home_tooltip: Go to home location
- inbox: "inbox ({{size}})"
- inbox_tooltip_0: Your inbox contains no unread messages
- inbox_tooltip_1: Your inbox contians 1 unread message
- inbox_tooltip_n: Your inbox contains {{size}} unread messages
+ inbox: "inbox ({{count}})"
+ inbox_tooltip:
+ zero: Your inbox contains no unread messages
+ one: Your inbox contians 1 unread message
+ other: Your inbox contains {{count}} unread messages
logout: logout
logout_tooltip: "Log out"
log_in: log in
comment_from: "Commentaire de {{link_user}} le {{comment_created_at}}"
layouts:
welcome_user: "Bienvenue, {{user_link}}"
- inbox: "Boite aux lettres ({{size}})"
+ inbox: "Boite aux lettres ({{count}})"
logout: "Déconnexion"
log_in: "Connexion"
sign_up: "S'inscrire"
layouts:
welcome_user: "Welcome, {{user_link}}"
home: "home"
- inbox: "inbox ({{size}})"
+ inbox: "inbox ({{count}})"
logout: logout
log_in: log in
sign_up: sign up
layouts:
welcome_user: "Hæ {{user_link}}"
home: "heim"
- inbox: "innhólf ({{size}})"
+ inbox: "innhólf ({{count}})"
logout: "útskrá"
log_in: "innskrá"
sign_up: "búa til aðgang"
layouts:
welcome_user: "Benvenuto, {{user_link}}"
home: "posizione iniziale"
- inbox: "in arrivo ({{size}})"
+ inbox: "in arrivo ({{count}})"
logout: esci
log_in: entra
sign_up: iscriviti
layouts:
welcome_user: "Welkom, {{user_link}}"
home: "home"
- inbox: "Postvak IN ({{size}})"
+ inbox: "Postvak IN ({{count}})"
logout: uitloggen
log_in: inloggen
sign_up: registreren
layouts:
welcome_user: "Witaj, {{user_link}}"
home: "główna"
- inbox: "skrzynka ({{size}})"
+ inbox: "skrzynka ({{count}})"
logout: wyloguj
log_in: zaloguj się
sign_up: zarejestruj
layouts:
welcome_user: "Добро пожаловать, {{user_link}}"
home: "домой"
- inbox: "входящие ({{size}})"
+ inbox: "входящие ({{count}})"
logout: выйти
log_in: войти
sign_up: регистрация
layouts:
welcome_user: "Dobrodošli, {{user_link}}"
home: "domov"
- inbox: "prejeta pošta ({{size}})"
+ inbox: "prejeta pošta ({{count}})"
logout: odjava
log_in: prijava
sign_up: vpis
layouts:
welcome_user: "Welcome, {{user_link}}"
home: "home"
- inbox: "inbox ({{size}})"
+ inbox: "inbox ({{count}})"
logout: logout
log_in: log in
sign_up: sign up