summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/contents.tpl23
-rw-r--r--tpl/package.tpl2
2 files changed, 20 insertions, 5 deletions
diff --git a/tpl/contents.tpl b/tpl/contents.tpl
index 3eaaf3f..9e2eff6 100644
--- a/tpl/contents.tpl
+++ b/tpl/contents.tpl
@@ -9,11 +9,15 @@
<input type="text" class="form-control" id="filename" name="filename" value="{{{filename}}}">
</div>
<div class="form-group">
+ <label for="pkgname">Package name</label>
+ <input type="text" class="form-control" id="pkgname" name="pkgname" value="{{{pkgname}}}">
+ </div>
+ <div class="form-group">
<label for="arch">Architecture</label>
<select name="arch" class="form-control" id="arch">
- <option {{#x86}}selected{{/x86}} >x86</option>
- <option {{#x86_64}}selected{{/x86_64}} >x86_64</option>
- <option {{#armhf}}selected{{/armhf}} >armhf</option>
+ <option{{#x86}} selected {{/x86}}>x86</option>
+ <option{{#x86_64}} selected {{/x86_64}}>x86_64</option>
+ <option{{#armhf}} selected {{/armhf}}>armhf</option>
</select>
</div>
<button type="submit" class="btn btn-primary">Search</button>
@@ -29,7 +33,7 @@
</tr>{{#rows}}
<tr>
<td>{{{file}}}</td>
- <td>{{{pkgname}}}</td>
+ <td><a href="/package/{{{arch}}}/{{{pkgname}}}">{{{pkgname}}}</a></td>
<td>{{{repo}}}</td>
<td>{{{arch}}}</td>
</tr>{{/rows}}
@@ -40,6 +44,17 @@
{{{/rows}}}
</table>
</div>
+ <div class="panel-footer text-center">{{#pager}}
+ <nav>
+ <ul class="pagination">{{/pager}}{{#pager}}{{#prev}}
+ <li class=""><a href="/contents?{{{prev}}}" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>{{/prev}}{{/pager}}{{#pager}}{{^prev}}
+ <li class="disabled"><a href="" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>{{/prev}}{{/pager}}{{#pager}}
+ <li class="active"><a href="#">{{{page}}}</a></li>{{/pager}}{{#pager}}{{#next}}
+ <li><a href="/contents?{{{next}}}" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>{{/next}}{{/pager}}{{#pager}}{{^next}}
+ <li class="disabled"><a href="#" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>{{/next}}{{/pager}}{{#pager}}
+ </ul>
+ </nav>{{/pager}}
+ </div>
</div>
</div>
{{{footer}}}
diff --git a/tpl/package.tpl b/tpl/package.tpl
index 03771f3..34f46a9 100644
--- a/tpl/package.tpl
+++ b/tpl/package.tpl
@@ -72,7 +72,7 @@
</tr>
<tr>
<th>Contents:</th>
- <td><a href="/contents?filename={{{name}}}&amp;arch={{{arch}}}">Contents of package</a></td>
+ <td><a href="/contents?pkgname={{{name}}}&amp;arch={{{arch}}}">Contents of package</a></td>
</tr>{{/name}}{{^name}}
<tr>
<td>This package does not exist!</td>