Bake genus into config (prep for clostridium)
This commit is contained in:
		
							parent
							
								
									4e1e6f2899
								
							
						
					
					
						commit
						472eb639bc
					
				
					 7 changed files with 34 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -2,7 +2,7 @@ import DS from 'ember-data';
 | 
			
		|||
import config from '../config/environment';
 | 
			
		||||
 | 
			
		||||
export default DS.RESTAdapter.reopen({
 | 
			
		||||
  namespace: 'api/hymenobacter',
 | 
			
		||||
  namespace: 'api/' + config.genus,
 | 
			
		||||
  host: config.apiURL,
 | 
			
		||||
  coalesceFindRequests: true,
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										7
									
								
								app/components/genus-name.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/components/genus-name.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
import Ember from 'ember';
 | 
			
		||||
import config from '../config/environment';
 | 
			
		||||
 | 
			
		||||
export default Ember.Component.extend({
 | 
			
		||||
  tagName: 'em',
 | 
			
		||||
  genus: config.genus.capitalize(),
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
<h2><em>Hymenobacter</em> Characteristics</h2>
 | 
			
		||||
<h2>{{genus-name}} Characteristics</h2>
 | 
			
		||||
<h3>Total characteristics: {{controller.length}}</h3>
 | 
			
		||||
 | 
			
		||||
<table class="flakes-table">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								app/templates/components/genus-name.hbs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								app/templates/components/genus-name.hbs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
{{genus}}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
<h2><em>Hymenobacter</em> Strains</h2>
 | 
			
		||||
<h2>{{genus-name}} Strains</h2>
 | 
			
		||||
<h3>Total strains: {{controller.length}}</h3>
 | 
			
		||||
 | 
			
		||||
<table class="flakes-table">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue