From 924949850322144036e281bf94fb8b88c42bbd74 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 16 Feb 2016 22:06:53 -0500 Subject: Add file preview for Markdown and text files --- app/Template/file_viewer/show.php | 16 +++++++++++----- app/Template/project_overview/files.php | 20 +++++++++++++------- app/Template/task_file/show.php | 20 +++++++++++++------- 3 files changed, 37 insertions(+), 19 deletions(-) (limited to 'app/Template') diff --git a/app/Template/file_viewer/show.php b/app/Template/file_viewer/show.php index e0d1b21e..c71ef91c 100644 --- a/app/Template/file_viewer/show.php +++ b/app/Template/file_viewer/show.php @@ -1,8 +1,14 @@ +
+ + <?= $this->e($file['name']) ?> + +
+ text->markdown($content) ?> +
+ +
+
\ No newline at end of file diff --git a/app/Template/project_overview/files.php b/app/Template/project_overview/files.php index fea20ad6..03835f6b 100644 --- a/app/Template/project_overview/files.php +++ b/app/Template/project_overview/files.php @@ -24,16 +24,16 @@ @@ -64,16 +64,22 @@ diff --git a/app/Template/task_file/show.php b/app/Template/task_file/show.php index 67d7a99c..8aa76520 100644 --- a/app/Template/task_file/show.php +++ b/app/Template/task_file/show.php @@ -14,16 +14,16 @@ @@ -54,16 +54,22 @@ -- cgit v1.2.3