From c15f59db3900a958a7ff249791a0b94a701e306c Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 16 May 2014 17:43:42 +0200 Subject: [PATCH] Grouped views into file hierarchy --- src/Views/{ => comment}/comment-add.phtml | 0 src/Views/{ => comment}/comment-edit.phtml | 0 src/Views/{ => comment}/comment-list.phtml | 0 src/Views/{ => comment}/comment-small.phtml | 6 +++--- src/Views/{ => log}/log-list.phtml | 0 src/Views/{ => log}/log-view.phtml | 0 src/Views/{ => post}/post-edit.phtml | 0 src/Views/{ => post}/post-file-render.phtml | 0 src/Views/{ => post}/post-list-wrapper.phtml | 0 src/Views/{ => post}/post-list.phtml | 14 ++++++-------- src/Views/{ => post}/post-small.phtml | 1 + src/Views/{ => post}/post-upload.phtml | 0 src/Views/{ => post}/post-view.phtml | 5 +++-- src/Views/{ => static}/static-help.phtml | 0 src/Views/{ => static}/static-main.phtml | 0 src/Views/{ => tag}/tag-list-wrapper.phtml | 0 src/Views/{ => tag}/tag-list.phtml | 0 src/Views/{ => tag}/tag-mass-tag.phtml | 0 src/Views/{ => tag}/tag-merge.phtml | 0 src/Views/{ => tag}/tag-rename.phtml | 0 src/Views/{ => user}/user-delete.phtml | 0 src/Views/{ => user}/user-edit.phtml | 0 src/Views/{ => user}/user-list.phtml | 0 src/Views/{ => user}/user-registration.phtml | 0 src/Views/{ => user}/user-select.phtml | 0 src/Views/{ => user}/user-settings.phtml | 0 src/Views/{ => user}/user-view.phtml | 0 27 files changed, 13 insertions(+), 13 deletions(-) rename src/Views/{ => comment}/comment-add.phtml (100%) rename src/Views/{ => comment}/comment-edit.phtml (100%) rename src/Views/{ => comment}/comment-list.phtml (100%) rename src/Views/{ => comment}/comment-small.phtml (94%) rename src/Views/{ => log}/log-list.phtml (100%) rename src/Views/{ => log}/log-view.phtml (100%) rename src/Views/{ => post}/post-edit.phtml (100%) rename src/Views/{ => post}/post-file-render.phtml (100%) rename src/Views/{ => post}/post-list-wrapper.phtml (100%) rename src/Views/{ => post}/post-list.phtml (80%) rename src/Views/{ => post}/post-small.phtml (99%) rename src/Views/{ => post}/post-upload.phtml (100%) rename src/Views/{ => post}/post-view.phtml (99%) rename src/Views/{ => static}/static-help.phtml (100%) rename src/Views/{ => static}/static-main.phtml (100%) rename src/Views/{ => tag}/tag-list-wrapper.phtml (100%) rename src/Views/{ => tag}/tag-list.phtml (100%) rename src/Views/{ => tag}/tag-mass-tag.phtml (100%) rename src/Views/{ => tag}/tag-merge.phtml (100%) rename src/Views/{ => tag}/tag-rename.phtml (100%) rename src/Views/{ => user}/user-delete.phtml (100%) rename src/Views/{ => user}/user-edit.phtml (100%) rename src/Views/{ => user}/user-list.phtml (100%) rename src/Views/{ => user}/user-registration.phtml (100%) rename src/Views/{ => user}/user-select.phtml (100%) rename src/Views/{ => user}/user-settings.phtml (100%) rename src/Views/{ => user}/user-view.phtml (100%) diff --git a/src/Views/comment-add.phtml b/src/Views/comment/comment-add.phtml similarity index 100% rename from src/Views/comment-add.phtml rename to src/Views/comment/comment-add.phtml diff --git a/src/Views/comment-edit.phtml b/src/Views/comment/comment-edit.phtml similarity index 100% rename from src/Views/comment-edit.phtml rename to src/Views/comment/comment-edit.phtml diff --git a/src/Views/comment-list.phtml b/src/Views/comment/comment-list.phtml similarity index 100% rename from src/Views/comment-list.phtml rename to src/Views/comment/comment-list.phtml diff --git a/src/Views/comment-small.phtml b/src/Views/comment/comment-small.phtml similarity index 94% rename from src/Views/comment-small.phtml rename to src/Views/comment/comment-small.phtml index 5c1f0a84..fd06df56 100644 --- a/src/Views/comment-small.phtml +++ b/src/Views/comment/comment-small.phtml @@ -1,7 +1,7 @@
diff --git a/src/Views/log-list.phtml b/src/Views/log/log-list.phtml similarity index 100% rename from src/Views/log-list.phtml rename to src/Views/log/log-list.phtml diff --git a/src/Views/log-view.phtml b/src/Views/log/log-view.phtml similarity index 100% rename from src/Views/log-view.phtml rename to src/Views/log/log-view.phtml diff --git a/src/Views/post-edit.phtml b/src/Views/post/post-edit.phtml similarity index 100% rename from src/Views/post-edit.phtml rename to src/Views/post/post-edit.phtml diff --git a/src/Views/post-file-render.phtml b/src/Views/post/post-file-render.phtml similarity index 100% rename from src/Views/post-file-render.phtml rename to src/Views/post/post-file-render.phtml diff --git a/src/Views/post-list-wrapper.phtml b/src/Views/post/post-list-wrapper.phtml similarity index 100% rename from src/Views/post-list-wrapper.phtml rename to src/Views/post/post-list-wrapper.phtml diff --git a/src/Views/post-list.phtml b/src/Views/post/post-list.phtml similarity index 80% rename from src/Views/post-list.phtml rename to src/Views/post/post-list.phtml index 8893d0f3..b8f838ee 100644 --- a/src/Views/post-list.phtml +++ b/src/Views/post/post-list.phtml @@ -1,16 +1,14 @@ -context->source) +if (isset($this->context->source) and $this->context->source == 'mass-tag' - and Access::check(new Privilege(Privilege::MassTag))): ?> - - context) ?> - - - + and Access::check(new Privilege(Privilege::MassTag))) +{ + \Chibi\View::render('tag-mass-tag', $this->context); +} +?> context->transport->message)): ?> context) ?> diff --git a/src/Views/post-small.phtml b/src/Views/post/post-small.phtml similarity index 99% rename from src/Views/post-small.phtml rename to src/Views/post/post-small.phtml index 5e8086eb..bc041f2f 100644 --- a/src/Views/post-small.phtml +++ b/src/Views/post/post-small.phtml @@ -26,6 +26,7 @@ if ($masstag) ?>
+ context->transport->post->getComments())): ?>
diff --git a/src/Views/static-help.phtml b/src/Views/static/static-help.phtml similarity index 100% rename from src/Views/static-help.phtml rename to src/Views/static/static-help.phtml diff --git a/src/Views/static-main.phtml b/src/Views/static/static-main.phtml similarity index 100% rename from src/Views/static-main.phtml rename to src/Views/static/static-main.phtml diff --git a/src/Views/tag-list-wrapper.phtml b/src/Views/tag/tag-list-wrapper.phtml similarity index 100% rename from src/Views/tag-list-wrapper.phtml rename to src/Views/tag/tag-list-wrapper.phtml diff --git a/src/Views/tag-list.phtml b/src/Views/tag/tag-list.phtml similarity index 100% rename from src/Views/tag-list.phtml rename to src/Views/tag/tag-list.phtml diff --git a/src/Views/tag-mass-tag.phtml b/src/Views/tag/tag-mass-tag.phtml similarity index 100% rename from src/Views/tag-mass-tag.phtml rename to src/Views/tag/tag-mass-tag.phtml diff --git a/src/Views/tag-merge.phtml b/src/Views/tag/tag-merge.phtml similarity index 100% rename from src/Views/tag-merge.phtml rename to src/Views/tag/tag-merge.phtml diff --git a/src/Views/tag-rename.phtml b/src/Views/tag/tag-rename.phtml similarity index 100% rename from src/Views/tag-rename.phtml rename to src/Views/tag/tag-rename.phtml diff --git a/src/Views/user-delete.phtml b/src/Views/user/user-delete.phtml similarity index 100% rename from src/Views/user-delete.phtml rename to src/Views/user/user-delete.phtml diff --git a/src/Views/user-edit.phtml b/src/Views/user/user-edit.phtml similarity index 100% rename from src/Views/user-edit.phtml rename to src/Views/user/user-edit.phtml diff --git a/src/Views/user-list.phtml b/src/Views/user/user-list.phtml similarity index 100% rename from src/Views/user-list.phtml rename to src/Views/user/user-list.phtml diff --git a/src/Views/user-registration.phtml b/src/Views/user/user-registration.phtml similarity index 100% rename from src/Views/user-registration.phtml rename to src/Views/user/user-registration.phtml diff --git a/src/Views/user-select.phtml b/src/Views/user/user-select.phtml similarity index 100% rename from src/Views/user-select.phtml rename to src/Views/user/user-select.phtml diff --git a/src/Views/user-settings.phtml b/src/Views/user/user-settings.phtml similarity index 100% rename from src/Views/user-settings.phtml rename to src/Views/user/user-settings.phtml diff --git a/src/Views/user-view.phtml b/src/Views/user/user-view.phtml similarity index 100% rename from src/Views/user-view.phtml rename to src/Views/user/user-view.phtml