moved all template variables to core

main
psychobunny 10 years ago
parent 268eb2e25e
commit ce720a6ef3

@ -136,8 +136,5 @@
<!-- IMPORT partials/modals/upload_picture_from_url_modal.tpl -->
</div>
<input type="hidden" template-variable="yourid" value="{yourid}" />
<input type="hidden" template-variable="theirid" value="{theirid}" />
<input type="hidden" template-variable="userslug" value="{userslug}" />
<input type="hidden" template-variable="gravatarpicture" value="{gravatarpicture}" />
<input type="hidden" template-variable="uploadedpicture" value="{uploadedpicture}" />
<!-- IMPORT partials/variables/account.tpl -->
<!-- IMPORT partials/variables/account/edit.tpl -->

@ -37,5 +37,4 @@
</div>
</div>
<input type="hidden" template-variable="yourid" value="{yourid}" />
<input type="hidden" template-variable="theirid" value="{theirid}" />
<!-- IMPORT partials/variables/account.tpl -->

@ -36,5 +36,4 @@
</div>
</div>
<input type="hidden" template-variable="yourid" value="{yourid}" />
<input type="hidden" template-variable="theirid" value="{theirid}" />
<!-- IMPORT partials/variables/account.tpl -->

@ -176,6 +176,5 @@
</div>
<input type="hidden" template-variable="yourid" value="{yourid}" />
<input type="hidden" template-variable="theirid" value="{theirid}" />
<input type="hidden" template-type="boolean" template-variable="isFollowing" value="{isFollowing}" />
<!-- IMPORT partials/variables/account.tpl -->
<!-- IMPORT partials/variables/account/profile.tpl -->

@ -1,4 +1,3 @@
<!-- IMPORT partials/account_menu.tpl -->
<div class="account">
@ -140,5 +139,4 @@
</div>
</div>
<input type="hidden" template-variable="yourid" value="{yourid}" />
<input type="hidden" template-variable="theirid" value="{theirid}" />
<!-- IMPORT partials/variables/account.tpl -->

@ -1,4 +1,3 @@
<!-- IMPORT partials/account_menu.tpl -->
<div>
@ -13,5 +12,4 @@
</div>
</div>
<input type="hidden" template-variable="yourid" value="{yourid}" />
<input type="hidden" template-variable="theirid" value="{theirid}" />
<!-- IMPORT partials/variables/account.tpl -->

@ -12,5 +12,4 @@
</div>
</div>
<input type="hidden" template-variable="yourid" value="{yourid}" />
<input type="hidden" template-variable="theirid" value="{theirid}" />
<!-- IMPORT partials/variables/account.tpl -->

@ -1,12 +1,3 @@
<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}" />
<div class="category">
<!-- IMPORT partials/breadcrumbs.tpl -->
@ -26,17 +17,7 @@
<!-- ENDIF privileges.topics:create -->
<span class="pull-right">
<!-- IF loggedIn -->
<button type="button" class="btn btn-default btn-success watch <!-- IF !isIgnored -->hidden<!-- ENDIF !isIgnored -->">
<i class="fa fa-eye"></i>
<span class="visible-sm-inline visible-md-inline visible-lg-inline">[[topic:watch]]</span>
</button>
<button type="button" class="btn btn-default btn-warning ignore <!-- IF isIgnored -->hidden<!-- ENDIF isIgnored -->">
<i class="fa fa-eye-slash"></i>
<span class="visible-sm-inline visible-md-inline visible-lg-inline">[[category:ignore]]</span>
</button>
<!-- ENDIF loggedIn -->
<!-- IMPORT partials/category/watch.tpl -->
<!-- IMPORT partials/category/tools.tpl -->
<!-- IMPORT partials/category/sort.tpl -->
</span>
@ -114,4 +95,5 @@
</div>
<!-- IMPORT partials/move_thread_modal.tpl -->
<!-- IMPORT partials/noscript/paginator.tpl -->
<!-- IMPORT partials/noscript/paginator.tpl -->
<!-- IMPORT partials/variables/category.tpl -->

@ -206,5 +206,4 @@
</div>
</div>
<input type="hidden" template-variable="group_name" value="{group.name}" />
<input type="hidden" template-variable="is_owner" value="{group.isOwner}" />
<!-- IMPORT partials/variables/groups/details.tpl -->

@ -0,0 +1,10 @@
<!-- IF loggedIn -->
<button type="button" class="btn btn-default btn-success watch <!-- IF !isIgnored -->hidden<!-- ENDIF !isIgnored -->">
<i class="fa fa-eye"></i>
<span class="visible-sm-inline visible-md-inline visible-lg-inline">[[topic:watch]]</span>
</button>
<button type="button" class="btn btn-default btn-warning ignore <!-- IF isIgnored -->hidden<!-- ENDIF isIgnored -->">
<i class="fa fa-eye-slash"></i>
<span class="visible-sm-inline visible-md-inline visible-lg-inline">[[category:ignore]]</span>
</button>
<!-- ENDIF loggedIn -->

@ -24,7 +24,7 @@
<button class="btn btn-primary btn-block" id="reset" type="submit">[[reset_password:reset_password]]</button>
</form>
</div>
<input type="hidden" template-variable="reset_code" value="{reset_code}" />
<!-- IMPORT partials/variables/reset_code.tpl -->
<!-- ELSE -->
<div class="panel panel-default panel-danger">
<div class="panel-heading">

@ -1,6 +1,3 @@
<input type="hidden" template-variable="tag" value="{tag}" />
<div class="tag">
<!-- IMPORT partials/breadcrumbs.tpl -->
@ -16,4 +13,6 @@
<button id="load-more-btn" class="btn btn-primary hide">[[unread:load_more]]</button>
</div>
</div>
</div>
</div>
<!-- IMPORT partials/variables/tag.tpl -->

@ -1,15 +1,3 @@
<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}" />
<div class="topic">
<!-- IMPORT partials/breadcrumbs.tpl -->
@ -179,4 +167,5 @@
<div widget-area="footer" class="col-xs-12"></div>
<!-- IMPORT partials/noscript/paginator.tpl -->
<!-- IMPORT partials/noscript/paginator.tpl -->
<!-- IMPORT partials/variables/topic.tpl -->
Loading…
Cancel
Save