#!/bin/sh 

_()
{
LANG=${in_language%%;*}.utf8 gettext "alterator-users" "$1"
}

#turn off auto expansion
set -f

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

on_message()
{
	case "$in_action" in
		#information for renderer
		template)
			if [ "$in__objects" = "/" ];then
				echo '('
				echo ' template "card-index"'
				echo ' url "users.html"'
				echo ' help "users.html"'
				echo ')'
			else
				echo '#f'
			fi
			;;
		info)
			echo '('
			printf ' title "%s"' "`_ "User accounts"`"
			printf ' description "%s"' "`_ "System users administration"`"
			printf ' group "%s"' "`_ "Users"`"
			printf ' weight 100'
			echo ')'
			;;
		*)
			echo '#f'
	esac
}


message_loop

