remove a duplicate view, hence many files updated, and fixed the js to socket people to the aspect sidebar
This commit is contained in:
parent
7df35ade12
commit
c45893d07d
30 changed files with 570 additions and 566 deletions
|
|
@ -10,6 +10,6 @@
|
|||
- else
|
||||
%h3=t('.nobody_in_aspect', :aspect_name => aspect.name)
|
||||
- if defined?(options) && options
|
||||
%h4= link_to t('.add_contact_to', :aspect_name => aspect.name), "#manage_aspect_contacts_pane", :class => "manage_aspect_contacts_button"
|
||||
%h4= link_to t('.add_contact_to', :aspect_name => aspect.name), "#aspect_contacts_pane", :class => "aspect_contacts_button"
|
||||
%h4= link_to t('.invite', :aspect_name => aspect.name), "#invite_user_pane", :class => "invite_user_button", :class => "invite_user_button", :title => t('.invite')
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
%span.tip click to edit
|
||||
|
||||
%ul.tools
|
||||
%li= link_to t('.add_a_new_contact'), "#manage_aspect_contacts_pane_#{aspect.id}", :class => 'manage_aspect_contacts_button'
|
||||
%li= link_to t('.add_a_new_contact'), "#aspect_contacts_pane_#{aspect.id}", :class => 'aspect_contacts_button'
|
||||
%li!= remove_link(aspect)
|
||||
|
||||
%ul.dropzone{:data=>{:aspect_id=>aspect.id}}
|
||||
|
|
@ -55,6 +55,6 @@
|
|||
=t('.drag_to_add')
|
||||
|
||||
.fancybox_content
|
||||
%div{:id => "manage_aspect_contacts_pane_#{aspect.id}"}
|
||||
= render "requests/manage_aspect_contacts", :aspect => aspect, :manage => true
|
||||
%div{:id => "aspect_contacts_pane_#{aspect.id}"}
|
||||
= render "shared/aspect_contacts", :aspect => aspect, :contacts => @contacts, :manage => true
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
= form_for Request.new, :remote => true do |request|
|
||||
= request.hidden_field :into, :value => "changeme"
|
||||
= request.hidden_field :to, :value => destination_handle
|
||||
= request.submit '+', :class => 'add', :disable_with => "Sending"
|
||||
%div{:id => destination_handle}
|
||||
= form_for Request.new, :remote => true do |request|
|
||||
= request.hidden_field :into, :value => "changeme"
|
||||
= request.hidden_field :to, :value => destination_handle
|
||||
= request.submit '+', :class => 'add', :disable_with => t('requests.create.sending')
|
||||
.message.hidden
|
||||
%i sent!
|
||||
|
|
|
|||
|
|
@ -22,11 +22,11 @@
|
|||
- for contact in aspect.contacts
|
||||
= person_image_link(contact.person)
|
||||
|
||||
= link_to (image_tag('add_contact_button.png', :title => t('shared.aspect_contacts.add_to', :aspect => aspect))), '#manage_aspect_contacts_pane', :class => 'manage_aspect_contacts_button'
|
||||
= link_to (image_tag('add_contact_button.png', :title => t('shared.aspect_contacts.add_to', :aspect => aspect))), '#aspect_contacts_pane', :class => 'aspect_contacts_button'
|
||||
|
||||
.fancybox_content
|
||||
#manage_aspect_contacts_pane
|
||||
= render "requests/manage_aspect_contacts", :aspect => aspect, :getting_started => 2
|
||||
#aspect_contacts_pane
|
||||
= render "shared/aspect_contacts", :aspect => aspect, :contacts => [], :getting_started => 2
|
||||
|
||||
= link_to "x", aspect_path(aspect), :method => :delete, :remote => true, :class => "delete right"
|
||||
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ ar:
|
|||
error: "!الرجاء اختيار جانب"
|
||||
ignore: ". تجاهل طلب الصداقة"
|
||||
success: ".أنتم الآن أصدقاء"
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ cs:
|
|||
error: "Prosím vyberte aspekt!"
|
||||
ignore: "Ignorovat žádost o přátelství."
|
||||
success: "Nyní jste přáteli."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ cy:
|
|||
error: "Please select an aspect!"
|
||||
ignore: "Ignored friend request."
|
||||
success: "You are now friends."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ da:
|
|||
error: "Please select an aspect!"
|
||||
ignore: "Ignored contact request."
|
||||
success: "You are now friends."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ de:
|
|||
error: "Bitte wähle einen Aspekt!"
|
||||
ignore: "Anfrage des Kontaktes ignoriert."
|
||||
success: "Ihr seit jetzt verbunden."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Diaspora Addresse des Kontaktes"
|
||||
create_request: "Anfrage erstellen"
|
||||
enter_a_diaspora_username: "Gib eine Diaspora Addresse ein:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ el:
|
|||
error: "Παρακαλώ επιλέξτε μια πτυχή!"
|
||||
ignore: "Αγνοήθηκε αίτηση φίλου."
|
||||
success: "Είστε πλέον φίλοι."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ en:
|
|||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
your_diaspora_username_is: "Your Diaspora username is: %{diaspora_handle}"
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
create_request: "Find by Diaspora handle"
|
||||
invitations:
|
||||
invites: "Invites"
|
||||
invite_someone: "Invite someone"
|
||||
|
|
@ -314,7 +314,7 @@ en:
|
|||
results_for: " results for %{params}"
|
||||
people_on_pod_are_aware_of: " people on pod are aware of"
|
||||
requests:
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
your_diaspora_username_is: "Your Diaspora username is: %{diaspora_handle}"
|
||||
contact_username: "Contact's username"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ es:
|
|||
error: "Seleccione un aspecto!"
|
||||
ignore: "Ignorar peticion de amistad"
|
||||
success: "Ahora son amigos."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ fi:
|
|||
error: "Please select an aspect!"
|
||||
ignore: "Ignored friend request."
|
||||
success: "You are now friends."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ fr:
|
|||
error: "Veuillez sélectionner un aspect !"
|
||||
ignore: "Requête de contact ignorée."
|
||||
success: "Vous êtes à présent amis."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Nom d'utilisateur du contact"
|
||||
create_request: "Créer une requête"
|
||||
enter_a_diaspora_username: "Entrez un nom d'utilisateur Diaspora :"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ he:
|
|||
error: "נא לבחור בהיבט!"
|
||||
ignore: "בקשות חברות מהן התעלמת."
|
||||
success: "אתם חברים כעת."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "שם המשתמש של איש הקשר"
|
||||
create_request: "יצירת בקשה"
|
||||
enter_a_diaspora_username: "נא להזין שם משתמש בדיאספורה:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ id:
|
|||
error: "Silahkan pilih sebuah aspek!"
|
||||
ignore: "Permintaan pertemanan yang diabaikan."
|
||||
success: "Anda sekarang berteman."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ it:
|
|||
error: "Seleziona un aspetto!"
|
||||
ignore: "Ignora richiesta di amicizia."
|
||||
success: "Adesso siete amici."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ lt:
|
|||
error: "Please select an aspect!"
|
||||
ignore: "Ignored friend request."
|
||||
success: "You are now friends."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ nb:
|
|||
error: "Velg et aspekt først!"
|
||||
ignore: "Ignorerte venneforespørsel"
|
||||
success: "Dere er nå venner."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ nl:
|
|||
error: "Selecteer een aspect!"
|
||||
ignore: "Vriendenverzoek genegeerd."
|
||||
success: "Jullie zijn nu vrienden."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Gebruikersnaam van contact"
|
||||
create_request: "Doe verzoek"
|
||||
enter_a_diaspora_username: "Vul een Diaspora gebruikersnaam in:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ pl:
|
|||
error: "Please select an aspect!"
|
||||
ignore: "Ignored contact request."
|
||||
success: "You are now friends."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ pt-BR:
|
|||
error: "Favor selecionar um aspecto!"
|
||||
ignore: "Requisições de amigos ignoradas."
|
||||
success: "Vocês agora são amigos."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ pt-PT:
|
|||
error: "Please select an aspect!"
|
||||
ignore: "Ignored friend request."
|
||||
success: "You are now friends."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ ro:
|
|||
error: "Please select an aspect!"
|
||||
ignore: "Ignored friend request."
|
||||
success: "You are now friends."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Contact's username"
|
||||
create_request: "Create request"
|
||||
enter_a_diaspora_username: "Enter a Diaspora username:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ ru:
|
|||
error: "Выберите аспект!"
|
||||
ignore: "Игнорированные запросы на дружбу."
|
||||
success: "Теперь вы друзья."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Контакты пользователя"
|
||||
create_request: "Создать запрос"
|
||||
enter_a_diaspora_username: "Введите имя пользователя в Диаспоре:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ sv:
|
|||
error: "Var god välj en aspekt!"
|
||||
ignore: "Ignorerade kontaktförfrågan."
|
||||
success: "Kontakten är nu tillagd."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Kontaktens Diaspora-adress"
|
||||
create_request: "Skapa förfrågan"
|
||||
enter_a_diaspora_username: "Ange ett användarnamn:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ tr:
|
|||
error: "Lutfen bir yan seçiniz!"
|
||||
ignore: "Arkadaş isteğini reddettiniz."
|
||||
success: "Siz şimdi arkadaşsınız."
|
||||
manage_aspect_contacts:
|
||||
aspect_contacts:
|
||||
contact_username: "Kontak kullanıcı adı"
|
||||
create_request: "Yaratma isteği"
|
||||
enter_a_diaspora_username: "Diaspora kullanıcı adı girin:"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ $(document).ready(function(){
|
|||
|
||||
//buttons//////
|
||||
$(".add_aspect_button," +
|
||||
".manage_aspect_contacts_button," +
|
||||
".aspect_contacts_button," +
|
||||
".invite_user_button," +
|
||||
".add_photo_button," +
|
||||
".remove_person_button," +
|
||||
|
|
@ -37,7 +37,7 @@ $(document).ready(function(){
|
|||
}
|
||||
);
|
||||
|
||||
$('.new_request').submit(function(){
|
||||
$('.new_request').live("submit", function(){
|
||||
var foo = $(this).parent();
|
||||
$(this).hide();
|
||||
foo.find('.message').removeClass('hidden');
|
||||
|
|
@ -85,8 +85,8 @@ $(document).ready(function(){
|
|||
|
||||
$('.webfinger_form').submit(function(evt){
|
||||
form = $(evt.currentTarget);
|
||||
form.siblings('.spinner').show();
|
||||
$('#request_result li:first').hide();
|
||||
form.siblings('#loader').show();
|
||||
$('#request_result li:first').hide();
|
||||
});
|
||||
|
||||
// hotkeys
|
||||
|
|
|
|||
|
|
@ -36,15 +36,16 @@ var WebSocketReceiver = {
|
|||
},
|
||||
|
||||
processPerson: function(response){
|
||||
form = $('.webfinger_form:visible');
|
||||
form.siblings('.spinner').hide();
|
||||
result_ul = form.siblings('.webfinger_result');
|
||||
form = $('.webfinger_form');
|
||||
form.siblings('#loader').hide();
|
||||
result_ul = form.siblings('#request_result');
|
||||
if(response['status'] == 'fail'){
|
||||
result_ul.children('.error').show();
|
||||
result_ul.children('.webfinger_error').text(response['response']).show();
|
||||
result_ul.siblings('.error').show();
|
||||
result_ul.find('.error').text(response['response']).show();
|
||||
}else{
|
||||
$('#people_stream').prepend(response['html']).slideDown('slow', function(){});
|
||||
var first_li = result_ul.find('li:first');
|
||||
first_li.hide()
|
||||
first_li.after(response['html']);
|
||||
result_ul.find("[name='request[into]']").val(result_ul.attr('aspect_id'));
|
||||
result_ul.children(':nth-child(2)').slideDown('fast', function(){});
|
||||
|
|
|
|||
1044
spec/fixtures/users.yaml
vendored
1044
spec/fixtures/users.yaml
vendored
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue