diff --git a/app/components/commentary/entry.hbs b/app/components/commentary/entry.hbs new file mode 100644 index 0000000..7ef224f --- /dev/null +++ b/app/components/commentary/entry.hbs @@ -0,0 +1 @@ +

Commentary

diff --git a/app/components/words/word-row.hbs b/app/components/words/word-row.hbs new file mode 100644 index 0000000..0fbd8fb --- /dev/null +++ b/app/components/words/word-row.hbs @@ -0,0 +1,5 @@ + + {{@model.greek}} + {{@model.ulb}} + {{@model.morph}} + \ No newline at end of file diff --git a/app/components/words/word-table.hbs b/app/components/words/word-table.hbs new file mode 100644 index 0000000..c8552ed --- /dev/null +++ b/app/components/words/word-table.hbs @@ -0,0 +1,11 @@ +

Word Details

+ + + + + + + {{#each @model as |word|}} + + {{/each}} +
GreekULBMorphology
diff --git a/app/styles/app.scss b/app/styles/app.scss index 115d7c4..c57a541 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -2,3 +2,5 @@ @import "ember-bootstrap/bootstrap"; @import "components/scrollmenu"; + +@import "components/words"; diff --git a/app/styles/components/words.scss b/app/styles/components/words.scss new file mode 100644 index 0000000..89cc2f2 --- /dev/null +++ b/app/styles/components/words.scss @@ -0,0 +1,10 @@ +table.word-details { + border: 1px solid grey; +} + +table.word-details th, +table.word-details td { + border: 1px solid grey; + padding: 10px; +} + diff --git a/app/templates/verse.hbs b/app/templates/verse.hbs index 7d99722..a647394 100644 --- a/app/templates/verse.hbs +++ b/app/templates/verse.hbs @@ -1,18 +1,19 @@
-
+

{{model.reference}}

Greek

{{model.greek_text}}

ULB

{{model.ulb_text}}

+
+
-
    - {{#each @model.words as |word|}} -
  • {{word.greek}} : {{word.ulb}} : {{word.morph}}
  • - {{/each}} -
+ +
+
+
diff --git a/tests/integration/components/commentary/entry-test.js b/tests/integration/components/commentary/entry-test.js new file mode 100644 index 0000000..47408fe --- /dev/null +++ b/tests/integration/components/commentary/entry-test.js @@ -0,0 +1,26 @@ +import { module, test } from 'qunit'; +import { setupRenderingTest } from 'ember-qunit'; +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; + +module('Integration | Component | commentary/entry', function(hooks) { + setupRenderingTest(hooks); + + test('it renders', async function(assert) { + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.set('myAction', function(val) { ... }); + + await render(hbs``); + + assert.equal(this.element.textContent.trim(), ''); + + // Template block usage: + await render(hbs` + + template block text + + `); + + assert.equal(this.element.textContent.trim(), 'template block text'); + }); +}); diff --git a/tests/integration/components/words/word-row-test.js b/tests/integration/components/words/word-row-test.js new file mode 100644 index 0000000..fa3ff0c --- /dev/null +++ b/tests/integration/components/words/word-row-test.js @@ -0,0 +1,26 @@ +import { module, test } from 'qunit'; +import { setupRenderingTest } from 'ember-qunit'; +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; + +module('Integration | Component | words/word-row', function(hooks) { + setupRenderingTest(hooks); + + test('it renders', async function(assert) { + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.set('myAction', function(val) { ... }); + + await render(hbs``); + + assert.equal(this.element.textContent.trim(), ''); + + // Template block usage: + await render(hbs` + + template block text + + `); + + assert.equal(this.element.textContent.trim(), 'template block text'); + }); +}); diff --git a/tests/integration/components/words/word-table-test.js b/tests/integration/components/words/word-table-test.js new file mode 100644 index 0000000..fcc6a68 --- /dev/null +++ b/tests/integration/components/words/word-table-test.js @@ -0,0 +1,26 @@ +import { module, test } from 'qunit'; +import { setupRenderingTest } from 'ember-qunit'; +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; + +module('Integration | Component | words/word-table', function(hooks) { + setupRenderingTest(hooks); + + test('it renders', async function(assert) { + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.set('myAction', function(val) { ... }); + + await render(hbs``); + + assert.equal(this.element.textContent.trim(), ''); + + // Template block usage: + await render(hbs` + + template block text + + `); + + assert.equal(this.element.textContent.trim(), 'template block text'); + }); +});