aboutsummaryrefslogtreecommitdiff
path: root/util/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-08 12:01:43 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-08 12:01:43 -0700
commit14ecb8f32831ef4747adef1de1af658dc7d4b298 (patch)
treeb3b765ef282b15dd31336ec7ab326a34510ea4c0 /util/tmpl
parent449ffc260a94cda0aca8edf33cf105378840effb (diff)
File reorg
Diffstat (limited to 'util/tmpl')
-rw-r--r--util/tmpl/footer.html3
-rw-r--r--util/tmpl/header.html14
-rw-r--r--util/tmpl/kanji-link.html1
-rw-r--r--util/tmpl/kanji-list.html5
-rw-r--r--util/tmpl/kanji.html43
-rw-r--r--util/tmpl/term-list.html5
-rw-r--r--util/tmpl/term.html40
7 files changed, 0 insertions, 111 deletions
diff --git a/util/tmpl/footer.html b/util/tmpl/footer.html
deleted file mode 100644
index 3840600f..00000000
--- a/util/tmpl/footer.html
+++ /dev/null
@@ -1,3 +0,0 @@
- <script src="{{root}}/js/frame.js"></script>
- </body>
-</html>
diff --git a/util/tmpl/header.html b/util/tmpl/header.html
deleted file mode 100644
index 2256b08a..00000000
--- a/util/tmpl/header.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8">
- <title></title>
- <style>
- @font-face {
- font-family: "KanjiStrokeOrders";
- src: url("{{root}}/ttf/kanji-stroke-orders.ttf");
- }
- </style>
- <link rel="stylesheet" href="{{root}}/css/frame.css">
- </head>
- <body>
diff --git a/util/tmpl/kanji-link.html b/util/tmpl/kanji-link.html
deleted file mode 100644
index f4f8dc69..00000000
--- a/util/tmpl/kanji-link.html
+++ /dev/null
@@ -1 +0,0 @@
-<a href="#" class="kanji-link">{{kanji}}</a>
diff --git a/util/tmpl/kanji-list.html b/util/tmpl/kanji-list.html
deleted file mode 100644
index b5d0b627..00000000
--- a/util/tmpl/kanji-list.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{{> header.html}}
-{{#each defs}}
-{{> kanji.html root=../root options=../options sequence=../sequence}}
-{{/each}}
-{{> footer.html}}
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
deleted file mode 100644
index 7a5affb7..00000000
--- a/util/tmpl/kanji.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="kanji-definition">
- {{#with options}}
- {{#if enableAnkiConnect}}
- <div class="action-bar">
- <a href="#" title="Add Kanji" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/img/add_kanji.png"></a>
- </div>
- {{/if}}
- {{/with}}
-
- <div class="kanji-glyph">{{character}}</div>
-
- <div class="kanji-info">
- <dl>
- {{#if glossary}}
- <dt>Meanings</dt>
- <dd>
- {{#each glossary}}
- {{.}}{{#unless @last}}, {{/unless}}
- {{/each}}
- </dd>
- {{/if}}
-
- {{#if kunyomi}}
- <dt>Kunyomi</dt>
- <dd>
- {{#each kunyomi}}
- {{.}}{{#unless @last}}, {{/unless}}
- {{/each}}
- </dd>
- {{/if}}
-
- {{#if onyomi}}
- <dt>Onyomi</dt>
- <dd>
- {{#each onyomi}}
- {{.}}{{#unless @last}}, {{/unless}}
- {{/each}}
- </dd>
- {{/if}}
- </dl>
- </div>
-</div>
-</div>
diff --git a/util/tmpl/term-list.html b/util/tmpl/term-list.html
deleted file mode 100644
index 5581b679..00000000
--- a/util/tmpl/term-list.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{{> header.html}}
-{{#each defs}}
-{{> term.html root=../root options=../options sequence=../sequence}}
-{{/each}}
-{{> footer.html}}
diff --git a/util/tmpl/term.html b/util/tmpl/term.html
deleted file mode 100644
index 216ccf0a..00000000
--- a/util/tmpl/term.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="term-definition">
- {{#with options}}
- {{#if enableAnkiConnect}}
- <div class="action-bar">
- <a href="#" title="Add term as expression" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="vocabExp" data-index="{{@index}}"><img src="{{../root}}/img/add_expression.png"></a>
- <a href="#" title="Add term as reading" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="vocabReading" data-index="{{@index}}"><img src="{{../root}}/img/add_reading.png"></a>
- </div>
- {{/if}}
- {{/with}}
-
- {{#if reading}}
- <div class="term-expression"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div>
- {{else}}
- <div class="term-expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div>
- {{/if}}
-
- {{#if rules}}
- <div class="term-rules">
- {{#each rules}}
- <span class="rule">{{.}}</span> {{#unless @last}}&laquo;{{/unless}}
- {{/each}}
- </div>
- {{/if}}
-
- {{#if tags}}
- <div class="term-tags">
- {{#each tags}}
- <span class="tag tag-{{class}}" title="{{desc}}">{{name}}</span>
- {{/each}}
- </div>
- {{/if}}
-
- <div class="term-glossary">
- <ol>
- {{#each glossary}}
- <li><span>{{.}}</span></li>
- {{/each}}
- </ol>
- </div>
-</div>