interop/legacy/capabilities.html
Rob Hirschfeld 32ce79536e Initial draft of 2015.03 guideline
Initial draft of 2015.03 guideline as passed by the board.

We are condensing two steps into one here > format & content.

After we accept this, we will create a new prelim guideline for
the next review cycle (target at 2015.04!).

I've also moved from files out of the root directory for
cleanup.

The RST and JSON files should match in content.

Change-Id: I40623b38e80a7d4a65a66d7210f6dfad5835c371
2015-03-13 09:21:12 -07:00

86 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" ></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/mustache.js/0.8.1/mustache.min.js"> </script>
<script id="header_template" type="x-tmpl-mustache">
<h1>OpenStack DefCore</h1>
<h2> {{release}} Tracked Capabilities</h2>
</script>
<script id="capabilities_template" type="x-tmpl-mustache">
{{#capabilities}}
<ul>
<li> <a onclick="$('#{{class}}_tests').toggle(500);return false;" href="#"> {{class}} capabilities ({{count}} of {{total}} total) </a>
<div id="{{class}}_tests" style="display:none;">
{{#items}}
<ul>
<li>
{{name}}
<ul>
<li>ID: {{id}}</li>
<li>Description: {{description}}</li>
<li>Achievements (met {{achievements_count}} of {{criteria_count}} total): {{#achievements}} <a href="#{{.}}">{{.}}</a> {{/achievements}}
{{#admin}}<li>Admin rights required</li>{{/admin}}
{{#core}}<li>Core test</li>{{/core}}</li>
<li> <a onclick="toggle_one_item('{{class}}', '{{id}}', 'tests_list');return false;" href="#"> Tests ({{tests_count}}) </a>
<div id="{{id}}_tests_list" class="{{class}}_tests_list" style="display:none;">
<ul>
{{#tests}} <li> {{.}} <a href="javascript:void(get_code_url('{{.}}'));"> [github] </a> </li> {{/tests}}
</ul>
<div>
</li>
</ul>
</li>
</ul>
{{/items}}
</div>
</li>
</ul>
{{/capabilities}}
{{^capabilities}}
No capabilities!
{{/capabilities}}
</script>
<script id="criteria_template" type="x-tmpl-mustache">
{{#criteria}}
<ul>
<li><a id="{{tag}}" onclick="$('#{{tag}}_ach').toggle(500);return false;" href="#"> {{name}} (tag : {{tag}}) </a> </li>
<div id="{{tag}}_ach" style="display:none;">
<ul>
<li>Description: {{Description}} </li>
<li>Weight: {{weight}} </li>
</ul>
</div>
</ul>
{{/criteria}}
</script>
<script src="/js/helpers.js"></script>
<script>
window.render_page = function(){render_capabilities_page()};
$(document).ready(window.render_page);
</script>
</head>
<body>
<div id="header"></div>
<input id="only_core" name="only_core" type="checkbox" checked onclick="render_page()" />
<label for="only_core">Show only core tests</label>
<br>
<select id="admin" onchange="render_page()">
<option value="all" >All tests</option>
<option value="admin" >Tests require admin rights</option>
<option value="noadmin">Tests don't require admin rights</option>
</select>
<div id="capabilities"></div>
<h2>Criterion descriptions</h2>
<ul id="criteria"></ul>
<div>Copyright OpenStack Foundation, 2014. Apache 2 License.</div>
</body>
</html>