discourse-legacysite-perl/site/forum/local/include_post_toolbar.html
2024-06-17 22:24:05 +10:00

34 lines
1.7 KiB
HTML

<%~set toolbar_id += 1~%>
<%if toolbar_id == 1%>
<div class="btn-wrapper clearfix">
<a href="<%GForum::SEO::url(params => "do=forum_view&forum=$forum_id")%>" class="btn default">Back To Forum</a>
<%~if current.user_id~%>
<a class="btn default" href="<%GForum::SEO::url(params => "do=watch_thread;thread=$root_post_id")%>" rel="post-only">Watch Thread</a><%~%>
<%~endif~%>
<a class="sprite-printer" href="<%GForum::SEO::url(params => "do=post_view_printable;post=$root_post_id")%>" target="_blank" onclick="return winopen('<%GForum::SEO::url(params => "do=post_view_printable;post=$root_post_id")%>', '<%root_post_id%>print')" rel="nofollow">Print Thread</a>
</div>
<%else%>
<form action="<%GForum::SEO::url()%>" method="post" id="toolbar_form">
<%hidden_form%>
</form>
<div id="toolbar<%toolbar_id%>" class="toolbar clearfix">
<hr class="line" />
<%~if num_posts > $mh%>
<%include include_paging.html%>
<%~endif%>
<div class="adbox">
<div class="adhori">
<%~set adsize = '728x90'%>
<%include include_ad.html%>
</div>
</div>
<div class="btn-wrapper clearfix">
<a href="<%GForum::SEO::url(params => "do=forum_view&forum=$forum_id")%>" class="btn default">Back To Forum</a>
<%~if current.user_id~%>
<a class="btn default" href="<%GForum::SEO::url(params => "do=watch_thread;thread=$root_post_id")%>" rel="post-only">Watch Thread</a><%~%>
<%~endif~%>
<a class="sprite-printer" href="<%GForum::SEO::url(params => "do=post_view_printable;post=$root_post_id")%>" target="_blank" onclick="return winopen('<%GForum::SEO::url(params => "do=post_view_printable;post=$root_post_id")%>', '<%root_post_id%>print')" rel="nofollow">Print Thread</a>
</div>
</div>
<%~endif%>