From 8d2595d5925ef2bc7d99057ca55d1a2fb40f9fb8 Mon Sep 17 00:00:00 2001 From: iglocska Date: Wed, 31 Jul 2013 15:08:10 +0200 Subject: [PATCH] Breadcrumbs for the views - makes navigating the site easier - some new css changes to support this --- .gitignore | 2 ++ app/View/Attributes/add.ctp | 1 + app/View/Attributes/add_attachment.ctp | 1 + app/View/Attributes/add_threatconnect.ctp | 1 + app/View/Attributes/edit.ctp | 1 + app/View/Attributes/index.ctp | 1 + app/View/Attributes/search.ctp | 1 + app/View/Events/add.ctp | 1 + app/View/Events/add_i_o_c.ctp | 1 + app/View/Events/contact.ctp | 1 + app/View/Events/edit.ctp | 1 + app/View/Events/export.ctp | 1 + app/View/Events/index.ctp | 1 + app/View/Events/show_i_o_c_results.ctp | 1 + app/View/Events/view.ctp | 1 + app/View/Layouts/default.ctp | 3 +++ app/View/Logs/admin_index.ctp | 1 + app/View/Logs/admin_search.ctp | 1 + app/View/Logs/event_index.ctp | 1 + app/View/Regexp/admin_add.ctp | 1 + app/View/Regexp/admin_edit.ctp | 1 + app/View/Regexp/admin_index.ctp | 1 + app/View/Regexp/index.ctp | 1 + app/View/Roles/admin_add.ctp | 1 + app/View/Roles/admin_edit.ctp | 1 + app/View/Roles/admin_index.ctp | 1 + app/View/Roles/index.ctp | 1 + app/View/Roles/view.ctp | 1 + app/View/Servers/add.ctp | 1 + app/View/Servers/edit.ctp | 1 + app/View/Servers/index.ctp | 1 + app/View/ShadowAttributes/add.ctp | 2 +- app/View/ShadowAttributes/add_attachment.ctp | 1 + app/View/ShadowAttributes/edit.ctp | 1 + app/View/Users/admin_add.ctp | 1 + app/View/Users/admin_edit.ctp | 1 + app/View/Users/admin_email.ctp | 1 + app/View/Users/admin_index.ctp | 1 + app/View/Users/admin_view.ctp | 1 + app/View/Users/change_pw.ctp | 1 + app/View/Users/edit.ctp | 1 + app/View/Users/memberslist.ctp | 1 + app/View/Users/news.ctp | 1 + app/View/Users/terms.ctp | 1 + app/View/Users/view.ctp | 1 + app/View/Whitelists/admin_add.ctp | 1 + app/View/Whitelists/admin_edit.ctp | 1 + app/View/Whitelists/admin_index.ctp | 1 + app/View/Whitelists/index.ctp | 1 + app/webroot/css/main.css | 8 ++++++++ 50 files changed, 60 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c1ed19f90..72af3c25f 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ /app/Config/database.php /app/Config/core.php /cakephp +/app/webroot/gpg.asc +/app/webroot/index.html diff --git a/app/View/Attributes/add.ctp b/app/View/Attributes/add.ctp index 41a5883b8..49f0f4bcb 100755 --- a/app/View/Attributes/add.ctp +++ b/app/View/Attributes/add.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>
Form->create('Attribute');?>
diff --git a/app/View/Attributes/add_attachment.ctp b/app/View/Attributes/add_attachment.ctp index e16f41275..372c7587b 100755 --- a/app/View/Attributes/add_attachment.ctp +++ b/app/View/Attributes/add_attachment.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>
Form->create('Attribute', array('enctype' => 'multipart/form-data','onSubmit' => 'document.getElementById("AttributeMalware").removeAttribute("disabled");'));?>
diff --git a/app/View/Attributes/add_threatconnect.ctp b/app/View/Attributes/add_threatconnect.ctp index d5623a8ce..ce757933e 100644 --- a/app/View/Attributes/add_threatconnect.ctp +++ b/app/View/Attributes/add_threatconnect.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>
Form->create('Attribute', array('enctype' => 'multipart/form-data'));?>
diff --git a/app/View/Attributes/edit.ctp b/app/View/Attributes/edit.ctp index 01a865f34..a26ec3d14 100755 --- a/app/View/Attributes/edit.ctp +++ b/app/View/Attributes/edit.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>
Form->create('Attribute');?>
diff --git a/app/View/Attributes/index.ctp b/app/View/Attributes/index.ctp index 08f894c18..42e8702b0 100755 --- a/app/View/Attributes/index.ctp +++ b/app/View/Attributes/index.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>

Attributes

element('bread_crumbs'); ?>
Form->create('Attribute');?>
diff --git a/app/View/Events/add.ctp b/app/View/Events/add.ctp index 6666b9121..4188987dc 100755 --- a/app/View/Events/add.ctp +++ b/app/View/Events/add.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>
Form->create('', array('type' => 'file'));?>
diff --git a/app/View/Events/add_i_o_c.ctp b/app/View/Events/add_i_o_c.ctp index 5d9fd4600..452d90d95 100644 --- a/app/View/Events/add_i_o_c.ctp +++ b/app/View/Events/add_i_o_c.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>
Form->create('Event', array('type' => 'file'));?>
diff --git a/app/View/Events/contact.ctp b/app/View/Events/contact.ctp index 7b854f55c..1eb2a63b9 100755 --- a/app/View/Events/contact.ctp +++ b/app/View/Events/contact.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?> request->data['Event']['user_id'] == $me['id']) || ($isAclModifyOrg && $this->request->data['Event']['orgc'] == $me['org'])); $mayPublish = ($isAclPublish && $this->request->data['Event']['orgc'] == $me['org']); diff --git a/app/View/Events/edit.ctp b/app/View/Events/edit.ctp index edfe60aff..381f1a39b 100755 --- a/app/View/Events/edit.ctp +++ b/app/View/Events/edit.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>
Form->create('Event');?>
diff --git a/app/View/Events/export.ctp b/app/View/Events/export.ctp index 4c167a35f..ae47d2431 100755 --- a/app/View/Events/export.ctp +++ b/app/View/Events/export.ctp @@ -1,3 +1,4 @@ +element('bread_crumbs'); ?>

Export

Export functionality is designed to automatically generate signatures for intrusion detection systems. To enable signature generation for a given attribute, Signature field of this attribute must be set to Yes. diff --git a/app/View/Events/index.ctp b/app/View/Events/index.ctp index 3c99fd582..41a9709cc 100755 --- a/app/View/Events/index.ctp +++ b/app/View/Events/index.ctp @@ -3,6 +3,7 @@ passedArgs['searchDatefrom'])) $this->passedArgs['searchDatefrom'] = '';?> passedArgs['searchDateuntil'])) $this->passedArgs['searchDateuntil'] = '';?> passedArgs['searchpublished'])) $this->passedArgs['searchpublished'] = '2';?> +element('bread_crumbs'); ?>

Events