move forward form to plugin
This commit is contained in:
		@@ -212,7 +212,6 @@ class NoticeListItem extends Widget
 | 
			
		||||
            $this->out->elementStart('div', 'notice-options');
 | 
			
		||||
            $this->showFaveForm();
 | 
			
		||||
            $this->showReplyLink();
 | 
			
		||||
            $this->showForwardForm();
 | 
			
		||||
            $this->showDeleteLink();
 | 
			
		||||
            $this->out->elementEnd('div');
 | 
			
		||||
        }
 | 
			
		||||
@@ -531,26 +530,6 @@ class NoticeListItem extends Widget
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * show the form to forward a notice
 | 
			
		||||
     *
 | 
			
		||||
     * @return void
 | 
			
		||||
     */
 | 
			
		||||
 | 
			
		||||
    function showForwardForm()
 | 
			
		||||
    {
 | 
			
		||||
        $user = common_current_user();
 | 
			
		||||
        if ($user && $user->id != $this->notice->profile_id) {
 | 
			
		||||
            $profile = $user->getProfile();
 | 
			
		||||
            if ($profile->hasForwarded($this->notice->id)) {
 | 
			
		||||
                $this->out->text(_('Forwarded'));
 | 
			
		||||
            } else {
 | 
			
		||||
                $ff = new ForwardForm($this->out, $this->notice);
 | 
			
		||||
                $ff->show();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * if the user is the author, let them delete the notice
 | 
			
		||||
     *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user