commit acf265e5785b348773b34e568ee95506d071d695
parent 4e484a73203cc067852b8d3c1ced748aa0092007
Author: dankert <devnull@localhost>
Date: Thu, 17 Feb 2011 23:43:33 +0100
Menüpunkte \"Inhalt\" und \"Einstellungen\".
Diffstat:
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/action/TreeAction.class.php b/action/TreeAction.class.php
@@ -297,6 +297,34 @@ class TreeAction extends Action
$this->setTemplateVar( 'branch',$branch );
}
+
+ /**
+ * Inhalt des Projektes anzeigen.
+ */
+ public function content()
+ {
+ if ( $this->hasRequestVar('projectid') )
+ $this->load();
+
+ // Nichts - denn der Baum lädt sich über AJAX selbst.
+ }
+
+
+ /**
+ * Projekt-Einstellungen anzeigen.
+ */
+ public function settings()
+ {
+ $this->setTemplateVar( 'languages' ,Language::getAll() );
+ $this->setTemplateVar( 'languageid',Session::getProjectLanguage()->languageid );
+ $this->setTemplateVar( 'models' ,Model::getAll() );
+ $this->setTemplateVar( 'modelid' ,Session::getProjectModel()->modelid );
+ }
+
+ public function settingsAction()
+ {
+ }
+
}
?>
\ No newline at end of file
diff --git a/action/TreeAction.ini.php b/action/TreeAction.ini.php
@@ -5,6 +5,12 @@ goto=show
[show]
menu=true
+[content]
+menu=true
+
+[settings]
+menu=true
+
[load]
;write=get
goto=show