mirror of
				https://github.com/inventree/inventree-docs.git
				synced 2025-10-30 20:35:38 +00:00 
			
		
		
		
	Adding custom version information banner (#330)
* Adding custom version information banner * Update banner text
This commit is contained in:
		
							
								
								
									
										13
									
								
								_includes/overrides/banner.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								_includes/overrides/banner.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| {% if config.extra.version %} | ||||
| <div class='md-banner md-banner--warning'> | ||||
|     <div class='md-grid md-typeset'> | ||||
|         {% if config.extra.version == "latest" %} | ||||
|         This documentation is for the <em>development</em> version of InvenTree, which may be significantly different from previous stable releases. | ||||
|         For stable release documentation, use the version selector located in the bottom right corner of this page. | ||||
|         {% elif self.outdated() %} | ||||
|         This documentation is for an outdated version of InvenTree. | ||||
|         For updated release documentation, use the version selector located in the bottom right corner of this page. | ||||
|         {% endif %} | ||||
|     </div> | ||||
| </div> | ||||
| {% endif %} | ||||
							
								
								
									
										3
									
								
								_includes/overrides/partials/header.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								_includes/overrides/partials/header.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| {% include "banner.html" %} | ||||
|  | ||||
| {{ super }} | ||||
							
								
								
									
										1
									
								
								_includes/overrides/partials/outdated.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								_includes/overrides/partials/outdated.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <!-- Empty "outdated" warning, we will handle this in 'banner.html' --> | ||||
		Reference in New Issue
	
	Block a user