<commit_before><?php include('header.php');?>
<div id="content-area">
<div class="dashboard-block c3" id="welcome">
	<h1>Habari Content</h1>
	<p>Post, pages, images and podcasts.&nbsp; Here you will find all the content you have created, ready to be tweaked, edited or removed.</p>
	<?php 
	if ( isset( $result ) ) {
		switch( $result ) {
			case 'success':
				_e('<p class="update">Your options have been updated.</p>');
				break;
		}
	}
	?>
	</div>
	<div class="dashboard-block c3" id="content-published">
		<h4>Published Entries</h4>
			<table id="post-data-published" width="100%" cellspacing="0">
				<thead>
					<tr>
						<th align="left">Title</th>
						<th align="left">Author</th>
						<th align="left">Published</th>
						<th align="center">Action</th>
					</tr>
				</thead>
				<?php 	foreach ( Posts::get( array( 'limit' => '10' ) ) as $post ) { ?>
				<tr>
					<td><?php echo '<a href="' . $post->permalink . '">' . $post->title ?></a></td>
					<td><?php echo $post->author->username ?></td>
					<td><?php echo $post->pubdate ?></td>
					<td align="center">
						<a href="<?php echo $post->permalink ?>" title="View this Entry">
							<img src="<?php Options::out('base_url'); ?>system/admin/images/view.png" alt="View this entry" />
						</a>
						<a href="<?php URL::out('admin', 'page=publish&slug=' . $post->slug); ?>" title="Edit this entry">
							<img src="<?php Options::out('base_url'); ?>system/admin/images/edit.png" alt="Edit this entry" />
						</a>
						<img src="<?php Options::out('base_url'); ?>system/admin/images/delete.png" alt="Delete this comment" />
					</td>
				</tr>
				<?php } ?>
			</table>
	</div>
	<div class="dashboard-block c3" id="content-draft">
		<h4>Entries Currently in Draft</h4>
			<table id="post-data-draft" width="100%" cellspacing="0">
				<thead><commit_msg>Fixing incorrect display of draft posts as published posts at  Manage->Content.  Resolves issue #150.<commit_after><?php include('header.php');?>
<div id="content-area">
<div class="dashboard-block c3" id="welcome">
	<h1>Habari Content</h1>
	<p>Post, pages, images and podcasts.&nbsp; Here you will find all the content you have created, ready to be tweaked, edited or removed.</p>
	<?php 
	if ( isset( $result ) ) {
		switch( $result ) {
			case 'success':
				_e('<p class="update">Your options have been updated.</p>');
				break;
		}
	}
	?>
	</div>
	<div class="dashboard-block c3" id="content-published">
		<h4>Published Entries</h4>
			<table id="post-data-published" width="100%" cellspacing="0">
				<thead>
					<tr>
						<th align="left">Title</th>
						<th align="left">Author</th>
						<th align="left">Published</th>
						<th align="center">Action</th>
					</tr>
				</thead>
				<?php 	foreach ( Posts::get( array( 'limit' => '10', 'status'  => Post::STATUS_PUBLISHED ) ) as $post ) { ?>
				<tr>
					<td><?php echo '<a href="' . $post->permalink . '">' . $post->title ?></a></td>
					<td><?php echo $post->author->username ?></td>
					<td><?php echo $post->pubdate ?></td>
					<td align="center">
						<a href="<?php echo $post->permalink ?>" title="View this Entry">
							<img src="<?php Options::out('base_url'); ?>system/admin/images/view.png" alt="View this entry" />
						</a>
						<a href="<?php URL::out('admin', 'page=publish&slug=' . $post->slug); ?>" title="Edit this entry">
							<img src="<?php Options::out('base_url'); ?>system/admin/images/edit.png" alt="Edit this entry" />
						</a>
						<img src="<?php Options::out('base_url'); ?>system/admin/images/delete.png" alt="Delete this comment" />
					</td>
				</tr>
				<?php } ?>
			</table>
	</div>
	<div class="dashboard-block c3" id="content-draft">
		<h4>Entries Currently in Draft</h4>
			<table id="post-data-draft" width="100%" cellspacing="0">
				<thead>
{'fraction_non_alphanumeric': 0.21742563832587522, 'fraction_numerical': 0.010792313766780732, 'mean_word_length': 3.48642266824085, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '339670', 'n_tokens_mistral': 1592, 'n_tokens_neox': 1336, 'n_words': 318}