Magellan Linux

Diff of /trunk/viewvc/magellan-template/dir_new.ezt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7 by niro, Tue Oct 30 22:18:26 2012 UTC revision 8 by niro, Fri May 13 08:48:34 2016 UTC
# Line 1  Line 1 
1  [include "include/dir_header.ezt"]  [include "include/dir_header.ezt"]
2    
3  <table cellspacing="1" cellpadding="2">  <table cellspacing="1" cellpadding="2" class="fixed">
4  <thead>  <thead>
5  <tr>  <tr>
6    <th class="vc_header[is sortby "file"]_sort[end]" colspan="2">    <th style="width: 200px" class="vc_header[is sortby "file"]_sort[end]">
7      <a href="[sortby_file_href]#dirlist">File      [if-any sortby_file_href]<a href="[sortby_file_href]#dirlist">File</a>[else]File[end]
8      [is sortby "file"]      [is sortby "file"]
9        <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"        <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
10          width="13" height="13"          width="13" height="13"
11          src="[docroot]/images/[is sortdir "up"]up[else]down[end].png" />          src="[docroot]/images/[is sortdir "up"]up[else]down[end].png" />
12      [end]      [end]
     </a>  
13    </th>    </th>
14      <th style="width: 96px" class="vc_header"></th>
15      [if-any sortby_rev_href]
16    <th class="vc_header[is sortby "rev"]_sort[end]">    <th class="vc_header[is sortby "rev"]_sort[end]">
17      <a href="[sortby_rev_href]#dirlist">Last Change      <a href="[sortby_rev_href]#dirlist">Last Change</a>
18      [is sortby "rev"]      [is sortby "rev"]
19        <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"        <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
20          width="13" height="13"          width="13" height="13"
21          src="[docroot]/images/[is sortdir "up"]up[else]down[end].png" />          src="[docroot]/images/[is sortdir "up"]up[else]down[end].png" />
22      [end]      [end]
23      </a>    [else]
24      <th class="vc_header[is sortby "date"]_sort[end]">
25        [if-any sortby_date_href]<a href="[sortby_date_href]#dirlist">Last Change</a>[else]Last Change[end]
26        [is sortby "date"]
27          <img class="vc_sortarrow" alt="[is sortdir "down"](date)[end]"
28            width="13" height="13"
29            src="[docroot]/images/[is sortdir "up"]up[else]down[end].png" />
30        [end]
31      [end]
32    </th>    </th>
33  </tr>  </tr>
34  </thead>  </thead>
# Line 27  Line 36 
36  <tbody>  <tbody>
37  [if-any up_href]  [if-any up_href]
38    <tr class="vc_row_odd">    <tr class="vc_row_odd">
39      <td>      <td style="width: 200px">
40        <a href="[up_href]">        <a href="[up_href]">
41        <img src="[docroot]/images/back_small.png" alt="" width="16" height="16"        <img src="[docroot]/images/back_small.png" alt="" class="vc_icon"
42        />&nbsp;Parent&nbsp;Directory</a>        />&nbsp;Parent&nbsp;Directory</a>
43      </td>      </td>
44      <td>&nbsp;</td>      <td style="width: 96px; font-size: 0;"></td>
45      <td>&nbsp;</td>      <td>&nbsp;</td>
46    </tr>    </tr>
47   [end]   [end]
48  [for entries]  [for entries]
49    <tr class="vc_row_[if-index entries even]even[else]odd[end]">    <tr class="vc_row_[if-index entries even]even[else]odd[end]">
50      <td>      <td style="width: 200px">
51      <a name="[entries.anchor]" href="[is entries.pathtype "dir"][entries.view_href][else][if-any entries.prefer_markup][entries.view_href][else][entries.download_href][end][end]" title="[is entries.pathtype "dir"]View Directory Contents[else][if-any entries.prefer_markup]View[else]Download[end] File Contents[end]">      <a name="[entries.anchor]" href="[is entries.pathtype "dir"][entries.view_href][else][if-any entries.prefer_markup][entries.view_href][else][entries.download_href][end][end]" title="[is entries.pathtype "dir"]View Directory Contents[else][if-any entries.prefer_markup]View[else]Download[end] File Contents[end]">
52         <img src="[docroot]/images/[is entries.pathtype "dir"]dir[else][is entries.state "dead"]broken[else]text[end][end].png" alt="" width="16" height="16" />         <img src="[docroot]/images/[is entries.pathtype "dir"]dir[else][is entries.state "dead"]broken[else]text[end][end].png" alt="" class="vc_icon" />
53         [entries.name][is entries.pathtype "dir"]/[end]</a>         [entries.name][is entries.pathtype "dir"]/[end]</a>
54           [if-any entries.lockinfo]<img src="[docroot]/images/lock.png" alt="locked" class="vc_icon" title="Locked by [entries.lockinfo]" />[end]
55         [is entries.state "dead"](dead)[end]         [is entries.state "dead"](dead)[end]
56      </td>      </td>
57    
58      [if-any entries.errors]      [if-any entries.errors]
59        <td colspan="2">[for entries.errors]<em>[entries.errors]</em>[end]</td>        <td colspan="2">[for entries.errors]<em>[entries.errors]</em>[end]</td>
60      [else]      [else]
61        <td style="width:1%; white-space: nowrap">        [define view_icon_link][end]
62          [define graph_icon_link][end]
63          [# Icon column. We might want to add more icons like a tarball        [define download_icon_link][end]
64           # icon for directories or a diff to previous icon for files. ]        [define annotate_icon_link][end]
65          [define log_icon_link][if-any entries.log_href]<a
66          [if-any entries.log_href]          href="[entries.log_href]"
67          <a href="[entries.log_href]"><img          title="View Log"><img
68          src="[docroot]/images/log.png"            src="[docroot]/images/log.png"
69          alt="View Log" width="16" height="16" /></a>            alt="View Log"
70              class="vc_icon" /></a>[end][end]
71    
72          [is entries.pathtype "dir"]
73            [is roottype "cvs"]
74              [# no point in showing icon when there's only one to choose from]
75            [else]
76              [define view_icon_link]<a
77                href="[entries.view_href]"
78                title="View Directory Listing"><img
79                  src="[docroot]/images/list.png"
80                  alt="View Directory Listing"
81                  class="vc_icon" /></a>[end]
82          [end]          [end]
83          [end]
84    
85          [is entries.pathtype "dir"]        [is entries.pathtype "file"]
86            [is roottype "cvs"]          [define view_icon_link][if-any entries.view_href]<a
87              [# no point in showing icon when there's only one to choose from]            href="[entries.view_href]"
88            [else]            title="View File"><img
89              <a href="[entries.view_href]"><img              src="[docroot]/images/view.png"
90              src="[docroot]/images/list.png"              alt="View File"
91              alt="View Directory Listing" width="16" height="16" /></a>              class="vc_icon" /></a>[end][end]
           [end]  
         [end]  
92    
93          [is entries.pathtype "file"]          [define graph_icon_link][if-any entries.graph_href]<a
94            [if-any entries.graph_href]            href="[entries.graph_href]"
           <a href="[entries.graph_href]"  
95            title="View Revision Graph"><img            title="View Revision Graph"><img
96            src="[docroot]/images/cvsgraph_16x16.png"              src="[docroot]/images/cvsgraph_16x16.png"
97            alt="View Revision Graph" width="16" height="16" />              alt="View Revision Graph"
98            </a>              class="vc_icon" /></a>[end][end]
99            [end]  
100            [define download_icon_link][if-any entries.download_href]<a
101            [if-any entries.view_href]            href="[entries.download_href]"
102            <a href="[entries.view_href]"><img            title="Download File"><img
103            src="[docroot]/images/view.png"              src="[docroot]/images/download.png"
104            alt="View File" width="16" height="16" /></a>              alt="Download File"
105            [end]              class="vc_icon" /></a>[end][end]
106    
107            [if-any entries.download_href]          [define annotate_icon_link][if-any entries.annotate_href]<a
108            <a href="[entries.download_href]"><img            href="[entries.annotate_href]"
109            src="[docroot]/images/download.png"            title="Annotate File"><img
110            alt="Download File" width="16" height="16" /></a>              src="[docroot]/images/annotate.png"
111            [end]              alt="Annotate File"
112                class="vc_icon" /></a>[end][end]
113            [if-any entries.annotate_href]        [end]
114            <a href="[entries.annotate_href]"><img  
115            src="[docroot]/images/annotate.png"        <td style="width: 96px"
116            alt="Annotate File" width="16" height="16" /></a>          >[# Icon column. We might want to add more icons like a tarball
117            [end]            # icon for directories or a diff to previous icon for files.
118          [end]            # Make sure this sucker has no whitespace in it, or the fixed
119        </td>            # widthness of will suffer for large font sizes
120             ][log_icon_link][view_icon_link][graph_icon_link][download_icon_link][annotate_icon_link]</td>
121    
122        <td>        <td>
123          [if-any entries.rev]          [if-any entries.rev]
124            <strong>[if-any entries.revision_href]<a href="[entries.revision_href]">[entries.rev]</a>[else][entries.rev][end]</strong>            <strong>[if-any entries.revision_href]<a href="[entries.revision_href]" title="Revision [entries.rev]">[entries.rev]</a>[else][entries.rev][end]</strong>
125            ([entries.ago] ago)            ([entries.ago] ago)
126            by <em>[entries.author]</em>:            by <em>[entries.author]</em>:
127            [entries.log]            [entries.log]

Legend:
Removed from v.7  
changed lines
  Added in v.8