standard listing: show predicate also for resources
This commit is contained in:
		
							parent
							
								
									5d3bcf3cfa
								
							
						
					
					
						commit
						66e1a71851
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -210,7 +210,10 @@ | ||||||
|                         item.editable and 'dojo.dnd.Source' or ''"> |                         item.editable and 'dojo.dnd.Source' or ''"> | ||||||
|           <tal:items repeat="related resources"> |           <tal:items repeat="related resources"> | ||||||
|             <tal:item define="class python: repeat['related'].odd() and 'even' or 'odd'; |             <tal:item define="class python: repeat['related'].odd() and 'even' or 'odd'; | ||||||
|                               description related/description"> |                               description related/description; | ||||||
|  |                               predicate related/predicateTitle; | ||||||
|  |                               info python: ' | '.join( | ||||||
|  |                                     t for t in (description, predicate) if t)"> | ||||||
|               <tr tal:attributes="class string:$class dojoDndItem dojoDndHandle; |               <tr tal:attributes="class string:$class dojoDndItem dojoDndHandle; | ||||||
|                                   id related/uniqueId"> |                                   id related/uniqueId"> | ||||||
|                 <td tal:condition="item/showCheckboxes|nothing" |                 <td tal:condition="item/showCheckboxes|nothing" | ||||||
|  | @ -227,7 +230,7 @@ | ||||||
|                     <img tal:attributes="src icon/src" /> |                     <img tal:attributes="src icon/src" /> | ||||||
|                   </a> |                   </a> | ||||||
|                   <a tal:attributes="href python: view.getUrlForTarget(related); |                   <a tal:attributes="href python: view.getUrlForTarget(related); | ||||||
|                                      title description"> |                                      title info"> | ||||||
|                     <div tal:content="related/title">Resource Title</div> |                     <div tal:content="related/title">Resource Title</div> | ||||||
|                   </a> |                   </a> | ||||||
|                 </td> |                 </td> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue