<%
  import java.util.Locale;
  import java.text.DateFormat;
  
  def context = _ctx.getRequestContext();
  Locale currentLocale = context.getLocale();
  DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, currentLocale);
  def title = currentWikiPage.getTitle();
  def author = currentWikiPage.getOwner();
  author = (author != null) ? author : _ctx.appRes("UIWikiPortlet.label.Anonymous");
  def editor = currentWikiPage.getAuthor();
  editor = (editor != null) ? editor : _ctx.appRes("UIWikiPortlet.label.Anonymous");
  def updateDate = df.format(currentWikiPage.getUpdatedDate());
  def createdDate = df.format(currentWikiPage.getCreatedDate());
  def wordlink = "";
  def pdflink = "";
  def copylink = "";
  def movelink = "";
%>
<div class="UIPageInfoItem UIPageInfoSummary">
  <div class="UIPageInfoItemTitle"><%= _ctx.appRes("UIWikiPageInfo.label.summary")%></div>
  <div class="UIPageInfoItemBody">
    <table class="tableview" width="100%" cellspacing="0" cellpadding="0">
      <tbody>
        <tr class="OddClass">
          <td class="label" width="30%"><%= _ctx.appRes("UIWikiPageInfo.label.title")%></td>
          <td>$title</td>
		  <td class="Time"><span></span></td>
        </tr>
        
        <tr class="EvenClass">
          <td class="label" width="30%"><%= _ctx.appRes("UIWikiPageInfo.label.author")%></td>
          <td class="Name">$author</td>
          <td class="Time">$createdDate</td>
        </tr>
        
        <tr class="OddClass">
          <td class="label" width="30%"><%= _ctx.appRes("UIWikiPageInfo.label.last-changed-by")%></td>
          <td class="Name">$editor</td>
          <td class="Time">$updateDate</td>
        </tr>
        
        <!-- tr class="EvenClass">
          <td class="label" width="30%"><%= _ctx.appRes("UIWikiPageInfo.label.link")%></td>
          <td colspan="2"><a href="" >http:</a></td>
        </tr -->
        
        <!-- tr class="OddClass">
          <td class="label" width="30%"><%= _ctx.appRes("UIWikiPageInfo.label.export-as")%></td>
          <td colspan="2"><a href="$wordlink"><%= _ctx.appRes("UIWikiPageInfo.label.word")%></a>&nbsp;|&nbsp;<a href="$pdflink"><%= _ctx.appRes("UIWikiPageInfo.label.pdf")%></a></td>
        </tr -->
        
        <!-- tr class="EvenClass">
        <td class="label" width="30%"><%= _ctx.appRes("UIWikiPageInfo.label.operations")%></td>
        <td colspan="2"><a href="$copylink" ><%= _ctx.appRes("UIWikiPageInfo.label.copy")%></a>&nbsp;|&nbsp;<a href="$movelink" ><%= _ctx.appRes("UIWikiPageInfo.label.move")%></a></td>
      </tr -->
        
      </tbody>
    </table>
  </div>

</div>