<!--                                                                  -->
<!--  Copyright (C) 2009 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn">
    <xsl:output method="html" indent="no" doctype-system="" encoding="utf-8" />

    <xsl:template name="dashboardTasks">
        <xsl:param name="module" />
        <xsl:param name="title" />
        <h2><xsl:value-of select="$title" /></h2>
        <ul class="Dashboard-list Dashboard-list-vertical">
            <xsl:if test="Access/bookpub/tracker/main">
                <li class="Dashboard-list-item" id="jobqueueLink">
                    <div class="Dashboard-list-item-wrapper">
                        <a class="Dashboard-list-item-link" href="/bookpub/tracker">
                            <div class="Dashboard-list-item-icon">
                                <xsl:call-template name="icon">
                                    <xsl:with-param name="type" select="'pic-manage-revenue-file'" />
                                    <xsl:with-param name="role" select="'pic'" />
                                </xsl:call-template>
                            </div>
                            <h3 class="Dashboard-list-item-title">Manage Revenue Files</h3>
                        </a>
                        <span class="Dashboard-list-item-subtle">Upload sales files for catalog<br />auto-matching.</span>
                    </div>
                </li>
            </xsl:if>
            <xsl:if test="Access/bookpub/catalog/main">
                <li class="Dashboard-list-item" id="jobqueueLink">
                    <div class="Dashboard-list-item-wrapper">
                        <a class="Dashboard-list-item-link" href="/bookpub/catalog">
                            <div class="Dashboard-list-item-icon">
                                <xsl:call-template name="icon">
                                    <xsl:with-param name="type" select="'pic-catalog-book'" />
                                    <xsl:with-param name="role" select="'pic'" />
                                </xsl:call-template>
                            </div>
                            <h3 class="Dashboard-list-item-title">Maintain Catalog</h3>
                        </a>
                        <span class="Dashboard-list-item-subtle">Maintain catalog metadata.</span>
                    </div>
                </li>
            </xsl:if>
            <xsl:if test="Access/bookpub/admin/main">
                <li class="Dashboard-list-item" id="jobqueueLink">
                    <div class="Dashboard-list-item-wrapper">
                        <a class="Dashboard-list-item-link" href="/bookpub/admin">
                            <div class="Dashboard-list-item-icon">
                                <xsl:call-template name="icon">
                                    <xsl:with-param name="type" select="'pic-settings'" />
                                    <xsl:with-param name="role" select="'pic'" />
                                </xsl:call-template>
                            </div>
                            <h3 class="Dashboard-list-item-title">Administrative Options</h3>
                        </a>
                        <span class="Dashboard-list-item-subtle">Access options and administrative<br />features.</span>
                    </div>
                </li>
            </xsl:if>
        </ul>
    </xsl:template>

</xsl:stylesheet>
