* 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 %hr
= form_for aspect do |asp| = form_for aspect do |asp|
= asp.text_field :name, :value => aspect.name = asp.text_field :name, :value => aspect.name
= asp.submit "Rename Aspect" = asp.submit t('.rename_aspect')
%hr %hr
.big_buttons .big_buttons

View file

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

View file

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

View file

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

View file

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