summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/contents.tpl45
-rw-r--r--tpl/footer.tpl3
-rw-r--r--tpl/header.tpl50
-rw-r--r--tpl/package.tpl56
-rw-r--r--tpl/packages.tpl51
5 files changed, 205 insertions, 0 deletions
diff --git a/tpl/contents.tpl b/tpl/contents.tpl
new file mode 100644
index 0000000..dc4fe92
--- /dev/null
+++ b/tpl/contents.tpl
@@ -0,0 +1,45 @@
+{{{header}}}
+ <div id="main">
+ <div class="panel panel-default">
+ <div class="panel-heading">Search the contents of packages</div>
+ <div class="panel-body">
+ <form class="form-inline" role="form" id="search">
+ <div class="form-group">
+ <label for="filename">Filename</label>
+ <input type="text" class="form-control" id="filename" name="filename" value="{{{filename}}}">
+ </div>
+ <div class="form-group">
+ <label for="arch">Architecture</label>
+ <select name="arch" class="form-control" id="arch">
+ <option>x86</option>
+ <option>x86_64</option>
+ <option>armhf</option>
+ </select>
+ </div>
+ <button type="submit" class="btn btn-primary">Search</button>
+ </form>
+ </div>
+ <div class="table-responsive">
+ <table class="table table-striped table-bordered table-condensed" data-toggle="table">
+ <tr>
+ <th>File</th>
+ <th>Package name</th>
+ <th>Repository</th>
+ <th>Architecture</th>
+ </tr>{{#rows}}
+ <tr>
+ <td>{{{file}}}</td>
+ <td>{{{pkgname}}}</td>
+ <td>{{{repo}}}</td>
+ <td>{{{arch}}}</td>
+ </tr>{{/rows}}
+ {{{^rows}}}
+ <tr>
+ <td colspan="4">No item found...</td>
+ </tr>
+ {{{/rows}}}
+ </table>
+ </div>
+ </div>
+ </div>
+{{{footer}}}
diff --git a/tpl/footer.tpl b/tpl/footer.tpl
new file mode 100644
index 0000000..60e689e
--- /dev/null
+++ b/tpl/footer.tpl
@@ -0,0 +1,3 @@
+ <footer>© Copyright 2014 Alpine Linux Development Team all rights reserved | <a href="http://www.alpinelinux.org/privacy-policy.html">Privacy Policy</a></footer>
+ </body>
+</html>
diff --git a/tpl/header.tpl b/tpl/header.tpl
new file mode 100644
index 0000000..fdfdb67
--- /dev/null
+++ b/tpl/header.tpl
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Alpine aports fileindex</title>
+ <!-- Bootstrap -->
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
+ <link rel="stylesheet" href="/assets/style.css">
+ <link rel="shortcut icon" href="/assets/favicon.ico" />
+
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
+ <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
+
+ <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <header>
+ <a href="/"><img id="logo" src="/assets/alpinelinux-logo.svg" alt="Alpine Linux logo" /></a>
+ <div id="pagenav">
+ <nav>
+ {{#packages}}
+ <a href="/packages" class="active">Packages</a>
+ {{/packages}}
+ {{^packages}}
+ <a href="/packages">Packages</a>
+ {{/packages}}
+ {{#contents}}
+ <a href="/contents" class="active" class="">Contents</a>
+ {{/contents}}
+ {{^contents}}
+ <a href="/contents" class="">Contents</a>
+ {{/contents}}
+ </nav>
+ </div>
+ <div id="sitenav">
+ <nav>
+ <a href="http://wiki.alpinelinux.org">wiki</a>
+ <a href="http://git.alpinelinux.org">git</a>
+ <a href="http://bugs.alpinelinux.org/projects/alpine/issues">bugs</a>
+ <a href="http://forum.alpinelinux.org/forum">forums</a>
+ </nav>
+ </div>
+ </header>
diff --git a/tpl/package.tpl b/tpl/package.tpl
new file mode 100644
index 0000000..e25110f
--- /dev/null
+++ b/tpl/package.tpl
@@ -0,0 +1,56 @@
+{{{header}}}
+ <div id="main">
+ <div class="panel panel-default">
+ <div class="panel-heading">Package details</div>
+ <div class="panel-body">
+ </div>
+ <table class="table table-striped table-bordered table-condensed" id="package">
+ {{#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>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>Repository</th>
+ <td>Repository</td>
+ </tr>
+ <tr>
+ <th>Maintainer</th>
+ <td>{{{maintainer}}}</td>
+ </tr>
+ <tr>
+ <th>Build date</th>
+ <td>{{{build_time}}}</td>
+ </tr>
+ {{#install_if}}
+ <tr>
+ <th>Install if</th>
+ <td>{{{install_if}}}</td>
+ </tr>
+ {{/install_if}}
+ {{/name}}
+ {{^name}}
+ <tr>
+ <td>This package does not exist!</td>
+ </tr>
+ {{/name}}
+ </table>
+ </div>
+ </div>
+{{{footer}}}
diff --git a/tpl/packages.tpl b/tpl/packages.tpl
new file mode 100644
index 0000000..9027858
--- /dev/null
+++ b/tpl/packages.tpl
@@ -0,0 +1,51 @@
+{{{header}}}
+ <div id="main">
+ <div class="panel panel-default">
+ <div class="panel-heading">Search for packages</div>
+ <div class="panel-body">
+ <form class="form-inline" role="form" id="search">
+ <div class="form-group">
+ <label for="package">Package name</label>
+ <input type="text" class="form-control" id="package" name="package" value="{{{package}}}">
+ </div>
+ <div class="form-group">
+ <label for="arch">Architecture</label>
+ <select name="arch" class="form-control" id="arch">
+ <option>x86</option>
+ <option>x86_64</option>
+ <option>armhf</option>
+ </select>
+ </div>
+ <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>
+ </div>
+{{{footer}}}