#37: update text messages

This commit is contained in:
Vokhmin Alexey V 2013-03-21 00:59:25 +04:00
parent 3ea7cfbe32
commit 3037520ab5
6 changed files with 18 additions and 10 deletions

View File

@ -6,9 +6,9 @@
.image .image
=image_tag(avatar_url(@issue.assignee, :micro), :alt => 'avatar') =image_tag(avatar_url(@issue.assignee, :micro), :alt => 'avatar')
%span.name= link_to(@issue.assign_uname, user_path(@issue.assignee)) %span.name= link_to(@issue.assign_uname, user_path(@issue.assignee))
%span= 'is assigned' %span= t('layout.issues.is_assigned')
- else - else
%span= "No one is assigned" %span= t('layout.issues.no_one_is_assigned')
%span.icon-share %span.icon-share
.both .both
.leftlist= t('layout.issues.labels') + ':' .leftlist= t('layout.issues.labels') + ':'

View File

@ -16,9 +16,9 @@
.image .image
=image_tag(avatar_url(@issue.assignee, :micro), :alt => 'avatar') =image_tag(avatar_url(@issue.assignee, :micro), :alt => 'avatar')
%span.name= link_to(@issue.assign_uname, user_path(@issue.assignee)) %span.name= link_to(@issue.assign_uname, user_path(@issue.assignee))
%span= 'is assigned' %span= t('layout.issues.is_assigned')
- else - else
%span= "No one is assigned" %span= t('layout.issues.no_one_is_assigned')
-if can?(:update, @issue) || @issue.new_record? -if can?(:update, @issue) || @issue.new_record?
%span.icon-share %span.icon-share
=render 'projects/issues/assigned_popup' =render 'projects/issues/assigned_popup'

View File

@ -1,8 +1,8 @@
.people.clear.selected .people.clear.selected
%span.icon-remove-circle %span.icon-remove-circle
= 'Clear assignee' = t('layout.issues.clear_assignee')
.container .container
%span= "No one is assigned" %span= t('layout.issues.no_one_is_assigned')
= hidden_field_tag "user-nil", nil, :name => "issue[assignee_id]" = hidden_field_tag "user-nil", nil, :name => "issue[assignee_id]"
- users = (@users || []) - users = (@users || [])
@ -14,8 +14,8 @@
.image .image
=image_tag(avatar_url(user, :micro), :alt => 'avatar') =image_tag(avatar_url(user, :micro), :alt => 'avatar')
%span.name= link_to(user.uname, user_path(user)) %span.name= link_to(user.uname, user_path(user))
%span= 'is assigned' %span= t('layout.issues.is_assigned')
= hidden_field_tag "user-#{index}", user.id, :name => "issue[assignee_id]" = hidden_field_tag "user-#{index}", user.id, :name => "issue[assignee_id]"
.both .both
- if users.empty? - if users.empty?
.nothing= 'Nothing to show' .nothing= t('layout.issues.nothing_to_show')

View File

@ -40,9 +40,9 @@
.image .image
=image_tag(avatar_url(@issue.assignee, :micro), :alt => 'avatar') =image_tag(avatar_url(@issue.assignee, :micro), :alt => 'avatar')
%span.name= link_to(@issue.assign_uname, user_path(@issue.assignee)) %span.name= link_to(@issue.assign_uname, user_path(@issue.assignee))
%span= 'is assigned' %span= t('layout.issues.is_assigned')
- else - else
%span= "No one is assigned" %span= t('layout.issues.no_one_is_assigned')
%span.icon-share %span.icon-share
.both .both
.leftlist.big-list .leftlist.big-list

View File

@ -11,6 +11,10 @@ en:
layout: layout:
issues: issues:
is_assigned: is assigned
clear_assignee: Clear assignee
nothing_to_show: Nothing to show
no_one_is_assigned: No one is assigned
list: List list: List
all: All issues all: All issues
to_me: Assigned to me to_me: Assigned to me

View File

@ -11,6 +11,10 @@ ru:
layout: layout:
issues: issues:
is_assigned: назначен
clear_assignee: Убрать назначение
nothing_to_show: Никто не найден
no_one_is_assigned: Никто не назначен
list: Список list: Список
all: Все задачи all: Все задачи
to_me: Назначенные мне to_me: Назначенные мне