Changeset 1401


Ignore:
Timestamp:
Jan 3, 2014, 10:32:49 PM (4 years ago)
Author:
dkg
Message:

clean up proposal detail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jpdd/class.jpdd.proposal.php

    r1400 r1401  
    143143      $ret = '';
    144144
    145       if ($jpdd->isAuthenticated()) {
    146         if (0 == $jpdd->_authenticated_user->getAttendanceCount() &&
    147             !$this->isFull()) {
    148           $ret .= $this->getSignupForm();
    149         } elseif ($jpdd->_authenticated_user->isAttendingProposal($this->getID(), 'audience')) {
    150           $ret .= $this->getSignupCancellationForm();
    151         }
    152       }
    153 
    154145      if ((!is_null($this->_private_notes)) && $editor)
    155146         $ret .= '<div class="private-notes"><div class="title">Private Notes</div><div class="body">'.$jpdd->filterBlock($this->_private_notes).'</div></div>';
    156 
    157       if ($jpdd->isAuthenticated()) {
    158         $audience = $this->getM2MPeers('person', 'audience');
    159         if (count($audience))
    160           $ret .= '<div>Attending:'.$this->getPersonListWithOrgs($audience).'</div>';
    161       }
    162147
    163148      if ($editor)
     
    170155        reset($cats);
    171156        while(list(,$cat) = each($cats)) {
    172           $next = $this->getNext($cat);
    173           $prev = $this->getPrev($cat);
    174           $ret .= '<li>'.(is_null($prev) ? '' : '<a class="iterator" title="Previous Proposal in '.htmlentities($cat->getTitle()).'" href="'.$prev->getViewPath().'">&lt;</a> ').
    175             $cat->getLinkedTitle().
    176             (is_null($next) ? '' : ' <a class="iterator" title="Next Proposal in '.htmlentities($cat->getTitle()).'" href="'.$next->getViewPath().'">&gt;</a>'."\n");
     157          $ret .= '<li>'.$cat->getLinkedTitle().'</li>';
    177158        }
    178159        $ret .= "</ul>\n";
    179160      }
    180       $ret .= $this->getNextPrevLinks();
    181161          return $ret;
    182162        }
Note: See TracChangeset for help on using the changeset viewer.