%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"top:toolbarbutton_edit"}%<span>
	<a class='foswikiRequiresChangePermission' href='%SCRIPTURLPATH{"edit"}%/%WEB%/%TOPIC%?t=%GMTIME{"$epoch"}%' title='%MAKETEXT{"Edit this topic text (e)"}%'>
		<img alt='%MAKETEXT{"Edit this topic text (e)"}%' src='%PUBURLPATH%/%SYSTEMWEB%/FamFamFamSilkIcons/pencil.png' width='16' height='16' />
	</a></span>%TMPL:END%

%TMPL:DEF{"top:toolbarbutton_attach"}%<span>
	<a class='foswikiRequiresChangePermission' href='%SCRIPTURLPATH{"attach"}%/%WEB%/%TOPIC%' title='%MAKETEXT{"Attach an image or document to this topic; manage existing attachments (a)"}%'>
		<img alt='%MAKETEXT{"Attach an image or document to this topic; manage existing attachments (a)"}%' src='%PUBURLPATH%/%SYSTEMWEB%/FamFamFamSilkIcons/attach.png' width='16' height='16' />
	</a></span>%TMPL:END%
	
%TMPL:DEF{"top:toolbarbutton_subscribe"}%<span>
    %SUBSCRIBE{render="icon" format="<a href='#' class='subscribe_link' data-topic='$topic' data-subscriber='$subscriber' data-remove='$remove' data-validation-key='?$nonce' rel='nofollow' title='%MAKETEXT{"Subscribe to this topic (s)"}%'>
        <img alt='%MAKETEXT{"Subscribe to this topic (s)"}%' src='%PUBURLPATH%/%SYSTEMWEB%/DocumentGraphics/notify.png' width='16' height='16' />
    </a>" formatunsubscribe="<a href='#' class='subscribe_link' data-topic='$topic' data-subscriber='$subscriber' data-remove='$remove' data-validation-key='?$nonce' rel='nofollow' title='%MAKETEXT{"Unsubscribe from this topic (s)"}%'>
        <img alt='%MAKETEXT{"Unsubscribe from this topic (s)"}%' src='%PUBURLPATH%/%SYSTEMWEB%/DocumentGraphics/notify.png' width='16' height='16' />
    </a>"}%</span>%TMPL:END%

%TMPL:DEF{"top:toolbarbutton_rdiff"}%<span>
	<a href='%SCRIPTURLPATH{"rdiff"}%/%WEB%/%TOPIC%?type=history' title='%MAKETEXT{"View sequential topic history"}%'>
		<img alt='%MAKETEXT{"View sequential topic history"}%' src='%PUBURLPATH%/%SYSTEMWEB%/FamFamFamSilkIcons/page_white_stack.png' width='16' height='16' />
	</a></span>%TMPL:END%

%TMPL:DEF{"top:toolbarbutton_raw"}%<span>
	<a href='%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?raw=on&rev=%REVINFO{"$rev"}%' title='%MAKETEXT{"View without formatting (v)"}%'>
		<img alt='%MAKETEXT{"View without formatting (v)"}%' src='%PUBURLPATH%/%SYSTEMWEB%/FamFamFamSilkIcons/text_align_left.png' width='16' height='16' />
	</a></span>%TMPL:END%

%TMPL:DEF{"top:toolbarbutton_create"}%<span>
	<a class='foswikiRequiresChangePermission' href='%SCRIPTURLPATH{"view"}%/%WEB%/WebCreateNewTopic?topicparent=%TOPIC%' title='%MAKETEXT{"Create new topic"}%'>
		<img alt='%MAKETEXT{"Create new topic"}%' src='%PUBURLPATH%/%SYSTEMWEB%/FamFamFamSilkIcons/page_white_add.png' width='16' height='16' />
	</a></span>%TMPL:END%

%TMPL:DEF{"top:toolbarbutton_print"}%<span>
	<a href='%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?cover=print;%QUERYSTRING%' title='%MAKETEXT{"Printable version of this topic (p)"}%'>
		<img alt='%MAKETEXT{"Printable version of this topic (p)"}%' src='%PUBURLPATH%/%SYSTEMWEB%/FamFamFamSilkIcons/printer.png' width='16' height='16' />
	</a></span>%TMPL:END%

%TMPL:DEF{"top:toolbarbutton_more"}%<span>
        <a href='%SCRIPTURLPATH{"oops"}%/%WEB%/%TOPIC%?template=more&currrev=%REVINFO{"$rev"}%' title='%MAKETEXT{"More: delete or rename this topic; set parent topic; view and compare revisions (m)"}%'>
                <img alt='%MAKETEXT{"More: delete or rename this topic; set parent topic; view and compare revisions (m)"}%' src='%PUBURLPATH%/%SYSTEMWEB%/FamFamFamSilkIcons/wrench.png' width='16' height='16' />
	</a></span>%TMPL:END%

%TMPL:DEF{"top:toolbarbuttons_inner"}%		%TMPL:P{
			"top:toolbarbutton_edit"
		}%%TMPL:P{
			"top:toolbarbutton_attach"
		}%%TMPL:P{
			context="SubscribePluginAllowed" then="top:toolbarbutton_subscribe"
		}%%TMPL:P{
			"top:toolbarbutton_rdiff"
		}%%TMPL:P{
			"top:toolbarbutton_raw"
		}%%TMPL:P{
			"top:toolbarbutton_create"
		}%%TMPL:P{
			"top:toolbarbutton_print"
		}%%TMPL:P{
			"top:toolbarbutton_more"
		}% %TMPL:END%

%TMPL:DEF{"authenticatedClass"}% foswikiAuthenticated%TMPL:END%
%TMPL:DEF{"unauthenticatedClass"}% foswikiUnauthenticated%TMPL:END%

%TMPL:DEF{"top:toolbarbuttons"}%<span class='foswikiToolBar foswikiRight%TMPL:P{context="authenticated" then="authenticatedClass" else="unauthenticatedClass"}%'>
%TMPL:P{"top:toolbarbuttons_inner"}%
		</span>%TMPL:END% 
