[icinga-checkins] icinga.org: icinga-web/mhein/default: * Wrapped the static content view into a div

git at icinga.org git at icinga.org
Thu Jan 28 15:02:21 CET 2010


Module: icinga-web
Branch: mhein/default
Commit: de75d227e976ed7674b46bfde3b019a9c16f7670
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=de75d227e976ed7674b46bfde3b019a9c16f7670

Author: Marius Hein <mhein at sasquatch.local.itsocks.de>
Date:   Thu Jan 28 15:02:04 2010 +0100

* Wrapped the static content view into a div

---

 .../templates/System/StaticContentSuccess.php      |    3 +++
 .../System/StaticContentSuccessView.class.php      |    4 +++-
 pub/styles/Icinga.css                              |    5 ++++-
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/templates/System/StaticContentSuccess.php b/app/modules/Cronks/templates/System/StaticContentSuccess.php
index e69de29..19421b5 100644
--- a/app/modules/Cronks/templates/System/StaticContentSuccess.php
+++ b/app/modules/Cronks/templates/System/StaticContentSuccess.php
@@ -0,0 +1,3 @@
+<div class="static-content-container">
+	<?php echo $t['content']; ?>
+</div>
\ No newline at end of file
diff --git a/app/modules/Cronks/views/System/StaticContentSuccessView.class.php b/app/modules/Cronks/views/System/StaticContentSuccessView.class.php
index 54dc3de..6346117 100644
--- a/app/modules/Cronks/views/System/StaticContentSuccessView.class.php
+++ b/app/modules/Cronks/views/System/StaticContentSuccessView.class.php
@@ -13,6 +13,8 @@ class Cronks_System_StaticContentSuccessView extends ICINGACronksBaseView
 	 */
 	public function executeHtml(AgaviRequestDataHolder $rd)
 	{
+		$this->setupHtml($rd);
+		
 		$templateFile = sprintf(
 			'%s/%s.xml', 
 			AgaviConfig::get('de.icinga.web.xml_template_folder'), 
@@ -22,7 +24,7 @@ class Cronks_System_StaticContentSuccessView extends ICINGACronksBaseView
 		$model = $this->getContext()->getModel('System.StaticContent', 'Cronks');
 		$content = $model->getContent($templateFile);
 
-		return $content;
+		$this->setAttribute('content', $content);
 	}
 }
 
diff --git a/pub/styles/Icinga.css b/pub/styles/Icinga.css
index 7e7b9ef..50d45df 100644
--- a/pub/styles/Icinga.css
+++ b/pub/styles/Icinga.css
@@ -331,5 +331,8 @@ table.icinga-attribute-table td.val {
 	border: 1px #00cc00 solid;
 }
 
-
+/** Static content container **/
+div.static-content-container {
+	font-size: 10pt;	
+}
 /* EOF */
\ No newline at end of file





More information about the icinga-checkins mailing list