diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index 7896a35c..f3b1ba87 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -17,18 +17,23 @@ templates['header.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(c templates['kanji.html'] = template({"1":function(container,depth0,helpers,partials,data) { var stack1; - return "
Kunyomi
\n" + return "
Kunyomi:
\n" + ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.kunyomi : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : ""); },"2":function(container,depth0,helpers,partials,data) { - return "
" - + container.escapeExpression(container.lambda(depth0, depth0)) - + "
\n"; -},"4":function(container,depth0,helpers,partials,data) { var stack1; - return "
Onyomi
\n" + return "
" + + container.escapeExpression(container.lambda(depth0, depth0)) + + ((stack1 = helpers.unless.call(depth0 != null ? depth0 : {},(data && data.last),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + + "
\n"; +},"3":function(container,depth0,helpers,partials,data) { + return ", "; +},"5":function(container,depth0,helpers,partials,data) { + var stack1; + + return "
Onyomi:
\n" + ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.onyomi : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : ""); -},"6":function(container,depth0,helpers,partials,data) { +},"7":function(container,depth0,helpers,partials,data) { return "
  • " + container.escapeExpression(container.lambda(depth0, depth0)) + "
  • \n"; @@ -40,9 +45,9 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia + "\n\n
    \n
    \n" + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.kunyomi : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + "\n" - + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.onyomi : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.onyomi : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + "
    \n
    \n\n
    \n
      \n" - + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.glossary : depth0),{"name":"each","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.glossary : depth0),{"name":"each","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + "
    \n
    \n\n"; },"useData":true}); templates['kanji-link.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { diff --git a/ext/fg/css/frame.css b/ext/fg/css/frame.css index 3f8e3116..6341beb6 100644 --- a/ext/fg/css/frame.css +++ b/ext/fg/css/frame.css @@ -97,3 +97,7 @@ li { li span { color: #000; } + +dt { + font-weight: bold; +} diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html index 0e5c8573..d9e7ffcf 100644 --- a/util/tmpl/kanji.html +++ b/util/tmpl/kanji.html @@ -4,16 +4,16 @@
    {{#if kunyomi}} -
    Kunyomi
    +
    Kunyomi:
    {{#each kunyomi}} -
    {{.}}
    +
    {{.}}{{#unless @last}}, {{/unless}}
    {{/each}} {{/if}} {{#if onyomi}} -
    Onyomi
    +
    Onyomi:
    {{#each onyomi}} -
    {{.}}
    +
    {{.}}{{#unless @last}}, {{/unless}}
    {{/each}} {{/if}}