summaryrefslogtreecommitdiff
path: root/templates/contact_action_bar.tpl
blob: 9a11779e9c1253830dfeed8c883fd5bec8ac9934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div class="navbar">
	{if $show_page eq 'y'}
		{if $gBitSystem->isFeatureActive('contact_attachments')}
			{if $gBitUser->hasPermission('p_contact_view_attachments') || $gBitUser->hasPermission('p_contact_admin_attachments') || $gBitUser->hasPermission('p_contact_attach_files')}
				<a href="javascript:document.location='#attachments';flip('attzone{if $atts_show eq 'y'}open{/if}');">{if $atts_count eq 0}{tr}attach file{/tr}{elseif $atts_count eq 1}{tr}1 attachment{/tr}{else}{$atts_count} {tr}attachments{/tr}{/if}</a>
			{else}
				{if $atts_count eq 1}{tr}1&nbsp;attachment{/tr}{else}{$atts_count}&nbsp;{tr}attachments{/tr}{/if}
			{/if}
		{/if}
	{/if}
</div>

{if $gBitSystem->isFeatureActive('contact_comments')}
<div class="navbar comment">
	{if $comments_cant > 0}
		<a href="javascript:document.location='#comments';flip('comzone{if $comments_show eq 'y'}open{/if}');">{if $comments_cant eq 1}{tr}1 comment{/tr}{else}{$comments_cant} {tr}comments{/tr}{/if}</a>
	{else}
		<a href="javascript:document.location='#comments';flip('comzone{if $comments_show eq 'y'}open{/if}');">{tr}comment{/tr}</a>
	{/if}
</div>
{/if}