Turn the HTML template into external

bug/bundler_fix
wchen-r7 2016-02-18 15:41:14 -06:00
parent 3f3b76bc86
commit 56c2ba9f75
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
<html>
<head>
<% unless kb.empty? %>
<script>
function showBasic() {
document.getElementById('knowledge_base').style.display = "none";
document.getElementById('basic_info').style.display = "inline";
}
function showKnowledge() {
document.getElementById('basic_info').style.display = "none";
document.getElementById('knowledge_base').style.display = "inline";
}
</script>
<% end %>
<style>
<%= load_css %>
</style>
</head>
<body>
<% unless kb.empty? %>
<table border="0">
<tr>
<th>
<div id="basic_info_button" onClick="showBasic()">Basic Information</a>
</th>
<th>
<div id="Knowledge_base_button" onClick="showKnowledge()">Knowledge Base</a>
</th>
</tr></table>
<p></p>
<% end %>
<div id="basic_info">
<%= r.render(md) %>
</div>
<% unless kb.empty? %>
<div id="knowledge_base">
<%= r.render(kb) %>
<% end %>
</div>
</body>
</html>