/**
  * Add frontend css and js to the discussion controller
  * @param VanillaController $Sender DiscussionController
  */
 public function DiscussionController_Render_Before($Sender)
 {
     // Add poll voting resources
     $Sender->AddJsFile($this->GetResource('js/discussionpolls.js', FALSE, FALSE));
     $Sender->AddCSSFile($this->GetResource('design/discussionpolls.css', FALSE, FALSE));
     $Sender->AddDefinition('DP_ShowResults', T('Show Results'));
     $Sender->AddDefinition('DP_ShowForm', T('Show Poll Form'));
     $Sender->AddDefinition('DP_ConfirmDelete', T('Are you sure you want to delete this poll?'));
     //check for any stashed messages from poll submit
     $Message = Gdn::Session()->Stash('DiscussionPollsMessage');
     if ($Message) {
         //inform
         Gdn::Controller()->InformMessage($Message);
         //pass to form error
         $Sender->SetData('DiscussionPollsMessage', $Message);
     }
 }