Node.js based forum software built for the modern web
moved all template variables to core
psychobunny8727c7be17e0
diff --git a/src/views/partials/variables/account.tpl b/src/views/partials/variables/account.tplnew file mode 100644index 0000000000..cc63770339--- /dev/null+++ b/src/views/partials/variables/account.tpl@@ -0,0 +1,2 @@+<input type="hidden" template-variable="yourid" value="{yourid}" />+<input type="hidden" template-variable="theirid" value="{theirid}" />\ No newline at end of filediff --git a/src/views/partials/variables/account/edit.tpl b/src/views/partials/variables/account/edit.tplnew file mode 100644index 0000000000..d8e5d259cc--- /dev/null+++ b/src/views/partials/variables/account/edit.tpl@@ -0,0 +1,3 @@+<input type="hidden" template-variable="userslug" value="{userslug}" />+<input type="hidden" template-variable="gravatarpicture" value="{gravatarpicture}" />+<input type="hidden" template-variable="uploadedpicture" value="{uploadedpicture}" />\ No newline at end of filediff --git a/src/views/partials/variables/account/profile.tpl b/src/views/partials/variables/account/profile.tplnew file mode 100644index 0000000000..be91685112--- /dev/null+++ b/src/views/partials/variables/account/profile.tpl@@ -0,0 +1 @@+<input type="hidden" template-type="boolean" template-variable="isFollowing" value="{isFollowing}" />\ No newline at end of filediff --git a/src/views/partials/variables/category.tpl b/src/views/partials/variables/category.tplnew file mode 100644index 0000000000..984002411a--- /dev/null+++ b/src/views/partials/variables/category.tpl@@ -0,0 +1,6 @@+<input type="hidden" template-variable="category_id" value="{cid}" />+<input type="hidden" template-variable="category_name" value="{name}" />+<input type="hidden" template-variable="category_slug" value="{slug}" />+<input type="hidden" template-variable="topic_count" value="{topic_count}" />+<input type="hidden" template-variable="currentPage" value="{currentPage}" />+<input type="hidden" template-variable="pageCount" value="{pageCount}" />\ No newline at end of filediff --git a/src/views/partials/variables/groups/details.tpl b/src/views/partials/variables/groups/details.tplnew file mode 100644index 0000000000..0cefdde305--- /dev/null+++ b/src/views/partials/variables/groups/details.tpl@@ -0,0 +1,2 @@+<input type="hidden" template-variable="group_name" value="{group.name}" />+<input type="hidden" template-variable="is_owner" value="{group.isOwner}" />\ No newline at end of filediff --git a/src/views/partials/variables/reset_code.tpl b/src/views/partials/variables/reset_code.tplnew file mode 100644index 0000000000..c139a7011d--- /dev/null+++ b/src/views/partials/variables/reset_code.tpl@@ -0,0 +1 @@+<input type="hidden" template-variable="reset_code" value="{reset_code}" />\ No newline at end of filediff --git a/src/views/partials/variables/tag.tpl b/src/views/partials/variables/tag.tplnew file mode 100644index 0000000000..486ba8245c--- /dev/null+++ b/src/views/partials/variables/tag.tpl@@ -0,0 +1 @@+<input type="hidden" template-variable="tag" value="{tag}" />\ No newline at end of filediff --git a/src/views/partials/variables/topic.tpl b/src/views/partials/variables/topic.tplnew file mode 100644index 0000000000..4f3c15180d--- /dev/null+++ b/src/views/partials/variables/topic.tpl@@ -0,0 +1,11 @@+<input type="hidden" template-variable="topic_id" value="{tid}" />+<input type="hidden" template-variable="topic_slug" value="{slug}" />+<input type="hidden" template-variable="category_id" value="{category.cid}" />+<input type="hidden" template-variable="currentPage" value="{currentPage}" />+<input type="hidden" template-variable="pageCount" value="{pageCount}" />+<input type="hidden" template-variable="locked" template-type="boolean" value="{locked}" />+<input type="hidden" template-variable="deleted" template-type="boolean" value="{deleted}" />+<input type="hidden" template-variable="pinned" template-type="boolean" value="{pinned}" />+<input type="hidden" template-variable="topic_name" value="{title}" />+<input type="hidden" template-variable="postcount" value="{postcount}" />+<input type="hidden" template-variable="viewcount" value="{viewcount}" />\ No newline at end of file