PageRenderTime 35ms CodeModel.GetById 26ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/demo/exe/templates/system/directory.tmpl

http://github.com/ThomasLocke/yolk
Go Template | 169 lines | 155 code | 14 blank | 0 comment | 0 complexity | ef6aed9bf5daaca42f8d99b39219cdfa MD5 | raw file
  1@@-----------------------------------------------------------------------------
  2@@--                                                                         --
  3@@--                               Yolk                                      --
  4@@--                                                                         --
  5@@--                Copyright (C) 2000-2012, Thomas Løcke                    --
  6@@--                                                                         --
  7@@-- This is free software;  you can redistribute it and/or modify it        --
  8@@-- under terms of the  GNU General Public License  as published by the     --
  9@@-- Free Software  Foundation;  either version 3,  or (at your  option) any --
 10@@-- later version. This library is distributed in the hope that it will be  --
 11@@-- useful, but WITHOUT ANY WARRANTY;  without even the implied warranty of --
 12@@-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                    --
 13@@-- You should have received a copy of the GNU General Public License and   --
 14@@-- a copy of the GCC Runtime Library Exception along with this program;    --
 15@@-- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see   --
 16@@-- <http://www.gnu.org/licenses/>.                                         --
 17@@--                                                                         --
 18@@-----------------------------------------------------------------------------
 19<!DOCTYPE html>
 20<html>
 21    <head>
 22        <meta charset="utf-8"/>
 23	<link rel="icon" href="/images/favicon.ico" type="image/x-icon"/>
 24        <title>
 25            Index of @_URI_@
 26        </title>
 27        <style type="text/css">
 28            html, body, a, img, table, tr, th, td {
 29                margin: 0px;
 30                padding: 0px;
 31            }
 32
 33            body {
 34                height: 100%;
 35                width: 100%;
 36                margin: 20px 0px;
 37                font-family: "DejaVu Sans", Arial, sans-serif;
 38                font-size: 14px;
 39                background-color: #fffffa;
 40            }
 41
 42            a {
 43                color: #000080;
 44                background-color: inherit;
 45            }
 46
 47            a:hover {
 48                color: #800000;
 49                background-color: inherit;
 50            }
 51
 52            table {
 53                width: 90%;
 54                margin: 0px auto;
 55                border: solid 1px #ddd;
 56                border-collapse: collapse;
 57            }
 58
 59            caption {
 60                padding: 10px;
 61                margin-bottom: 10px;
 62            }
 63
 64            thead {
 65                border-bottom: solid 1px #ddd;
 66            }
 67
 68            tfoot {
 69                border-top: solid 1px #ddd;
 70            }
 71
 72            thead th,
 73            tfoot td {
 74                padding: 10px;
 75            }
 76
 77            tbody tr:nth-child(even) {
 78                background-color: #f4f4f4;
 79            }
 80
 81            tbody td {
 82                padding: 3px 10px;
 83            }
 84
 85            caption {
 86                font-size: 18px;
 87                font-weight: bold;
 88            }
 89
 90            .center {
 91                text-align: center;
 92            }
 93
 94            .footer {
 95                color: #808080;
 96            }
 97
 98            .right {
 99                text-align: right;
100            }
101        </style>
102    </head>
103<body>
104    <table>
105        <caption>
106            Index of @_URI_@
107        </caption>
108        <thead>
109            <tr>
110                <th>
111                    <a href="@_WEB_ESCAPE:EXT_ORDR_@">Type</a>
112                </th>
113                <th>
114                    <a href="@_WEB_ESCAPE:DIR_NAME_ORDR_@">Name</a>
115                </th>
116                <th>
117                    <a href="@_WEB_ESCAPE:DIR_TIME_ORDR_@">Modification time</a>
118                </th>
119                <th>
120                    <a href="@_WEB_ESCAPE:SIZE_ORDR_@">Size</a>
121                </th>
122            </tr>
123        </thead>
124        <tfoot>
125            <tr>
126                <td colspan="4" class="footer">
127                    Powered by <a href="http://12boo.net">Yolk</a>
128                    @@IF@@ @_EXIST:YOLK_VERSION_@
129                        version @_YOLK_VERSION_@
130                    @@END_IF@@
131                    - We stand on the shoulders of the mighty <a href="http://libre.adacore.com/libre/tools/aws">Ada Web Server (AWS)</a>.
132                </td>
133            </tr>
134        </tfoot>
135        <tbody>
136            @@TABLE@@
137                @@IF@@ not @_MATCH(^\./):NAME_V_@
138                    <tr>
139                        <td>
140                            @@IF@@ @_IS_DIR_V_@
141                                @@IF@@ @_MATCH(^\.\./):NAME_V_@
142                                    <a href="@_NAME_V_@">Go up</a>
143                                @@ELSE@@
144                                    <a href="@_NAME_V_@">Dir</a>
145                                @@END_IF@@
146                            @@ELSE@@
147                                <a href="@_NAME_V_@">File</a>
148                            @@END_IF@@
149                        </td>
150                        <td>
151                            @@IF@@ @_IS_DIR_V_@
152                                <a href="@_NAME_V_@">@_NAME_V_@</a>
153                            @@ELSE@@
154                                <a href="@_URI_@@_NAME_V_@">@_NAME_V_@</a>
155                            @@END_IF@@
156                        </td>
157                        <td class="center">
158                            @_TIME_V_@
159                        </td>
160                        <td class="right">
161                            @_FORMAT_NUMBER(_):SIZE_V_@
162                        </td>
163                    </tr>
164                @@END_IF@@
165            @@END_TABLE@@
166        </tbody>
167    </table>
168</body>
169</html>