diff options
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/kanji.html | 32 | ||||
-rw-r--r-- | tmpl/model.html | 2 | ||||
-rw-r--r-- | tmpl/terms.html | 72 |
3 files changed, 53 insertions, 53 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html index 8f52eb4a..4bb524cf 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -2,10 +2,10 @@ <div class="entry"> <div class="actions"> {{#if addable}} - <a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji" data-index="{{@index}}"><img src="/mixed/img/add-kanji.png"></a> + <a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji"><img src="/mixed/img/add-kanji.png" alt></a> {{/if}} {{#if source}} - <a href="#" title="Source term" class="source-term"><img src="/mixed/img/source-term.png"></a> + <a href="#" title="Source term" class="source-term"><img src="/mixed/img/source-term.png" alt></a> {{/if}} </div> @@ -17,7 +17,7 @@ <th>Kunyomi:</th> <td> {{#each kunyomi}} - {{.}}{{#unless @last}}, {{/unless}} + {{.}}{{#unless @last}}, {{/unless}} {{/each}} </td> </tr> @@ -25,7 +25,7 @@ <th>Onyomi:</th> <td> {{#each onyomi}} - {{.}}{{#unless @last}}, {{/unless}} + {{.}}{{#unless @last}}, {{/unless}} {{/each}} </td> </tr> @@ -34,29 +34,29 @@ <div> {{#each tags}} - <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span> + <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span> {{/each}} </div> <div class="glossary"> {{#if glossary.[1]}} - <ol> - {{#each glossary}} - <li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li> - {{/each}} - </ol> + <ol> + {{#each glossary}} + <li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li> + {{/each}} + </ol> {{else}} - <div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div> + <div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div> {{/if}} </div> </div> {{/inline}} {{#if definitions}} - {{#each definitions}} - {{#unless @first}}<hr>{{/unless}} - {{> kanji addable=../addable source=../source root=../root}} - {{/each}} +{{#each definitions}} +{{#unless @first}}<hr>{{/unless}} +{{> kanji addable=../addable source=../source root=../root}} +{{/each}} {{else}} - <p>No results found.</p> +<p>No results found.</p> {{/if}} diff --git a/tmpl/model.html b/tmpl/model.html index acff44a0..94772316 100644 --- a/tmpl/model.html +++ b/tmpl/model.html @@ -9,7 +9,7 @@ </button> <ul class="dropdown-menu dropdown-menu-right"> {{#each markers}} - <li><a class="marker-link" href="#">{{.}}</a></li> + <li><a class="marker-link" href="#">{{.}}</a></li> {{/each}} </ul> </div> diff --git a/tmpl/terms.html b/tmpl/terms.html index 22209f9b..fa32cea1 100644 --- a/tmpl/terms.html +++ b/tmpl/terms.html @@ -1,71 +1,71 @@ {{#*inline "definition"}} - {{#if tags}} - <div> - {{#each tags}} - <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span> - {{/each}} - </div> - {{/if}} - {{#if glossary.[1]}} - <ul> - {{#each glossary}} - <li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li> - {{/each}} - </ul> - {{else}} - <div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div> - {{/if}} +{{#if tags}} +<div> + {{#each tags}} + <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span> + {{/each}} +</div> +{{/if}} +{{#if glossary.[1]}} +<ul> + {{#each glossary}} + <li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li> + {{/each}} +</ul> +{{else}} +<div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div> +{{/if}} {{/inline}} {{#*inline "term"}} <div class="entry"> <div class="actions"> {{#if addable}} - <a href="#" title="Add term as expression" class="action-add-note pending disabled" data-mode="term-kanji" data-index="{{@index}}"><img src="/mixed/img/add-term-kanji.png"></a> - <a href="#" title="Add term as reading" class="action-add-note pending disabled" data-mode="term-kana" data-index="{{@index}}"><img src="/mixed/img/add-term-kana.png"></a> + <a href="#" title="Add expression" class="action-add-note pending disabled" data-mode="term-kanji"><img src="/mixed/img/add-term-kanji.png" alt></a> + <a href="#" title="Add reading" class="action-add-note pending disabled" data-mode="term-kana"><img src="/mixed/img/add-term-kana.png" alt></a> {{/if}} {{#if playback}} - <a href="#" title="Play audio" class="action-play-audio" data-index="{{@index}}"><img src="/mixed/img/play-audio.png"></a> + <a href="#" title="Play audio" class="action-play-audio"><img src="/mixed/img/play-audio.png" alt></a> {{/if}} </div> {{#if reading}} - <div class="expression"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div> + <div class="expression"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div> {{else}} - <div class="expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div> + <div class="expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div> {{/if}} {{#if reasons}} - <div class="reasons"> - {{#each reasons}} - <span class="reasons">{{.}}</span> {{#unless @last}}«{{/unless}} - {{/each}} - </div> + <div class="reasons"> + {{#each reasons}} + <span class="reasons">{{.}}</span> {{#unless @last}}«{{/unless}} + {{/each}} + </div> {{/if}} <div class="glossary"> - {{#if grouped}} + {{#if grouped}} {{#if definitions.[1]}} <ol> {{#each definitions}} - <li>{{> definition}}</li> + <li>{{> definition}}</li> {{/each}} </ol> {{else}} - {{> definition definitions.[0]}} + {{> definition definitions.[0]}} {{/if}} - {{else}} + {{else}} {{> definition}} - {{/if}} + {{/if}} </div> </div> {{/inline}} {{#if definitions}} - {{#each definitions}} - {{#unless @first}}<hr>{{/unless}} - {{> term grouped=../grouped addable=../addable playback=../playback}} - {{/each}} +{{#each definitions}} +{{#unless @first}}<hr>{{/unless}} +{{> term grouped=../grouped addable=../addable playback=../playback}} +{{/each}} {{else}} - <p>No results found.</p> +<p>No results found.</p> {{/if}} |