discourse-legacysite-perl/site/forum/include_post_toolbar.html

28 lines
1.6 KiB
HTML
Raw Normal View History

2024-06-17 12:24:05 +00:00
<%~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="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%>