Skip to content

Commit

Permalink
FIX: Reorder sections on Component page (#165)
Browse files Browse the repository at this point in the history
closes #165
  • Loading branch information
dwhieb committed Jul 19, 2024
1 parent 9d93846 commit bede1b0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
56 changes: 28 additions & 28 deletions pages/Component/Component.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,34 @@
</dl>
</fieldset>

<fieldset class=sources>
<legend class=label>Sources</legend>
<table>
<thead>
<th scope=col>Form</th>
<th scope=col>UR</th>
<th scope=col>Proto-Algonquian</th>
<th scope=col>Gloss</th>
<th scope=col>Bibliography</th>
<th scope=col>Speaker</th>
<th scope=col>Notes</th>
</thead>
<tbody>
{{#each tokens as |token| }}
<tr>
<td class=txn>{{#if form }}{{ form }}{{else}}{{/if}}</td>
<td class=txn>{{#if UR }}/{{ UR }}/{{else}}{{/if}}</td>
<td class=txn>{{#if PA }}{{ PA }}{{else}}{{/if}}</td>
<td>{{#if gloss }}{{ gloss }}{{else}}{{/if}}</td>
<td>{{ bibliography }}</td>
<td>{{#if speaker }}{{ speaker }}{{else}}{{/if}}</td>
<td>{{#if notes }}{{ notes }}{{else}}{{/if}}</td>
</tr>
{{/each}}
</tbody>
</table>
</fieldset>

<fieldset>
<legend class=label>Matches</legend>
<dl>
Expand Down Expand Up @@ -220,34 +248,6 @@
</fieldset>
{{/if}}

<fieldset class=sources>
<legend class=label>Sources</legend>
<table>
<thead>
<th scope=col>Form</th>
<th scope=col>UR</th>
<th scope=col>Proto-Algonquian</th>
<th scope=col>Gloss</th>
<th scope=col>Bibliography</th>
<th scope=col>Speaker</th>
<th scope=col>Notes</th>
</thead>
<tbody>
{{#each tokens as |token| }}
<tr>
<td class=txn>{{#if form }}{{ form }}{{else}}{{/if}}</td>
<td class=txn>{{#if UR }}/{{ UR }}/{{else}}{{/if}}</td>
<td class=txn>{{#if PA }}{{ PA }}{{else}}{{/if}}</td>
<td>{{#if gloss }}{{ gloss }}{{else}}{{/if}}</td>
<td>{{ bibliography }}</td>
<td>{{#if speaker }}{{ speaker }}{{else}}{{/if}}</td>
<td>{{#if notes }}{{ notes }}{{else}}{{/if}}</td>
</tr>
{{/each}}
</tbody>
</table>
</fieldset>

<fieldset class=metadata>
<legend class=label>Metadata</legend>
<dl>
Expand Down
2 changes: 0 additions & 2 deletions pages/Component/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export function Component(req, res) {

}

console.log(component)

res.render(`Component/Component`, {
component,
Component: true,
Expand Down

0 comments on commit bede1b0

Please sign in to comment.