diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-20 09:37:13 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-20 09:37:13 +0000 |
commit | f5c8e9b24cf03fd91db0838b9a86bcf85c6a1296 (patch) | |
tree | 6ba2e40109e350060bc7c33cfd6958543235e656 | |
parent | 701e936dc64d580a01dabe459ba4974f714e1120 (diff) | |
download | aports-turbo-f5c8e9b24cf03fd91db0838b9a86bcf85c6a1296.tar.bz2 aports-turbo-f5c8e9b24cf03fd91db0838b9a86bcf85c6a1296.tar.xz |
make tables responsive
-rw-r--r-- | tpl/package.tpl | 140 | ||||
-rw-r--r-- | tpl/packages.tpl | 56 |
2 files changed, 100 insertions, 96 deletions
diff --git a/tpl/package.tpl b/tpl/package.tpl index 672d3b0..cdccaee 100644 --- a/tpl/package.tpl +++ b/tpl/package.tpl @@ -9,75 +9,77 @@ <div class="panel panel-default"> <div class="panel-heading">General</div> <div class="panel-body"> - <table class="table table-striped table-bordered table-condensed">{{#name}} - <tr> - <th>Name:</th> - <td title="{{{desc}}}"><a href="/package/{{{name}}}">{{{name}}}</a></td> - </tr> - <tr> - <th>Version:</th> - <td>{{{version}}}</td> - </tr> - <tr> - <th>Description:</th> - <td>{{{desc}}}</td> - </tr> - <tr> - <th>Project:</th> - <td><a href="{{{url}}}">URL</a></td> - </tr> - <tr> - <th>Licence:</th> - <td>{{{lic}}}</td> - </tr> - <tr> - <th>Architecture:</th> - <td>{{{arch}}}</td> - </tr> - <tr> - <th>Checksum:</th> - <td>{{{csum}}}</td> - </tr> - <tr> - <th>Size:</th> - <td>{{{size}}} Bytes</td> - </tr>{{#install_size}} - <tr> - <th>Installed size:</th> - <td>{{{install_size}}} Bytes</td> - </tr>{{/install_size}}{{#provides}} - <tr> - <th>Provides:</th> - <td>{{{provides}}}</td> - </tr>{{/provides}}{{#install_if}} - <tr> - <th>Install if:</th> - <td>{{{install_if}}}</td> - </tr>{{/install_if}}{{#name}} - <tr> - <th>Origin:</th> - <td><a href="/package/{{{arch}}}/{{{origin}}}">{{{origin}}}</a></td> - </tr> - <tr> - <th>Maintainer:</th> - <td>{{{maintainer}}}</td> - </tr> - <tr> - <th>Build time:</th> - <td>{{{build_time}}}</td> - </tr> - <tr> - <th>Commit:</th> - <td><a href="http://git.alpinelinux.org/cgit/aports/commit/?id={{{commit}}}">{{{commit}}}</a></td> - </tr> - <tr> - <th>Contents:</th> - <td><a href="/contents?pkgname={{{name}}}&arch={{{arch}}}">Contents of package</a></td> - </tr>{{/name}}{{^name}} - <tr> - <td>This package does not exist!</td> - </tr>{{/name}} - </table> + <div class="table-responsive"> + <table class="table table-striped table-bordered table-condensed">{{#name}} + <tr> + <th>Name:</th> + <td title="{{{desc}}}"><a href="/package/{{{name}}}">{{{name}}}</a></td> + </tr> + <tr> + <th>Version:</th> + <td>{{{version}}}</td> + </tr> + <tr> + <th>Description:</th> + <td>{{{desc}}}</td> + </tr> + <tr> + <th>Project:</th> + <td><a href="{{{url}}}">URL</a></td> + </tr> + <tr> + <th>Licence:</th> + <td>{{{lic}}}</td> + </tr> + <tr> + <th>Architecture:</th> + <td>{{{arch}}}</td> + </tr> + <tr> + <th>Checksum:</th> + <td>{{{csum}}}</td> + </tr> + <tr> + <th>Size:</th> + <td>{{{size}}} Bytes</td> + </tr>{{#install_size}} + <tr> + <th>Installed size:</th> + <td>{{{install_size}}} Bytes</td> + </tr>{{/install_size}}{{#provides}} + <tr> + <th>Provides:</th> + <td>{{{provides}}}</td> + </tr>{{/provides}}{{#install_if}} + <tr> + <th>Install if:</th> + <td>{{{install_if}}}</td> + </tr>{{/install_if}}{{#name}} + <tr> + <th>Origin:</th> + <td><a href="/package/{{{arch}}}/{{{origin}}}">{{{origin}}}</a></td> + </tr> + <tr> + <th>Maintainer:</th> + <td>{{{maintainer}}}</td> + </tr> + <tr> + <th>Build time:</th> + <td>{{{build_time}}}</td> + </tr> + <tr> + <th>Commit:</th> + <td><a href="http://git.alpinelinux.org/cgit/aports/commit/?id={{{commit}}}">{{{commit}}}</a></td> + </tr> + <tr> + <th>Contents:</th> + <td><a href="/contents?pkgname={{{name}}}&arch={{{arch}}}">Contents of package</a></td> + </tr>{{/name}}{{^name}} + <tr> + <td>This package does not exist!</td> + </tr>{{/name}} + </table> + </div> </div> </div> </div> diff --git a/tpl/packages.tpl b/tpl/packages.tpl index 8d381d3..25aa25a 100644 --- a/tpl/packages.tpl +++ b/tpl/packages.tpl @@ -19,33 +19,35 @@ <button type="submit" class="btn btn-primary">Search</button> </form> </div> - <table class="table table-striped table-bordered table-condensed"> - <tr> - <th>Package</th> - <th>Version</th> - <th>Project</th> - <th>Licence</th> - <th>Architecture</th> - <th>Repository</th> - <th>Maintainer</th> - <th>Build date</th> - </tr>{{#rows}} - <tr> - <td class="package" title="{{{desc}}}"><a href="/package/{{{arch}}}/{{{package}}}">{{{package}}}</a></td> - <td class="version">{{{version}}}</td> - <td class="url"><a href="{{{project}}}">URL</a></td> - <td class="license">{{{license}}}</td> - <td class="arch">{{{arch}}}</td> - <td class="repo">{{{repo}}}</td> - <td class="maintainer">{{{maintainer}}}</td> - <td class="bdate">{{{bdate}}}</td> - </tr>{{/rows}} - {{{^rows}}} - <tr> - <td colspan="8">No item found...</td> - </tr> - {{{/rows}}} - </table> + <div class="table-responsive"> + <table class="table table-striped table-bordered table-condensed"> + <tr> + <th>Package</th> + <th>Version</th> + <th>Project</th> + <th>Licence</th> + <th>Architecture</th> + <th>Repository</th> + <th>Maintainer</th> + <th>Build date</th> + </tr>{{#rows}} + <tr> + <td class="package" title="{{{desc}}}"><a href="/package/{{{arch}}}/{{{package}}}">{{{package}}}</a></td> + <td class="version">{{{version}}}</td> + <td class="url"><a href="{{{project}}}">URL</a></td> + <td class="license">{{{license}}}</td> + <td class="arch">{{{arch}}}</td> + <td class="repo">{{{repo}}}</td> + <td class="maintainer">{{{maintainer}}}</td> + <td class="bdate">{{{bdate}}}</td> + </tr>{{/rows}} + {{{^rows}}} + <tr> + <td colspan="8">No item found...</td> + </tr> + {{{/rows}}} + </table> + </div> </div> </div> {{{footer}}} |