summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/format/text.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/format/text.phtml')
-rw-r--r--application/views/scripts/format/text.phtml13
1 files changed, 13 insertions, 0 deletions
diff --git a/application/views/scripts/format/text.phtml b/application/views/scripts/format/text.phtml
new file mode 100644
index 0000000..647914b
--- /dev/null
+++ b/application/views/scripts/format/text.phtml
@@ -0,0 +1,13 @@
+<?php
+/** @var string $text */
+/** @var string|null $partial */
+if (! $this->compact): ?>
+<div class="controls"><?= $this->tabs ?></div>
+<?php endif ?>
+<div class="content">
+<?php if ($partial !== null): ?>
+ <pre class="copyable"><?= $this->partial($partial . '.phtml', null, $this) ?></pre>
+<?php else: ?>
+ <pre class="copyable"><?= htmlspecialchars($text) ?></pre>
+<?php endif ?>
+</div>