<tr class="<?=(empty($ready_for_review) ? "" : "readyForReview")?>">
    <td>
        <a
            href="#"
            title="See Version Information"
            class="displayVersionInformationBtn"
            data-version="<?=$page->id?>"
            data-comment="<?=clean_page($page->comment)?>"
            data-creation="<strong><?=clean_page($page->title)?></strong> made current
            <?php
            if (!empty($page->author_name)) {
                ?> by <strong><?=clean_page($page->author_name)?></strong><?php
            }
            if (!empty($updated_datetime)) {
                echo ContentManagerPanel::formatUpdatedDatetime($updated_datetime);
            }
            ?>"
            data-history="<?=clean_page($page->versions)?>"
        >
            <i class="fa fa-info-circle"></i>
        </a>
        <?=$version?>
    </td>
    <?php
    if (!empty($include_comment)) {
        ?><td><?=clean_page($page->comment)?></td><?php
    }
    ?>
    <td>
        <strong><?=clean_page($page_title)?></strong> <?=clean_page($text)?>
        <?php
        if (!empty($page->author_name)) {
            ?> by <strong><?=clean_page($page->author_name)?></strong><?php
        }
        if (!empty($updated_datetime)) {
            echo ContentManagerPanel::formatUpdatedDatetime($updated_datetime);
        }
        ?>
    </td>
    <?php
    if (!empty($include_mark_reviewed_action)) {
        ?><td class="justCentered">
            <?php
            if ($page->review_status == 1) {
                ?><a
                    href="#"
                    data-page-id="<?=$page->id?>"
                    class="markReviewed"
                >
                    <i class="fa fa-check-circle-o"></i>
                </a>
                <?php
            }
            ?>
        </td>
        <?php
    }
    ?>
    <td class="justCentered">
        <a  href="#"
            class="preview"
            data-page-id="<?=$page->id?>"
            data-page-url="<?=$page->url?>"
            title="Preview version"
        >
            <i class="fa fa-eye"></i>
        </a>
    </td>
    <td class="justCentered">
        <a
            href="#"
            class="viewVersion"
            data-page-id="<?=$page_id?>"
            data-history-id="<?=$page_version_id?>"
            title="View version"
        >
            <i class="fa fa-external-link"></i>
        </a>
    </td>
    <?php
    if (!empty($include_actions)) {
        if ($_SESSION['content_manager']['is_mtcadmin'] == true || $_SESSION['content_manager']['is_publisher'] == true) {
            ?><td class="justCentered">
                <?php
                if (empty($current_version_was_created_from_version) || $page->id != $current_version_was_created_from_version) {
                    ?>
                    <a
                        href="?delete=true&page=<?=clean_page($page->draft_for_page_id)?>&history=<?=clean_page($page->id)?>"
                        class="error delete"
                        data-page-id="<?=clean_page($page->id)?>"
                        data-page-title="<?=clean_page($version)?>"
                        title="Delete '<?=clean_page($version)?>'?"
                    >
                        <i class="fa fa-trash-o"></i>
                    </a>
                    <?php
                }
                ?>
            </td>
            <td class="justCentered">
                <a
                    href="#"
                    class="lockVersion"
                    data-page-id="<?=$page->id?>"
                    data-page-title="<?=$version?>"
                    title="Lock '<?=$version?>' from being automatically deleted?"
                >
                    <?php
                    if ($page->history_lock == 1) {
                        ?><i class="fa fa-lock"></i><?php
                    } else {
                        ?><i class="fa fa-unlock-alt"></i><?php
                    }
                    ?>
                </a>
            </td>
            <?php
        }
    }
    ?>
</tr>
