Ejemplo n.º 1
0
 protected function createTabs($file)
 {
     parent::createTabs($file);
     $editor = Projects_Editor_Manager::manager()->editor($file->id(), $file->code(), $file->highlight());
     $editor->read_only = $this->read_only();
     $content = $editor->xhtml('content', 'savecontent');
     $summary = $this->tabs->tab('Summary');
     $summary->setContent($content);
 }
Ejemplo n.º 2
0
 protected function createTabs($file)
 {
     parent::createTabs($file);
     $summary = $this->tabs->tab('Summary');
     if ($file->is_making()) {
         $summary->newAction(kill_button($file->id()));
     } else {
         $summary->newAction(make_button($file->id(), $file->status() == PROJECTS_MADE));
     }
     $summary->setContent($this->content($file));
     $recipe = new Projects_RecipeTab($this->tabs, $file, $this->read_only());
     $this->tabs->newTab($recipe);
     $log = new Projects_LogTab($this->tabs, $file);
     $this->tabs->newTab($log);
 }