<commit_before><?php
/**
 * @version     $Id: list.php 1485 2012-02-10 12:32:02Z johanjanssens $
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Activities
 * @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
 */

defined('KOOWA') or die('Restricted access') ?>

<?
foreach ($activities as $activity) {
	$list[substr($activity->created_on, 0, 10)][] = $activity;
}
?>

<div id="activities-list">
	<? foreach($list as $date => $activities) : ?>
		<h4><?= @helper('date.humanize', array('date' => $date)) ?></h4>
		<div class="activities">
			<? foreach($activities as $activity) : ?>
			<div class="activity">
				<i class="icon-<?= $activity->action ?>"></i>
				<div>
					<div class="ellipsis">
						<a href="<?= @route('view=article&id='.$activity->row) ?>">
						   <?= @escape($activity->title) ?>
						</a>
					</div>
					 <div class="ellipsis">
					 	<small class="datetime">
					 		<?= date("H:i", strtotime($activity->created_on)) ?> - <?= $activity->created_by_name ?>
					 	</small>
					 </div>
				</div>
			</div>
			<? endforeach ?>
		</div>
	<? endforeach ?>
	<a class="btn" href="<?= @route('option=com_activities&view=activities') ?>">
	   <?= @text('More activities') ?>
	</a>
</div><commit_msg>Fix "Undefined variable: list" notice.<commit_after><?php
/**
 * @version     $Id: list.php 1485 2012-02-10 12:32:02Z johanjanssens $
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Activities
 * @copyright   Copyright (C) 2011 - 2012 <NAME> and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

defined('KOOWA') or die('Restricted access') ?>

<? if(count($activities)) : ?>
    <?
    foreach ($activities as $activity) {
    	$list[substr($activity->created_on, 0, 10)][] = $activity;
    }
    ?>
    
    <div id="activities-list">
    	<? foreach($list as $date => $activities) : ?>
    		<h4><?= @helper('date.humanize', array('date' => $date)) ?></h4>
    		<div class="activities">
    			<? foreach($activities as $activity) : ?>
    			<div class="activity">
    				<i class="icon-<?= $activity->action ?>"></i>
    				<div>
    					<div class="ellipsis">
    						<a href="<?= @route('view=article&id='.$activity->row) ?>">
    						   <?= @escape($activity->title) ?>
    						</a>
    					</div>
    					 <div class="ellipsis">
    					 	<small class="datetime">
    					 		<?= date("H:i", strtotime($activity->created_on)) ?> - <?= $activity->created_by_name ?>
    					 	</small>
    					 </div>
    				</div>
    			</div>
    			<? endforeach ?>
    		</div>
    	<? endforeach ?>
    	<a class="btn" href="<?= @route('option=com_activities&view=activities') ?>">
    	   <?= @text('More activities') ?>
    	</a>
    </div>
<? endif ?>
{'fraction_non_alphanumeric': 0.21758167733243516, 'fraction_numerical': 0.02155607948804311, 'mean_word_length': 2.7979539641943734, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 96, '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': '2373244', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1069, 'n_words': 194}