allow suppression of 'View' button via 'no_view_button' type option
This commit is contained in:
		
							parent
							
								
									a30ed80e16
								
							
						
					
					
						commit
						df7b0b7bba
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		|  | @ -66,17 +66,16 @@ | ||||||
|     <p><i tal:content="structure item/renderedDescription">Description</i> </p> |     <p><i tal:content="structure item/renderedDescription">Description</i> </p> | ||||||
|     <p> |     <p> | ||||||
|       <span class="button"> |       <span class="button"> | ||||||
|         <a href="#" |         <a i18n:translate="" | ||||||
|            i18n:translate="" |  | ||||||
|            tal:attributes="href |            tal:attributes="href | ||||||
|                 string:${view/virtualTargetUrl}/download.html?version=this"> |                 string:${view/virtualTargetUrl}/download.html?version=this"> | ||||||
|           Download |           Download | ||||||
|         </a> |         </a> | ||||||
|       </span> |       </span> | ||||||
|       <span class="button" |       <span class="button" | ||||||
|             tal:condition="item/viewable | nothing"> |             tal:define="viewable item/viewable|nothing" | ||||||
|         <a href="#" |             tal:condition="python: viewable and not view.typeOptions('no_view_button')"> | ||||||
|            i18n:translate="" |         <a i18n:translate="" | ||||||
|            tal:attributes="href |            tal:attributes="href | ||||||
|                 string:${view/virtualTargetUrl}/view?version=this"> |                 string:${view/virtualTargetUrl}/view?version=this"> | ||||||
|           View |           View | ||||||
|  | @ -84,7 +83,7 @@ | ||||||
|       </span> |       </span> | ||||||
|       <span class="button" |       <span class="button" | ||||||
|             tal:condition="item/xeditable"> |             tal:condition="item/xeditable"> | ||||||
|         <a href="#" title="Edit with External Editor" |         <a title="Edit with External Editor" | ||||||
|            i18n:translate="" |            i18n:translate="" | ||||||
|            tal:define="url view/virtualTargetUrl" |            tal:define="url view/virtualTargetUrl" | ||||||
|            tal:attributes="href string:$url/external_edit?version=this"> |            tal:attributes="href string:$url/external_edit?version=this"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue