<commit_before><div class="mj3_tables clearfix">
	<?php echo $this->renderStandardViewHeader(ICON_LARGE_WEBHOOK_HTML .'&nbsp; Manage Webhooks'); ?>



	<ul class="nav nav-tabs">
		<li class="mj3_btnchangeform"><a class="btn btn-success" href="<?php echo $this->url("front-power-tools/webhooks", array("action" => "create-webhook")); ?>" title="Create a Webhook" data-toggle="tooltip"><?php echo ICON_MEDIUM_ADD_HTML;?> Create Webhook</a></li>
		<li role="presentation"><a class="btn btn-primary" href="<?php echo $this->url("front-power-tools/webhooks", array("action" => "webhook-urls")); ?>" title="Manage Urls / Endpoints" data-toggle="tooltip"><?php //echo ICON_MEDIUM_ADD_HTML;?> Manage Urls / Endpoints</a></li>
	</ul>

	<div class="mj3_table_contain clearfix">

		<?php

		foreach ($this->objWebhooks as $objWebhook) {

			if ($objWebhook->get("id") == "") {
				continue;
			} //end if

			$arr_webhook["title"] = $objWebhook->get("title");
			$arr_webhook["description"] = $objWebhook->get("description");
			$arr_webhook["method"] = $objWebhook->get("http_method");

			if ($objWebhook->get("active") == 1) {

				$arr_webhook["active"] = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "toggle-webhook-status", "id" => $objWebhook->get("id"))) . "\" title=\"Deactivate Webhook\" data-toggle=\"tooltip\">" . ICON_SMALL_ACTIVE_HTML . "</a>";
			} else {
				$arr_webhook["active"] = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "toggle-webhook-status", "id" => $objWebhook->get("id"))) . "\" title=\"Activate Webhook\" data-toggle=\"tooltip\">" . ICON_SMALL_INACTIVE_HTML . "</a>";
			} //end if

			//set urls
			$edit_url = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "edit-webhook", "id" => $objWebhook->get("id"))) . "\" title=\"Edit Webhook\" data-toggle=\"tooltip\">" . ICON_SMALL_MODIFY_HTML . "</a>";
			$headers_url = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "webhook-headers")) . "?webhook_id=" . $objWebhook->get("id") . "\" title=\"Webhook Headers\" data-toggle=\"tooltip\">Headers</a>";
			$delete_url = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "delete-webhook", "id" => $objWebhook->get("id"))) . "\" title=\"Delete Webhook\" data-toggle=\"tooltip\">" . ICON_SMALL_DELETE_HTML . "</a>";
			$arr_webhook["urls"] = $edit_url . "&nbsp;" . $headers_url . "&nbsp;" . $delete_url;

			$arr[] = $arr_webhook;

		} //end foreach

// 		$add_url = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "create-webhook")) . "\" title=\"Create a Webhook\" data-toggle=\"tooltip\">" . ICON_MEDIUM_ADD_HTML . "</a>";
		$add_url = "";
		echo $this->renderDataTableHelper();
		echo $this->renderSimpleHTMLTable($arr, array("Title", "Description", "Method", "Active", $add_url));

		?>

	</div>

