{% extends 'layouts/master-page' %}
{% block title %}CAPEC browsing{% endblock %}
{% block content %}
  <table class="table table-hover table-striped">
    <tbody>
      <tr> <td class="warning">Name              </td><td class="info"><b>{{capec.name}}  </b></td> </tr>
      <tr> <td class="warning">Summary           </td><td class="info">{{capec.summary}}      </td> </tr>
      <tr> <td class="warning">Prerequisites     </td><td class="info">{{capec.prerequisites}}</td> </tr>
      <tr> <td class="warning">Solutions         </td><td class="info">{{capec.solutions}}    </td> </tr>
      <tr> <td class="warning">Related Weaknesses</td>
        <td class="info">
          <table>
            <tr class="Warning"> <td><b>CWE ID</b></td> <td><b>Description</b></td> </tr>
            {% for c in capec.related_weakness|sortIntLikeStr %}
              <tr> <td width="75px"><a href="/cwe/{{c}}">CWE-{{c}}</a></td> <td>{{cwes[c]}}</td> </tr>
            {% endfor %}
          </table>
        </td>
      </tr>
    </tbody>
  </table>
{% endblock %}
