1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 19:25:46 +01:00

Stripe usage output as completions output.

This commit is contained in:
Kris Maglione
2011-02-19 16:04:49 -05:00
parent 2583e32892
commit 019504e11c
2 changed files with 18 additions and 10 deletions

View File

@@ -465,11 +465,13 @@ var Template = Module("Template", {
// <e4x>
return <table>
{ format.headings ?
<tr highlight="Title" align="left">
{
this.map(format.headings, function (h) <th>{h}</th>)
}
</tr> : ""
<thead highlight="UsageHead">
<tr highlight="Title" align="left">
{
this.map(format.headings, function (h) <th>{h}</th>)
}
</tr>
</thead> : ""
}
{ format.columns ?
<colgroup>
@@ -478,9 +480,9 @@ var Template = Module("Template", {
}
</colgroup> : ""
}
{
<tbody highlight="UsageBody">{
this.map(iter, function (item)
<tr>
<tr highlight="UsageItem">
<td style="padding-right: 2em;">
<span highlight="Usage Link">{
let (name = item.name || item.names[0], frame = item.definedAt)
@@ -492,8 +494,8 @@ var Template = Module("Template", {
{ item.columns ? template.map(item.columns, function (c) <td>{c}</td>) : "" }
<td>{desc(item)}</td>
</tr>)
}
</table>;
}</tbody>
</table>;
// </e4x>
}
});