</div><commit_msg>Fix webhooks admin layout<commit_after><div class="mj3_tables clearfix">
	<?php echo $this->renderStandardViewHeader(ICON_LARGE_WEBHOOK_HTML .'&nbsp; Manage Webhooks'); ?>

	<ul class="nav nav-tabs">
		<li class="mj3_btnchangeform"><a class="btn btn-success" href="<?php echo $this->url("front-power-tools/webhooks", array("action" => "create-webhook")); ?>" title="Create a Webhook" data-toggle="tooltip"><?php echo ICON_MEDIUM_ADD_HTML;?> Create Webhook</a></li>
		<li role="presentation"><a class="btn btn-primary" href="<?php echo $this->url("front-power-tools/webhooks", array("action" => "webhook-urls")); ?>" title="Manage Urls / Endpoints" data-toggle="tooltip"><?php //echo ICON_MEDIUM_ADD_HTML;?> Manage Urls / Endpoints</a></li>
	</ul>

	<div class="mj3_table_contain clearfix">

		<?php

		foreach ($this->objWebhooks as $objWebhook) {

			if ($objWebhook->get("id") == "") {
				continue;
			} //end if

			$arr_webhook["title"] = "<span title=\"" . $objWebhook->get('target_url') .  $objWebhook->get('target_path') . "\" data-toggle=\"tooltip\">" . $objWebhook->get("title") . "</span>";
			$arr_webhook["description"] = $objWebhook->get("description");
			$arr_webhook["method"] = $objWebhook->get("http_method");
			
			switch($objWebhook->get("delivery_speed"))
			{
				case 10: //send immediatly, 10 coins
					$arr_webhook['execute_time'] = 'Immediatly';
					break;
				
				case 5: //wait 5 minutes, 3 coins
					$arr_webhook['execute_time'] = '5 Minutes';
					break;
				
				case 3: //wait 20 minutes, 1 coin
					$arr_webhook['execute_time'] = '20 Minutes';
					break;
				
				case 1: //wait 60 minutes
				default:
					$arr_webhook['execute_time'] = '60 Minutes';
					break;
			}//end if
			
			if ($objWebhook->get("active") == 1) {

				//$arr_webhook["active"] = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "toggle-webhook-status", "id" => $objWebhook->get("id"))) . "\" title=\"Deactivate Webhook\" data-toggle=\"tooltip\">" . ICON_SMALL_ACTIVE_HTML . "</a>";
				$arr_webhook["active"] = "<span title=\"This webhook is active\" data-toggle=\"tooltip\">" . ICON_SMALL_ACTIVE_HTML . "</span>";
			} else {
				//$arr_webhook["active"] = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "toggle-webhook-status", "id" => $objWebhook->get("id"))) . "\" title=\"Activate Webhook\" data-toggle=\"tooltip\">" . ICON_SMALL_INACTIVE_HTML . "</a>";
				$arr_webhook["active"] = "<span title=\"This webhook is inactive\" data-toggle=\"tooltip\">" . ICON_SMALL_INACTIVE_HTML . "</span>";
			} //end if

			//set urls
			$edit_url = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "edit-webhook", "id" => $objWebhook->get("id"))) . "\" title=\"Edit Webhook\" data-toggle=\"tooltip\">" . ICON_SMALL_MODIFY_HTML . "</a>";
			$headers_url = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "webhook-headers")) . "?webhook_id=" . $objWebhook->get("id") . "\" title=\"Webhook Headers\" data-toggle=\"tooltip\">Headers</a>";
			$delete_url = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "delete-webhook", "id" => $objWebhook->get("id"))) . "\" title=\"Delete Webhook\" data-toggle=\"tooltip\">" . ICON_SMALL_DELETE_HTML . "</a>";
			$arr_webhook["urls"] = $edit_url . "&nbsp;" . $headers_url . "&nbsp;" . $delete_url;

			$arr[] = $arr_webhook;

		} //end foreach

// 		$add_url = "<a href=\"" . $this->url("front-power-tools/webhooks", array("action" => "create-webhook")) . "\" title=\"Create a Webhook\" data-toggle=\"tooltip\">" . ICON_MEDIUM_ADD_HTML . "</a>";
		$add_url = "";
		echo $this->renderDataTableHelper();
		echo $this->renderSimpleHTMLTable($arr, array("Title", "Description", "Method", "Speed", "Active", $add_url));

		?>

	</div>

</div>
{'fraction_non_alphanumeric': 0.23779668607254814, 'fraction_numerical': 0.004030452306314375, 'mean_word_length': 4.4119547657512115, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 144, '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': '4673993', 'n_tokens_mistral': 2558, 'n_tokens_neox': 2370, 'n_words': 415}