#!/bin/sh -ef 

. /usr/share/alterator/build/backend3.sh

on_message()
{
	case "$in_action" in
		#information for renderer
		template)
			echo '('
			echo ' translate "alterator-samba"'
			echo ' template "form" '
			if [ "${in__objects%%/*}" = "shares" ];then
				echo ' url "samba-share.html"'
#				echo ' redirect #f'
				echo ' redirect "/samba"'
			else
				echo ' url "samba-list.html"'
			fi
			echo ')'
			;;
		*)
			echo '#f'
			;;
	esac
}


message_loop
