Simplify layout and templates generation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div class="color-<?= $task['color_id'] ?> task-show-details">
|
||||
<h2><?= $this->e('#'.$task['id'].' '.$task['title']) ?></h2>
|
||||
<h2><?= $this->e($task['title']) ?></h2>
|
||||
<?php if ($task['score']): ?>
|
||||
<span class="task-score"><?= $this->e($task['score']) ?></span>
|
||||
<?php endif ?>
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
</div>
|
||||
<section class="sidebar-container" id="task-section">
|
||||
|
||||
<?= $this->render('task/sidebar', array('task' => $task)) ?>
|
||||
<?= $this->render($sidebar_template, array('task' => $task)) ?>
|
||||
|
||||
<div class="sidebar-content">
|
||||
<?= $task_content_for_layout ?>
|
||||
<?= $content_for_sublayout ?>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
Reference in New Issue
Block a user