<commit_before><?php
/**
 * @package     Nooku_Server
 * @subpackage  Articles
 * @copyright   Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
?>

<!--
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />
-->
<?= @helper('behavior.sortable') ?>

<?= @template('com://admin/default.view.grid.toolbar'); ?>

<? if($articles->isTranslatable()) : ?>
    <ktml:module position="toolbar" content="append">
        <?= @helper('com://admin/languages.template.helper.listbox.languages') ?>
    </ktml:module>
<? endif ?>

<ktml:module position="sidebar">
    <?= @template('default_sidebar'); ?>
</ktml:module>

<ktml:module position="inspector">
    <?= @template('com://admin/activities.view.activities.simple', array('package' => 'articles', 'name' => 'article')); ?>
</ktml:module>

<form action="" method="get" class="-koowa-grid">
    <?= @template('default_scopebar'); ?>
    <table>
        <thead>
            <tr>
                <? if($state->category || $state->category === '0') : ?><th class="handle"></th><? endif ?>
                <th width="10">
                	 <?= @helper('grid.checkall') ?>
                </th>
                <th>
                    <?= @helper('grid.sort', array('column' => 'title')) ?>
                </th>
                <th width="20">
                    <?= @helper('grid.sort', array('column' => 'published', 'title' => 'Published')) ?>
                </th>
                <? if($state->category || $state->category === '0') : ?>
                <th width="7%">
                    <?= @helper('grid.sort', array('title' => 'Order', 'column' => 'ordering')) ?>
                </th>
                <? endif; ?>
                <th width="20%">
                    <?= @helper('grid.sort', array('title' => 'Created', 'column' => 'created_on')) ?>
                </th>
                <? if($articles->isTranslatable()) : ?>
                    <th width="70">
                        <?= @text('Translation') ?>
                    </th>
                <? endif ?>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td colspan="7">
                    <?= @helper('paginator.pagination', array('total' => $total)) ?>
                </td>
            </tr>
        </tfoot>
        <tbody<? if($state->category || $state->category === '0') : ?> class="sortable"<? endif ?>>
        <? foreach($articles as $article) : ?>
            <tr data-readonly="<?= $article->getStatus() == 'deleted' ? '1' : '0' ?>">
                <? if($state->category) : ?><td class="handle"></td><? endif ?>
                <td align="center">
                    <?= @helper('grid.checkbox' , array('row' => $article)) ?>
                </td>
                <td>
                	<?if($article->getStatus() != 'deleted') : ?>
                    	<a href="<?= @route('view=article&id='.$article->id) ?>">
                            <?= @escape($article->title) ?>
                    	</a>
                     <? else : ?>
                     	<?= @escape($article->title); ?>
                     <? endif; ?>
                     <? if($article->access) : ?>
                         <span class="label label-important"><?= @text('Registered') ?></span>
                     <? endif; ?>
                </td>
                <td align="center">
                    <?= @helper('grid.enable', array('row' => $article, 'field' => 'published')) ?>
                </td>
                <? if($state->category || $state->category === '0') : ?>
                <td align="center">
                    <?= @helper('grid.order', array('row' => $article, 'total' => $total)) ?>
                </td>
                <? endif; ?>
                <td>
                    <?= @helper('date.humanize', array('date' => $article->created_on)) ?> by <a href="<?= @route('option=com_users&view=user&id='.$article->created_by) ?>">
                        <?= $article->created_by_name ?>
                    </a>
                </td>
                <? if($article->isTranslatable()) : ?>
                    <td>
                        <?= @helper('com://admin/languages.template.helper.grid.status', array(<commit_msg>re #286 missed a spot<commit_after><?php
/**
 * @package     Nooku_Server
 * @subpackage  Articles
 * @copyright   Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
?>

<!--
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />
-->
<?= @helper('behavior.sortable') ?>

<?= @template('com://admin/default.view.grid.toolbar'); ?>

<? if($articles->isTranslatable()) : ?>
    <ktml:module position="toolbar" content="append">
        <?= @helper('com://admin/languages.template.helper.listbox.languages') ?>
    </ktml:module>
<? endif ?>

<ktml:module position="sidebar">
    <?= @template('default_sidebar'); ?>
</ktml:module>

<ktml:module position="inspector">
    <?= @template('com://admin/activities.view.activities.simple', array('package' => 'articles', 'name' => 'article')); ?>
</ktml:module>

<form action="" method="get" class="-koowa-grid">
    <?= @template('default_scopebar'); ?>
    <table>
        <thead>
            <tr>
                <? if($state->category || $state->category === '0') : ?><th class="handle"></th><? endif ?>
                <th width="10">
                	 <?= @helper('grid.checkall') ?>
                </th>
                <th>
                    <?= @helper('grid.sort', array('column' => 'title')) ?>
                </th>
                <th width="20">
                    <?= @helper('grid.sort', array('column' => 'published', 'title' => 'Published')) ?>
                </th>
                <? if($state->category || $state->category === '0') : ?>
                <th width="7%">
                    <?= @helper('grid.sort', array('title' => 'Order', 'column' => 'ordering')) ?>
                </th>
                <? endif; ?>
                <th width="20%">
                    <?= @helper('grid.sort', array('title' => 'Created', 'column' => 'created_on')) ?>
                </th>
                <? if($articles->isTranslatable()) : ?>
                    <th width="70">
                        <?= @text('Translation') ?>
                    </th>
                <? endif ?>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td colspan="7">
                    <?= @helper('paginator.pagination', array('total' => $total)) ?>
                </td>
            </tr>
        </tfoot>
        <tbody<? if($state->category || $state->category === '0') : ?> class="sortable"<? endif ?>>
        <? foreach($articles as $article) : ?>
            <tr data-readonly="<?= $article->getStatus() == 'deleted' ? '1' : '0' ?>">
                <? if($state->category || $state->category === '0') : ?><td class="handle"></td><? endif ?>
                <td align="center">
                    <?= @helper('grid.checkbox' , array('row' => $article)) ?>
                </td>
                <td>
                	<?if($article->getStatus() != 'deleted') : ?>
                    	<a href="<?= @route('view=article&id='.$article->id) ?>">
                            <?= @escape($article->title) ?>
                    	</a>
                     <? else : ?>
                     	<?= @escape($article->title); ?>
                     <? endif; ?>
                     <? if($article->access) : ?>
                         <span class="label label-important"><?= @text('Registered') ?></span>
                     <? endif; ?>
                </td>
                <td align="center">
                    <?= @helper('grid.enable', array('row' => $article, 'field' => 'published')) ?>
                </td>
                <? if($state->category || $state->category === '0') : ?>
                <td align="center">
                    <?= @helper('grid.order', array('row' => $article, 'total' => $total)) ?>
                </td>
                <? endif; ?>
                <td>
                    <?= @helper('date.humanize', array('date' => $article->created_on)) ?> by <a href="<?= @route('option=com_users&view=user&id='.$article->created_by) ?>">
                        <?= $article->created_by_name ?>
                    </a>
                </td>
                <? if($article->isTranslatable()) : ?>
                    <td>
                        <?= @helper('com://admin/languages.template.helper.grid.status', array(
{'fraction_non_alphanumeric': 0.21723744292237443, 'fraction_numerical': 0.0061643835616438354, 'mean_word_length': 1.593546477205447, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 284, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2277454', 'n_tokens_mistral': 2614, 'n_tokens_neox': 2452, 'n_words': 393}