Permalink
Browse files

Added missing html resources to the html template file

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Jul 31, 2015
1 parent 02a0c35 commit 43a0883022f64539498b84220d487b16ffd49a7e
Showing with 26 additions and 2 deletions.
  1. +15 −2 src/context.cpp
  2. +3 −0 templates/html/htmljsnavtree.tpl
  3. +8 −0 templates/html/htmllayout.tpl
@@ -952,6 +952,14 @@ class TranslateContext::Private : public PropertyMapper
{
return theTranslator->trRTFGeneralIndex();
}
TemplateVariant panelSyncOn() const
{
return theTranslator->trPanelSynchronisationTooltip(FALSE);
}
TemplateVariant panelSyncOff() const
{
return theTranslator->trPanelSynchronisationTooltip(TRUE);
}
Private()
{
//%% string generatedBy
@@ -1126,6 +1134,10 @@ class TranslateContext::Private : public PropertyMapper
addProperty("referenceManual", this,&Private::referenceManual);
//%% string index
addProperty("index", this,&Private::index);
//%% string panelSyncOn
addProperty("panelSyncOn", this,&Private::panelSyncOn);
//%% string panelSyncOff
addProperty("panelSyncOff", this,&Private::panelSyncOff);
m_javaOpt = Config_getBool("OPTIMIZE_OUTPUT_JAVA");
m_fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
@@ -9079,6 +9091,7 @@ int RefCountedContext::s_totalCount;
void generateOutputViaTemplate()
{
msg("Generating output via template engine...\n");
{
TemplateEngine e;
TemplateContext *ctx = e.createContext();
@@ -9165,7 +9178,7 @@ void generateOutputViaTemplate()
//%% string space
ctx->set("space"," ");
if (Config_getBool("GENERATE_HTML"))
//if (Config_getBool("GENERATE_HTML"))
{ // render HTML output
Template *tpl = e.loadByName("htmllayout.tpl",1);
if (tpl)
@@ -9188,7 +9201,7 @@ void generateOutputViaTemplate()
// TODO: clean index before each run...
if (Config_getBool("GENERATE_LATEX"))
//if (Config_getBool("GENERATE_LATEX"))
{ // render LaTeX output
Template *tpl = e.loadByName("latexlayout.tpl",1);
if (tpl)
@@ -18,3 +18,6 @@ var NAVTREEINDEX =
{% endfor %}
{% endwith %}
];
var SYNCONMSG = '{{ tr.panelSyncOn }}';
var SYNCOFFMSG = '{{ tr.panelSyncOff }}';
@@ -24,6 +24,14 @@
{% resource 'nav_g.png' %}
{% resource 'nav_h.lum' %}
{% resource 'navtree.css' %}
{% resource 'navtree.js' %}
{% resource 'resize.js' %}
{% resource 'doc.luma' %}
{% resource 'folderopen.luma' %}
{% resource 'folderclosed.luma' %}
{% resource 'arrowdown.luma' %}
{% resource 'arrowright.luma' %}
{% resource 'splitbar.lum' %}
{# general search resources #}
{% resource 'search_l.png' as 'search/search_l.png' %}

0 comments on commit 43a0883

Please sign in to comment.