<commit_before><?php if (!$writeable): ?>
	<div class="alert alert-error">
		<p><?php echo lang('mb_not_writeable_note'); ?></p>
	</div>
<?php endif;?>

<br/>

<div class="admin-box">
	<h3><?php echo lang('mb_exist_modules') ?></h3>

<?php if (isset($modules) && is_array($modules) && count($modules)) : ?>

	<table class="table table-striped">
		<thead>
			<tr>
				<th><?php echo lang('mb_table_name'); ?></th>
				<th><?php echo lang('mb_table_version'); ?></th>
				<th><?php echo lang('mb_table_description'); ?></th>
				<th><?php echo lang('mb_table_author'); ?></th>
				<th><?php echo lang('mb_actions'); ?></th>
			</tr>
		</thead>
		<tbody>
		<?php foreach ($modules as $module => $config) : ?>
			<tr>
				<td><?php echo $config['name'] ?></td>
				<td><?php echo isset($config['version']) ? $config['version'] : '---'; ?></td>
				<td><?php echo isset($config['description']) ? $config['description'] : '---'; ?></td>
				<td><?php echo isset($config['author']) ? $config['author'] : '---'; ?></td>
				<td>
					<a href="<?php echo site_url(SITE_AREA .'/developer/modulebuilder/delete/'. $config['name']) ?>" onclick="return confirm('Really delete this module and all of its files?');">
						<?php echo lang('mb_delete') ?>
					</a>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>
<?php else: ?>
	<div class="alert alert-warning">
		<p><?php e(lang('mb_no_modules')); ?> <a href="<?php echo site_url(SITE_AREA .'/developer/modulebuilder/create') ?>"><?php e(lang('mb_create_link')); ?></a></p>
	</div>

<?php endif; ?>

</div><commit_msg>Fix the delete link for modules with dashes or spaces<commit_after><?php if (!$writeable): ?>
	<div class="alert alert-error">
		<p><?php echo lang('mb_not_writeable_note'); ?></p>
	</div>
<?php endif;?>

<br/>

<div class="admin-box">
	<h3><?php echo lang('mb_exist_modules') ?></h3>

<?php if (isset($modules) && is_array($modules) && count($modules)) : ?>

	<table class="table table-striped">
		<thead>
			<tr>
				<th><?php echo lang('mb_table_name'); ?></th>
				<th><?php echo lang('mb_table_version'); ?></th>
				<th><?php echo lang('mb_table_description'); ?></th>
				<th><?php echo lang('mb_table_author'); ?></th>
				<th><?php echo lang('mb_actions'); ?></th>
			</tr>
		</thead>
		<tbody>
		<?php foreach ($modules as $module => $config) : ?>
			<tr>
				<td><?php echo $config['name'] ?></td>
				<td><?php echo isset($config['version']) ? $config['version'] : '---'; ?></td>
				<td><?php echo isset($config['description']) ? $config['description'] : '---'; ?></td>
				<td><?php echo isset($config['author']) ? $config['author'] : '---'; ?></td>
				<td>
					<a href="<?php echo site_url(SITE_AREA .'/developer/modulebuilder/delete/'. preg_replace("/[ -]/", "_", $config['name'])); ?>" onclick="return confirm('Really delete this module and all of its files?');">
						<?php echo lang('mb_delete') ?>
					</a>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>
<?php else: ?>
	<div class="alert alert-warning">
		<p><?php e(lang('mb_no_modules')); ?> <a href="<?php echo site_url(SITE_AREA .'/developer/modulebuilder/create') ?>"><?php e(lang('mb_create_link')); ?></a></p>
	</div>

<?php endif; ?>

</div>
{'fraction_non_alphanumeric': 0.26433915211970077, 'fraction_numerical': 0.0012468827930174563, 'mean_word_length': 4.295379537953796, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 145, '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': '1374825', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1184, 'n_words': 259}