<tal:page i18n:domain="ploneintranet" tal:condition="view/available">
  <a id="download_list_link"
     class="icon-download ${view/action_class} pat-inject"
     href="${here/absolute_url}/${view/__name__}?action=${view/action}&amp;_authenticator=${context/@@authenticator/token}"
     title="${view/action_title} Remove this libary item from your download list"
     data-pat-inject="#download_list_link::element &amp;&amp; #global-statusmessage; loading-class: \'\';"
     i18n:translate=""
  >On download list</a>
  <div id="global-statusmessage"
        tal:define="action request/action|nothing"
       tal:condition="action"
  >
    <p class="pat-notification"
        data-pat-notification="class: ${python: 'success' if action == 'add' else 'warning'}; type: banner"
        tal:condition="request/action|nothing"
        tal:switch="request/action"
    ><tal:label i18n:translate="" case="string:add">This library item has been added to your
        <tal:name i18n:name="download_list">
            <a href="${view/library_url}/@@panel-download-library-content#document-content"
                data-pat-modal="panel-header-content: none"
                class="icon download pat-modal"
                title="Download a selection of content"
                i18n:attributes="title"
                i18n:translate="">download list</a></tal:name>.</tal:label
    ><tal:label i18n:translate="" case="string:remove">This library item has been removed from your
            <tal:name i18n:name="download_list">
                <a href="${view/library_url}/@@panel-download-library-content#document-content"
                data-pat-modal="panel-header-content: none"
                class="icon download pat-modal"
                title="Download a selection of content"
                i18n:attributes="title"
                i18n:translate="">download list</a></tal:name>.</tal:label
    >
    </p>
  </div>

</tal:page>
