summaryrefslogtreecommitdiffstats
path: root/res/raw
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-01-17 13:20:02 -0800
committerJohn Reck <jreck@google.com>2012-01-17 15:52:06 -0800
commit7287f80e144177895a5b17f7e0eb3488303b0d1c (patch)
tree1b70d7bdf302bd458bc27937f7aaeba802bfe2db /res/raw
parent9f733096d8e5a875edcdd63e24ec7d5a029d499b (diff)
downloadpackages_apps_Browser-7287f80e144177895a5b17f7e0eb3488303b0d1c.zip
packages_apps_Browser-7287f80e144177895a5b17f7e0eb3488303b0d1c.tar.gz
packages_apps_Browser-7287f80e144177895a5b17f7e0eb3488303b0d1c.tar.bz2
Add a folder index view in debug mode
Change-Id: I67bb28d95cbe5ab6cf361271b46acc44398f188e
Diffstat (limited to 'res/raw')
-rw-r--r--res/raw/folder_view.ktpl97
1 files changed, 97 insertions, 0 deletions
diff --git a/res/raw/folder_view.ktpl b/res/raw/folder_view.ktpl
new file mode 100644
index 0000000..2f360cc
--- /dev/null
+++ b/res/raw/folder_view.ktpl
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+<title>Index of <%= path %></title>
+<meta name="viewport" content="width=device-width; initial-scale=1.0; user-scalable=0" />
+
+<style type="text/css">
+
+* {
+ padding: 0;
+ margin: 0;
+}
+
+body {
+ padding: 0 8px 0 8px;
+}
+
+.table {
+ border-collapse: collapse;
+}
+
+tr.header {
+ font-weight: bold;
+}
+
+tr.alt {
+ background: #EEE;
+}
+
+td.details {
+ padding-left: 2em;
+ text-align: right;
+ white-space: nowrap;
+}
+
+.row {
+ padding: 8px 0 8px 8px;
+ display: block;
+ text-decoration: none;
+}
+
+h2 {
+ padding-top: 8px;
+ padding-bottom: 8px;
+}
+
+.icon {
+ padding-left: 1.5em;
+}
+
+.file {
+ background : url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABnRSTlMAAAAAAABupgeRAAABHUlEQVR42o2RMW7DIBiF3498iHRJD5JKHurL+CRVBp+i2T16tTynF2gO0KSb5ZrBBl4HHDBuK/WXACH4eO9/CAAAbdvijzLGNE1TVZXfZuHg6XCAQESAZXbOKaXO57eiKG6ft9PrKQIkCQqFoIiQFBGlFIB5nvM8t9aOX2Nd18oDzjnPgCDpn/BH4zh2XZdlWVmWiUK4IgCBoFMUz9eP6zRN75cLgEQhcmTQIbl72O0f9865qLAAsURAAgKBJKEtgLXWvyjLuFsThCSstb8rBCaAQhDYWgIZ7myM+TUBjDHrHlZcbMYYk34cN0YSLcgS+wL0fe9TXDMbY33fR2AYBvyQ8L0Gk8MwREBrTfKe4TpTzwhArXWi8HI84h/1DfwI5mhxJamFAAAAAElFTkSuQmCC ") left top no-repeat;
+}
+
+.dir {
+ background : url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAd5JREFUeNqMU79rFUEQ/vbuodFEEkzAImBpkUabFP4ldpaJhZXYm/RiZWsv/hkWFglBUyTIgyAIIfgIRjHv3r39MePM7N3LcbxAFvZ2b2bn22/mm3XMjF+HL3YW7q28YSIw8mBKoBihhhgCsoORot9d3/ywg3YowMXwNde/PzGnk2vn6PitrT+/PGeNaecg4+qNY3D43vy16A5wDDd4Aqg/ngmrjl/GoN0U5V1QquHQG3q+TPDVhVwyBffcmQGJmSVfyZk7R3SngI4JKfwDJ2+05zIg8gbiereTZRHhJ5KCMOwDFLjhoBTn2g0ghagfKeIYJDPFyibJVBtTREwq60SpYvh5++PpwatHsxSm9QRLSQpEVSd7/TYJUb49TX7gztpjjEffnoVw66+Ytovs14Yp7HaKmUXeX9rKUoMoLNW3srqI5fWn8JejrVkK0QcrkFLOgS39yoKUQe292WJ1guUHG8K2o8K00oO1BTvXoW4yasclU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Uisif7XlpGIPufXd/uvdvZm760M0no1FZcnrzUdjw7au3vu/BVgAFLXeuTxhTXVAAAAAElFTkSuQmCC ") left top no-repeat;
+}
+
+</style>
+
+</head>
+<body>
+ <h2>Index of <%= path %></h2>
+ <table class="table">
+ <tr class="header">
+ <td>Name</th>
+ <td class="details">Size</th>
+ <td class="details">Date Modified</th>
+ </tr>
+ <tr>
+ <td>
+ <a href="<%= parent_url %>" class="row">
+ <span class="icon up">[parent directory]</span>
+ </a>
+ </td>
+ <td class="details"></td>
+ <td class="details"></td>
+ </tr>
+ <%{ files %>
+ <tr class="<%= alt %>">
+ <td>
+ <a href="<%= url %>" class="row">
+ <span class="icon <%= type %>"><%= name %></span>
+ </a>
+ </td>
+ <td class="details"><%= size %></td>
+ <td class="details"><%= last_modified %></td>
+ </tr>
+ <%} files %>
+ </table>
+</body>
+</html>