MS IZ removed a bunch of unused request stuff

This commit is contained in:
maxwell 2010-09-13 16:58:23 -07:00
parent 63b3513a12
commit 650a502404
5 changed files with 0 additions and 139 deletions

View file

@ -22,15 +22,7 @@ class RequestsController < ApplicationController
include RequestsHelper
respond_to :html
respond_to :json, :only => :index
def index
@remote_requests = Request.for_user current_user
@request = Request.new
respond_with @remote_requests
end
def destroy
if params[:accept]
if params[:aspect_id]

View file

@ -1,42 +0,0 @@
-# Copyright 2010 Diaspora Inc.
-#
-# This file is part of Diaspora.
-#
-# Diaspora is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Diaspora is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
-#
:javascript
$(document).ready(function(){
$(".aspect_selector").change( function() {
var id = $(this).children(":selected").val();
$(this).parent().children(".accept").html( "<a href=\"/requests/#{request.id}/?accept=true&aspect_id="+id+"\" data-method=\"delete\" rel=\"nofollow\" class=\"button\">Accept</a>");
});
});
%li.message{:id => request.id}
%span.from
= link_to "#{request.person.real_name}", '#'
%ul.request_buttons
%select{ :class => "aspect_selector", :style=>"display:inline;"}
%option Add to aspect
%option
- for aspect in current_user.aspects
%option{:value => aspect.id}= aspect.name
%li.accept= link_to 'Accept', request_path(request, :accept => true), :method => :delete, :class => "button"
%li.ignore= link_to 'Ignore', request_path(request), :confirm => 'Are you sure?', :method => :delete, :class => "button"

View file

@ -1,27 +0,0 @@
-# Copyright 2010 Diaspora Inc.
-#
-# This file is part of Diaspora.
-#
-# Diaspora is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Diaspora is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
-#
- title "Edit Request"
= render 'form'
%p
= link_to "Show", request_path(@person_request)
|
= link_to "View All", request_path

View file

@ -1,32 +0,0 @@
-# Copyright 2010 Diaspora Inc.
-#
-# This file is part of Diaspora.
-#
-# Diaspora is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Diaspora is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
-#
%h1.big_text
.back
= link_to "⇧ home", root_path
Requests
%h3= "currently #{@request_count} requests"
%ul#stream
- for request in @remote_requests
= render "request", :request => request
#content_bottom
.back
= link_to "⇧ home", root_path

View file

@ -1,30 +0,0 @@
-# Copyright 2010 Diaspora Inc.
-#
-# This file is part of Diaspora.
-#
-# Diaspora is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Diaspora is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
-#
- title "Request"
%p
= @request.inspect
%p
= link_to "Edit", edit_request_path(@request)
|
= link_to "Destroy", @request, :confirm => 'Are you sure?', :method => :delete
|
= link_to "View All", requests_path