Changeset 739 for trunk

Show
Ignore:
Timestamp:
02/17/11 06:58:12 (15 months ago)
Author:
mgalloy
Message:

Fix for ticket #72. Now directories have a separate system_overview_comments which is a clone of overview_comments, but links are filled at the system level instead of the directory level.

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/overview.tt

    r645 r739  
    4949        <tr> 
    5050          <td class="name"><a href="[% url %]dir-overview.html">[% location %]</a></td> 
    51           <td>[% overview_comments %]</td> 
     51          <td>[% system_overview_comments %]</td> 
    5252        </tr> 
    5353        [% END %][% END %] 
  • trunk/src/tree/doctreedirectory__define.pro

    r727 r739  
    118118          return, self.system->processComments(self.overviewComments) 
    119119        endif 
    120  
    121         if (obj_valid(self.comments)) then begin 
    122           return, self.system->processComments(self.comments) 
    123         endif 
    124120         
    125121        return, '' 
    126122      end 
    127        
     123    'system_overview_comments': begin 
     124        if (obj_valid(self.systemOverviewComments)) then begin 
     125          return, self.system->processComments(self.systemOverviewComments) 
     126        endif 
     127         
     128        return, '' 
     129      end       
    128130    'has_comments': return, obj_valid(self.comments) || obj_valid(self.overviewComments) 
    129131    'comments': begin 
     
    370372   
    371373  doctree_fill_links, self.comments, self   
     374   
     375  self.systemOverviewComments = self.overviewComments->_clone() 
    372376  doctree_fill_links, self.overviewComments, self 
    373    
     377  doctree_fill_links, self.systemOverviewComments, self.system 
     378  
    374379  proFiles = self.proFiles->get(/all, count=nproFiles) 
    375380  for i = 0L, nproFiles - 1L do (proFiles[i])->fillLinks 
     
    445450  compile_opt strictarr, hidden 
    446451   
    447   obj_destroy, [self.overviewComments, self.comments] 
     452  obj_destroy, [self.overviewComments, self.systemOverviewComments, self.comments] 
    448453  obj_destroy, [self.author, self.copyright, self.history] 
    449454  obj_destroy, [self.proFiles, self.dlmFiles, self.savFiles, self.idldocFiles] 
     
    556561                           
    557562             overviewComments: obj_new(), $ 
     563             systemOverviewComments: obj_new(), $ 
    558564             comments: obj_new(), $ 
    559565