Skip to content

Commit

Permalink
added search box and legend
Browse files Browse the repository at this point in the history
* added some sort of limited search box using lustjs
* added icon legend at the bottom of the table
  • Loading branch information
asb-cpan committed Sep 15, 2014
1 parent 40f0e18 commit ea26fb6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
30 changes: 27 additions & 3 deletions web/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ dl.table-display {
}

.badges { margin-left: 1ex; }
img.valign {
vertical-align: middle;
}
</style>



</head>
<body>
<div id="header">
Expand Down Expand Up @@ -103,10 +108,13 @@ dl.table-display {
</div>
<h2>Project list</h2>
<p id="json_link"><a href="proto.json">JSON version of this list</a>.</p>
<dl class="table-display">
<div id="module_list">
<input class="search" placeholder="Search" />

<dl class="list table-display">
<TMPL_LOOP projects>
<TMPL_IF description>
<dt><TMPL_IF logo><img class="project-logo" src="<TMPL_VAR logo>" alt="<TMPL_VAR NAME> logo" /></TMPL_IF ><a href="<TMPL_VAR URL>"><TMPL_VAR NAME></a></dt>
<dt><TMPL_IF logo><img class="project-logo" src="<TMPL_VAR logo>" alt="<TMPL_VAR NAME> logo" /></TMPL_IF ><a href="<TMPL_VAR URL>" class="name"><TMPL_VAR NAME></a></dt>
<dd>
<div class='badges'>
<TMPL_IF badge_has_readme><a href="<TMPL_VAR badge_has_readme>"><img src='readme.png' title='Has a README' alt="Readme badge" /></a><TMPL_ELSE><img src='unachieved.png' title="Doesn't have a README" alt="Unachieved badge" /></TMPL_IF>
Expand All @@ -118,7 +126,23 @@ dl.table-display {
</TMPL_IF>
</TMPL_LOOP>
</dl>
<p style="clear:both; padding-top: 2em">
</div>
<script src="js/list.min.js"></script>
<script>
var options = {
valueNames: [ 'name' ]
};

var userList = new List('module_list', options);
</script>
<p style="clear:both; padding-top: 2em">
Legend:<br />
<img src='readme.png' class="valign" title='Has a README' alt="Readme badge" /> has a README |
<img src='tests.png' class="valign" title='Has tests' alt="Tests badge" /> has tests |
<img src='fresh.png' class="valign" title='Commits in the past 90 days' alt="Fresh badge" /> recently updated |
<img src='panda_nos11.png' class="valign" title='Conforms to the latest stable Perl 6 modules specs (without the experimental S11)' alt="Bronze Panda badge" /> conforms to Perl 6 modules specs
</p>
<p>
This page is generated from the files in the <a
href="http://github.com/perl6/modules.perl6.org/">modules.perl6.org
repository</a>.<br/><i>Last update: <TMPL_VAR last_update></i></p>
Expand Down
1 change: 1 addition & 0 deletions web/js/list.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea26fb6

Please sign in to comment.