* Localizeable "Rename aspect" button

* Don't list emails_delivered if there are none yet
* Don't show drag_to_add button if there are no @remote_requests
This commit is contained in:
Thomas R. Koll 2010-12-28 23:11:28 +01:00
parent 154fa77bd6
commit 869cbdf9e9
5 changed files with 14 additions and 9 deletions

View file

@ -15,7 +15,7 @@
%hr
= form_for aspect do |asp|
= asp.text_field :name, :value => aspect.name
= asp.submit "Rename Aspect"
= asp.submit t('.rename_aspect')
%hr
.big_buttons

View file

@ -17,8 +17,6 @@
.span-4.append-1.last
.requests
%h3=t('.requests')
%i
%p= "#{t('.drag_to_add')} =>"
%ul.dropzone
- if @remote_requests.size < 1
@ -32,6 +30,10 @@
.circle
= link_to person_image_tag(hash[:sender]), hash[:sender]
- if @remote_requests.size > 0
%p
%i= "#{t('.drag_to_add')} =>"
= render 'shared/invitations', :invites => @invites
%div{:style=>"color:rgb(252,252,252);"}

View file

@ -38,10 +38,11 @@
%p
= invite.submit t('.send_an_invitation')
.span-4.last
#already_invited_pane
%h4
= t('.already_invited')
- for email in @emails_delivered
= email
- if !@emails_delivered.empty?
.span-4.last
#already_invited_pane
%h4
= t('.already_invited')
- for email in @emails_delivered
= email

View file

@ -61,6 +61,7 @@ de:
add_existing: "Bestehenden Kontakt hinzufügen"
confirm_remove_aspect: "Möchtest du diesen Aspekt wirklich löschen?"
remove_aspect: "Diesen Aspekt löschen"
rename_aspect: "Aspekt umbennenen"
helper:
are_you_sure: "Möchtest du diesen Aspekt wirklich löschen?"
aspect_not_empty: "Aspekt ist nicht leer"

View file

@ -183,6 +183,7 @@ en:
remove_aspect: "Delete this aspect"
confirm_remove_aspect: "Are you sure you want to delete this aspect?"
add_existing: "Add an existing contact"
rename_aspect: "Rename aspect"
notifications:
request_accepted: "accepted your share request."
new_request: "offered to share with you."