mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 06:26:35 +02:00
moved all template variables to core
This commit is contained in:
2
src/views/partials/variables/account.tpl
Normal file
2
src/views/partials/variables/account.tpl
Normal file
@@ -0,0 +1,2 @@
|
||||
<input type="hidden" template-variable="yourid" value="{yourid}" />
|
||||
<input type="hidden" template-variable="theirid" value="{theirid}" />
|
||||
3
src/views/partials/variables/account/edit.tpl
Normal file
3
src/views/partials/variables/account/edit.tpl
Normal file
@@ -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}" />
|
||||
1
src/views/partials/variables/account/profile.tpl
Normal file
1
src/views/partials/variables/account/profile.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<input type="hidden" template-type="boolean" template-variable="isFollowing" value="{isFollowing}" />
|
||||
6
src/views/partials/variables/category.tpl
Normal file
6
src/views/partials/variables/category.tpl
Normal file
@@ -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}" />
|
||||
2
src/views/partials/variables/groups/details.tpl
Normal file
2
src/views/partials/variables/groups/details.tpl
Normal file
@@ -0,0 +1,2 @@
|
||||
<input type="hidden" template-variable="group_name" value="{group.name}" />
|
||||
<input type="hidden" template-variable="is_owner" value="{group.isOwner}" />
|
||||
1
src/views/partials/variables/reset_code.tpl
Normal file
1
src/views/partials/variables/reset_code.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<input type="hidden" template-variable="reset_code" value="{reset_code}" />
|
||||
1
src/views/partials/variables/tag.tpl
Normal file
1
src/views/partials/variables/tag.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<input type="hidden" template-variable="tag" value="{tag}" />
|
||||
11
src/views/partials/variables/topic.tpl
Normal file
11
src/views/partials/variables/topic.tpl
Normal file
@@ -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}" />
|
||||
Reference in New Issue
Block a user