Changeset 1420


Ignore:
Timestamp:
Jan 4, 2014, 2:51:45 AM (4 years ago)
Author:
dkg
Message:

link to proposer and show private notes to the decider

File:
1 edited

Legend:

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

    r1418 r1420  
    144144      $ret = '';
    145145
    146       if ((!is_null($this->_private_notes)) && $editor)
    147          $ret .= '<div class="private-notes"><div class="title">Private Notes</div><div class="body">'.$jpdd->filterBlock($this->_private_notes).'</div></div>';
     146      if ($editor || $canaccept) {
     147        $ret .= '<div>Proposed by: '.$this->getProposer->getLinkedTitle().'</div>';
     148        if (!is_null($this->_private_notes))
     149          $ret .= '<div class="private-notes"><div class="title">Private Notes</div><div class="body">'.$jpdd->filterBlock($this->_private_notes).'</div></div>';
     150      }
    148151
    149152      $ret .= '<div>Min. Attendees: '.(int)($this->_min_attendees).'<br/>'.
     
    218221    }
    219222
     223    function getProposer() {
     224      global $jpdd;
     225      $map = $jpdd->prepClass('person');
     226      return new $map['classname'](array('id' => (int)$this->_proposer_id));
     227    }
     228
    220229    function canBeEditedBy($person) {
    221230      return ($person->getID() == $this->_proposer_id);
Note: See TracChangeset for help on using the changeset viewer.