<p>First attempt at separating Lua/LuCI functions from HTML in theme template files. Should result in easier theme customization, since web designers will not need to deal with Lua in order to edit HTML/CSS.</p>

<p>To test:<br>
Check setup wizard, non-admin (apps, license, about) pages, login, and admin pages for proper functionality and page render. Check both full size and small display sizes.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/luci-commotion theme-logic-separation</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/luci-commotion/pull/396'>https://github.com/opentechinstitute/luci-commotion/pull/396</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Theme: Restructured header.htm to separate luci from html</li>
  <li>Theme:</li>
  <li>Theme: Moved template javascript to separate include</li>
  <li>Theme: Reformatted setup_wiz_sidebar</li>
  <li>Theme: Moved sidenav to separate include file (sidenav.htm)</li>
  <li>Theme: Moved stylesheet calls to separate include file (stylesheets.htm)</li>
  <li>Theme: Reformatted subtree.htm</li>
  <li>Theme: Moved page branding to separate include file (top-branding.htm)</li>
  <li>Theme: Moved unsaved changes to separate file. Commented out extra 'end'</li>
  <li>Theme: incorrect media paths in includes</li>
  <li>Theme: Added missing title generator</li>
  <li>Theme: Added missing title function</li>
  <li>Theme: Incorrect include syntax in header.htm</li>
  <li>Theme: Need to check that ucichanges is not nil before using it</li>
  <li>Theme: Fixed bad path</li>
  <li>Theme:</li>
  <li>Theme: Moved context-dependent div to sidenav.htm</li>
  <li>Theme: body tag class quotes closed too early</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-0">luasrc/view/themes/commotion/footer.htm</a>
    (78)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-1">luasrc/view/themes/commotion/functions/gen-title.htm</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-2">luasrc/view/themes/commotion/header.htm</a>
    (277)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-3">luasrc/view/themes/commotion/javascript.htm</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-4">luasrc/view/themes/commotion/setup_wiz_sidebar.htm</a>
    (45)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-5">luasrc/view/themes/commotion/sidenav.htm</a>
    (13)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-6">luasrc/view/themes/commotion/stylesheets.htm</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-7">luasrc/view/themes/commotion/subtree.htm</a>
    (75)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-8">luasrc/view/themes/commotion/top-branding.htm</a>
    (33)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/396/files#diff-9">luasrc/view/themes/commotion/unsaved_changes.htm</a>
    (43)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/396.patch'>https://github.com/opentechinstitute/luci-commotion/pull/396.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/396.diff'>https://github.com/opentechinstitute/luci-commotion/pull/396.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/luci-commotion/pull/396">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxOTM0MjU5MCwiZGF0YSI6eyJpZCI6MzU1MzgzMTJ9fQ==--b071999ebc2311c9354fd95d45d502794d79ac17.gif" width="1" /></p>