<?xml version="1.0" encoding="utf-8"?>

<feed xmlns="http://www.w3.org/2005/Atom">
#set($listAction = $link.setRelative('/search'))
#prepareSearchTaskAction($listAction $taskQuery $taskPager)
#set($atomAction = $link.setAction('/atom/searchLatest'))
#prepareSearchTaskAction($atomAction $taskQuery $taskPager)
	<title>WorkStyle</title>
	<link href="$request.scheme://$request.serverName:$request.serverPort$listAction"/>
	<link rel="self" type="application/atom+xml" href="$request.scheme://$request.serverName:$request.serverPort$atomAction" />
#if($taskList.size() > 0)
#set ($lastIndex = $taskList.size() - 1)
#set ($updateDate = $taskList.get($lastIndex).updateDate)
#end
	<updated>$utils.formatDateRss($updateDate)</updated>
	<author><name>undefined</name></author>
	<id>$request.scheme://$request.serverName:$request.serverPort$listAction</id>
#foreach($task in $taskList)
#set ($viewAction = $link.setAction('/view').addQueryData('taskId', $task.taskId))
	<entry>
		<title>$task.taskId $utils.cut($task.contents, 30)</title>
		<link href="$request.scheme://$request.serverName:$request.serverPort$viewAction"/>
		<id>$request.scheme://$request.serverName:$request.serverPort$viewAction</id>
		<updated>$utils.formatDateRss($task.updateDate)</updated>
		<content type="xhtml" xml:lang="ja-jp" xml:base="$request.scheme://$request.serverName:$request.serverPort$request.contextPath">
			<div xmlns="http://www.w3.org/1999/xhtml">
				<p>
				<img src="$request.scheme://$request.serverName:$request.serverPort$request.contextPath/resources/skin/default/image/icon/$utils.image($task.statusBean.image, 48)" style="float:left; margin:8px;"/> 
#set ($tagList = $task.tagAsList)
				<ul style="line-height: 2em;list-style: none;">
#foreach($tag in $tagList)
					<li style="background-color: #EEEEEE;border: 1px solid #DDDDDD;display: inline;padding: 1px;margin-right: 4px;padding: 2px;font-weight: normal;font-size: small;">
						$tag
					</li>
#end
				</ul>
				$utils.formatHtmlSimple($task.contents)
				</p>
			</div>
		</content>
	</entry>
#end
</feed>
