Make site name h2 + component
This commit is contained in:
		
							parent
							
								
									c1b180ebac
								
							
						
					
					
						commit
						d4bd0e915c
					
				
					 3 changed files with 24 additions and 6 deletions
				
			
		|  | @ -1,7 +1,5 @@ | |||
|   <div class="flakes-navigation"> | ||||
|     {{#link-to 'index' class='logo'}} | ||||
|       {{globals.genus}}.info | ||||
|     {{/link-to}} | ||||
|     {{site-logo}} | ||||
|     {{#if session.isAuthenticated}} | ||||
|       <ul> | ||||
|         {{#link-to 'compare' tagName='li' href=false}} | ||||
|  | @ -38,9 +36,7 @@ | |||
| 
 | ||||
|   <div class="flakes-content"> | ||||
|     <div class="flakes-mobile-top-bar"> | ||||
|       <a href="" class="logo-wrap"> | ||||
|         {{globals.genus}}.info | ||||
|       </a> | ||||
|       {{site-logo}} | ||||
|       <a href="" class="navigation-expand-target"> | ||||
|         <img src="img/navigation-expand-target.png" height="26px"> | ||||
|       </a> | ||||
|  |  | |||
							
								
								
									
										3
									
								
								app/pods/components/site-logo/template.hbs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								app/pods/components/site-logo/template.hbs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| {{#link-to 'index' class='logo'}} | ||||
|   <h2>{{globals.genus}}.info</h2> | ||||
| {{/link-to}} | ||||
							
								
								
									
										19
									
								
								tests/unit/pods/components/site-logo/component-test.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tests/unit/pods/components/site-logo/component-test.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| import { moduleForComponent, test } from 'ember-qunit'; | ||||
| 
 | ||||
| moduleForComponent('site-logo', 'Unit | Component | site logo', { | ||||
|   // Specify the other units that are required for this test
 | ||||
|   // needs: ['component:foo', 'helper:bar'],
 | ||||
|   unit: true | ||||
| }); | ||||
| 
 | ||||
| test('it renders', function(assert) { | ||||
|   assert.expect(2); | ||||
| 
 | ||||
|   // Creates the component instance
 | ||||
|   var component = this.subject(); | ||||
|   assert.equal(component._state, 'preRender'); | ||||
| 
 | ||||
|   // Renders the component to the page
 | ||||
|   this.render(); | ||||
|   assert.equal(component._state, 'inDOM'); | ||||
| }); | ||||
		Reference in a new issue
	
	 Matthew Dillon
						Matthew Dillon