source: ccsweb/trunk/smarty/templates/configListing.tpl @ 944

Last change on this file since 944 was 944, checked in by mglb1, 7 years ago

Debugging not needed

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1{* Copyright (C) 2006  The University of Waikato
2 *
3 * This file is part of ccsweb - CRCnet Configuration System Web Interface
4 *
5 * Author:       Matt Brown <matt@crc.net.nz>
6 * Version:      $Id$
7 *
8 * ccsweb is free software; you can redistribute it and/or modify it under the
9 * terms of the GNU General Public License version 2 as published by the Free
10 * Software Foundation.
11 *
12 * ccsweb is distributed in the hope that it will be useful, but WITHOUT ANY
13 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15 * details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * ccsweb; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 *}
21<div id="configBrowser">
22<div id="ctxtnav" class="nav">
23 <ul>
24  <li class="last"><a href="/configs/log">Revision Log</a></li>
25 </ul>
26</div>
27
28<h1><a class="first" title="Go to root directory" href="/configs/">root</a>
29{assign var="prev" value=""}
30{assign var="parent" value=""}
31{foreach from=$path item=part}
32{if $part!=""}
33<span class="sep">/</span>
34<a title="View {$part}" href="/configs{$prev}/{$part}">{$part}</a>
35{assign var="parent" value=$prev}
36{assign var="prev" value="$prev/$part"}
37{/if}
38{/foreach}
39{assign var="pageurl" value="$prev"}
40</h1>
41
42<div id="jumprev">
43    <form action="" method="get">
44    <div>
45        <label for="rev">View revision:</label>
46        <input type="text" id="rev" name="rev" value="" size="4" />
47    </div>
48    </form>
49</div>
50
51<table class="listing" id="dirlist">
52<thead>
53<tr>
54    <th class="name asc">
55        <a title="Sort by name (descending)"
56            href="/configs{$pageurl}?order=name&amp;desc=1">Name</a>
57    </th>
58    <th class="size">
59        <a title="Sort by size"
60            href="/configs{$pageurl}?order=size">Size</a>
61    </th>
62    <th class="rev">Rev</th>
63    <th class="date">
64        <a title="Sort by date"
65            href="/configs{$pageurl}?order=date">Age</a>
66    </th>
67    <th class="change">Last Change</th>
68</tr>
69</thead>
70<tbody>
71{if $pageurl!=""}
72<tr class="even">
73    <td class="name" colspan="5">
74        <a class="parent" title="Parent Directory"
75            href="/configs{$parent}">../</a>
76    </td>
77</tr>
78{/if}
79{foreach from=$entries item=entry}
80<tr class="{cycle values="odd,even"}">
81    <td class="name">
82        <a class="{$entry.kind}" title="Browse Directory"
83            href="/configs{$pageurl}/{$entry.name}">{$entry.name}</a>
84    </td>
85    <td class="size">
86        {assign var="kbs" value=$entry.size/1024}
87        {if $entry.size>0}{$kbs|string_format:"%.1f"}&nbsp;kB{/if}
88    </td>
89    <td class="rev">
90        <a title="View Revision Log"
91            href="/configs/log{$pageurl}">{$entry.created_rev.number}</a>
92    </td>
93    <td class="age">
94        <span title="{$entry.age}">{$entry.age_rounded}</span>
95    </td>
96    <td class="change">
97        <span class="author">{$entry.last_author}:</span>
98        <span class="change">{$entry.created_rev.log}</span>
99    </td>
100</tr>
101{/foreach}
102</tbody>
103</table>
104
105</div>
Note: See TracBrowser for help on using the repository browser.