Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
b45906f902
10 changed files with 39 additions and 34 deletions
|
|
@ -12,6 +12,13 @@ GEMS: We would like to keep external dependencies unduplicated. We're using No
|
|||
The privacy aware, personally controlled, do-it-all, open source social network.
|
||||
|
||||
**DISCLAIMER: THIS IS PRE-ALPHA SOFTWARE AND SHOULD BE TREATED ACCORDINGLY.**
|
||||
**PLEASE, DO NOT RUN IN PRODUCTION. IT IS FUN TO GET RUNNING, BUT EXPECT THINGS TO BE BROKEN**
|
||||
|
||||
Also, we really want to continue to focus on features and improving the code base. When we think it is
|
||||
ready for general use, we will post more detailed instructions.
|
||||
|
||||
|
||||
|
||||
These instructions are for machines running [Ubuntu](http://www.ubuntu.com/), [Fedora](http://www.fedoraproject.org) or Mac OS X. We are developing Diaspora for the latest and greatest browsers, so please update your Firefox, Chrome or Safari to the latest and greatest.
|
||||
|
||||
## Preparing your system
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class AspectsController < ApplicationController
|
|||
|
||||
def manage
|
||||
@aspect = :manage
|
||||
@remote_requests = Request.for_user current_user
|
||||
@remote_requests = Request.for_user(current_user).all
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ class Person
|
|||
local_person
|
||||
elsif !identifier.include?("localhost") && !opts[:local]
|
||||
begin
|
||||
puts "begin finger"
|
||||
f = Redfinger.finger(identifier)
|
||||
rescue SocketError => e
|
||||
raise "Diaspora server for #{identifier} not found" if e.message =~ /Name or service not known/
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ class Request
|
|||
validates_presence_of :destination_url, :callback_url
|
||||
before_validation :clean_link
|
||||
|
||||
scope :for_user, lambda{ |user| where(:destination_url => user.person.receive_url) }
|
||||
scope :from_user, lambda{ |user| where(:destination_url.ne => user.person.receive_url) }
|
||||
scope :for_user, lambda{ |user| where(:destination_url => user.receive_url) }
|
||||
scope :from_user, lambda{ |user| where(:destination_url.ne => user.receive_url) }
|
||||
|
||||
def self.instantiate(options = {})
|
||||
person = options[:from]
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
Requests
|
||||
|
||||
.requests
|
||||
%ul
|
||||
%ul.dropzone
|
||||
- for request in @remote_requests
|
||||
%li.requested_person{:id => request.person.id, :request_id => request.id}
|
||||
= person_image_tag(request.person)
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
Ignore/Remove
|
||||
|
||||
%li.remove
|
||||
%ul
|
||||
%ul.dropzone
|
||||
|
||||
- content_for :publish do
|
||||
= link_to("add a new aspect", "#add_aspect_pane", :id => "add_aspect_button", :class => "new_aspect button", :title => "Add a new aspect")
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ $(function() {
|
|||
});
|
||||
|
||||
$(".aspect ul").droppable({
|
||||
hoverClass: 'active',
|
||||
drop: function(event, ui) {
|
||||
|
||||
if ($(ui.draggable[0]).hasClass('requested_person')){
|
||||
|
|
@ -69,6 +70,7 @@ $(function() {
|
|||
});
|
||||
|
||||
$(".remove ul").droppable({
|
||||
hoverClass: 'active',
|
||||
drop: function(event, ui) {
|
||||
|
||||
if ($(ui.draggable[0]).hasClass('requested_person')){
|
||||
|
|
|
|||
|
|
@ -262,6 +262,11 @@
|
|||
close.show();
|
||||
}
|
||||
|
||||
$("#fancybox-inner input[type='text'], #fancybox-inner textarea").focus(function() {
|
||||
$(document).unbind('keydown.fb');
|
||||
});
|
||||
|
||||
|
||||
fancybox_set_navigation();
|
||||
|
||||
$(window).bind("resize.fb", $.fancybox.center);
|
||||
|
|
@ -1074,4 +1079,4 @@
|
|||
fancybox_init();
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -547,6 +547,10 @@ h1.big_text {
|
|||
border: 1px solid #cccccc;
|
||||
list-style: none;
|
||||
padding: 15px; }
|
||||
.aspect ul.dropzone.active,
|
||||
.requests ul.dropzone.active,
|
||||
.remove ul.dropzone.active {
|
||||
background-color: #fafafa; }
|
||||
.aspect .person,
|
||||
.aspect .requested_person,
|
||||
.requests .person,
|
||||
|
|
@ -597,3 +601,6 @@ h1.big_text {
|
|||
border: 1px solid #cccccc;
|
||||
border-bottom: none;
|
||||
padding: 3px 10px; }
|
||||
|
||||
#fancybox-close:hover {
|
||||
background-color: transparent; }
|
||||
|
|
|
|||
|
|
@ -711,6 +711,10 @@ h1.big_text
|
|||
:style none
|
||||
:padding 15px
|
||||
|
||||
&.active
|
||||
:background
|
||||
:color #fafafa
|
||||
|
||||
.person,
|
||||
.requested_person
|
||||
:display inline-block
|
||||
|
|
@ -752,3 +756,7 @@ h1.big_text
|
|||
:bottom none
|
||||
|
||||
:padding 3px 10px
|
||||
|
||||
#fancybox-close:hover
|
||||
:background
|
||||
:color transparent
|
||||
|
|
|
|||
Loading…
Reference in a new issue