Add xref helper utils template
This commit is contained in:
		
							parent
							
								
									4bad4e262c
								
							
						
					
					
						commit
						d35baf15f6
					
				
					 1 changed files with 23 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								tailbone_harvest/templates/harvest-util.mako
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								tailbone_harvest/templates/harvest-util.mako
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| ## -*- coding: utf-8; -*- | ||||
| 
 | ||||
| <%def name="render_xref_buttons()"> | ||||
|   <b-button type="is-primary" | ||||
|             % if harvest_url: | ||||
|             tag="a" href="${harvest_url}" target="_blank" | ||||
|             % else: | ||||
|             disabled title="${harvest_why_no_url}" | ||||
|             % endif | ||||
|             icon-pack="fas" | ||||
|             icon-left="external-link-alt"> | ||||
|     View in Harvest | ||||
|   </b-button> | ||||
| </%def> | ||||
| 
 | ||||
| <%def name="render_xref_helper()"> | ||||
|   <nav class="panel"> | ||||
|     <p class="panel-heading">Cross-Reference</p> | ||||
|     <div class="panel-block buttons"> | ||||
|       ${self.render_xref_buttons()} | ||||
|     </div> | ||||
|   </nav> | ||||
| </%def> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar