<!DOCTYPE html >
<%~set search_widget = 1%>
<html lang="en">
<head>
  <title><%cat_full_name%>: Edit Log</title>
<%include include_common_head.html%>
</head>

<body class="page-<%page_id%>">
  <div class="container-b">
    <%include include_header.html%>

    <div class="main">
      <div class="contentwrapper clearfix">
        <div class="sidebar">
            <%include include_sidebar.html%>
        </div>

        <%~set content_header_title = 'Edit Log'%>
        <%~init array breadcrumbs%><%init hash breadcrumbs.0%><%init hash breadcrumbs.1%>
        <%~set breadcrumbs.0.name = $forum_name%>
        <%~set breadcrumbs.0.url  = GForum::SEO::url(params => "forum=$forum_id")%>
        <%~set breadcrumbs.1.name = $content_header_title%>

        <%include include_breadcrumb.html%>

        <div class="content"><%-- start content--%>
          <%include include_content_header.html%>

          <div class="row">
            <%set hide_post_menu = 1%>
            <%include include_post_display.html%>
          </div>

          <h3><%if editlog.length%>Edit Log:<%else%>This post has not been edited<%endif%></h3>

          <%~if editlog.length%>
          <ul>
            <%~loop editlog%>
            <li>
            <%~set escaped_username = escape_url unescape_html $user_username%>
            Post edited by <%if user_id%><a href="<%GForum::SEO::url(params => "username=$escaped_username")%>"><%user_username%></a><%else%><%user_username%><%endif%>
            (<%user_title%>) on <%edit_date%><%if edit_reason%>: <%edit_reason%><%endif%>
            </li>
            <%~endloop%>
          </ul>
          <%~endif%>

        </div><%-- end content --%>
      </div>
    </div>
    <%include include_footer.html%>
  </div>
</body>
<%~include include_global_js.html%>
</html>
