* update template file ext name

This commit is contained in:
tix 2017-01-09 10:49:18 +08:00
parent 6438a8511d
commit dbee0f61e7
13 changed files with 1 additions and 38 deletions

View File

@ -6,44 +6,7 @@
</div> </div>
<div class="col-md-9 col-xs-12"> <div class="col-md-9 col-xs-12">
<% if (page_cont == 'inc') { %> <% if (page_cont == 'inc') { %>
<% if (inc_tag == 'land_use') { %> <%- include('inc/' + inc_tag) %>
<%- include('inc/land_use.html') %>
<% } %>
<% if (inc_tag == 'meteorological') { %>
<%- include('inc/meteorological.html') %>
<% } %>
<% if (inc_tag == 'soil_and_water_conservation') { %>
<%- include('inc/soil_and_water_conservation.html') %>
<% } %>
<% if (inc_tag == 'grass') { %>
<%- include('inc/grass.html') %>
<% } %>
<% if (inc_tag == 'soil_erosion') { %>
<%- include('inc/soil_erosion.html') %>
<% } %>
<% if (inc_tag == 'forest') { %>
<%- include('inc/forest.html') %>
<% } %>
<% if (inc_tag == 'water') { %>
<%- include('inc/water.html') %>
<% } %>
<% if (inc_tag == 'desertification') { %>
<%- include('inc/desertification.html') %>
<% } %>
<% if (inc_tag == 'wetland') { %>
<%- include('inc/wetland.html') %>
<% } %>
<% if (inc_tag == 'forage_yield') { %>
<%- include('inc/forage_yield.html') %>
<% } %>
<% if (inc_tag == 'env_quality_monitoring') { %>
<%- include('inc/env_quality_monitoring.html') %>
<% } %>
<% if (inc_tag == 'ecology') { %>
<%- include('inc/ecology.html') %>
<% } %>
<% } else { %>
<%- page_cont ? page_cont : '' %>
<% } %> <% } %>
</div> </div>
</div> </div>