Files
pidcodes.github.com/_layouts/org.html

44 lines
1.3 KiB
HTML

{% include data.html %}
{% assign urlparts = page.url|split:"/" %}
{% assign orgname = urlparts[2] %}
{% assign ourpids = pids|where:"owner",orgname %}
<!DOCTYPE html>
<html>
{% include head.html %}
<body class="{% if site.animated %}animated fade-in-down{% endif %}">
<div class="site-wrap">
{% include header.html %}
<div class="post p2 p-responsive wrap" role="main">
<div class="measure">
<div class="post">
<header class="post-header">
<h1 class="h2">{{page.title}}</h1>
</header>
<article class="post-content">
{{ content }}
<h2>Allocated PIDs</h2>
<table>
<thead>
<tr><th>VID</th><th>PID</th><th>Device</th></tr>
</thead>
{% for pid in ourpids %}
{% assign pidurlparts = pid.url|split:"/" %}
<tr>
<th><a href="/{{pidurlparts[1]}}/">{{pidurlparts[1]}}</a></th>
<th><a href="{{pid.url}}">{{pidurlparts[2]}}</a></th>
<td>{{page.title}} {{pid.title}}</td>
</tr>
{% endfor %}
</table>
</article>
</div>
</div>
</div>
</div>
{% include footer.html %}
</body>
</html>