Move to sane directory structure. Don't make 'cms' the top level of the silverstripe...
[silverstripe-elijah.git] / templates / CMSMain_versions.ss
blobb5d4dc1150a06ae34843a4836f8a4f3ecf2ea1b6
1 <table id="Versions">
2         <thead>
3         <tr>
4                 <td>#</td>
5                 <td>When</td>
6                 <td>Author</td>
7                 <td>Publisher</td>
8         </tr>
9         </thead>
10         <tbody>
11         <% control Versions %>
12         <tr id="page-$RecordID-version-$Version" class="$EvenOdd $PublishedClass">
13                 <td>$Version</td>
14                 <td class="$LastEdited" title="$LastEdited.Ago">$LastEdited.Nice</td>
15                 <td>$Author.FirstName $Author.Surname.Initial</td>
16                 <td>
17                 <% if Published %>
18                         <% if Publisher %>
19                                 $Publisher.FirstName $Publisher.Surname.Initial
20                         <% else %>      
21                                 Unknown
22                         <% end_if %>
23                 <% else %>
24                         Not published
25                 <% end_if %>
26                 </td>                   
27         </tr>
28         <% end_control %>
29         </tbody>
30 </table>