<tal:block
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  i18n:domain="silva">
<div class="publisher">
  <form class="publisher" method="post"
    tal:attributes="action context/absolute_url">
    <tal:block condition="view/getBackUrl">
      <input class="transport back"
        type="button"
        value="&lt;"
        title="back: alt-b"
        accesskey="b"
        tal:attributes="onclick python:'window.location = \'%s\'' % view.getBackUrl()"
        i18n:attributes="title"
      />
    </tal:block>
    <tal:block condition="not:view/getBackUrl">
      <input class="transport back"
        type="button"
        value="&lt;"
        title="back: alt-b"
        accesskey="b"
        onclick="history.back()"
        i18n:attributes="title"
      />
    </tal:block>
    <input class="executor publish"
      name="preview_publish_now:method"
      type="submit"
      value="publish now"
      title="publish this document immediately: alt-p"
      accesskey="p"
      tal:condition="python: view.isUnapproved() and not view.getMessage()"
      i18n:attributes="value;title"
    />
  </form>
  <div class="published"
    tal:define="message view/getMessage"
    tal:condition="message">
    <span tal:define="css_class view/getMessageType"
      tal:attributes="class python:css_class == 'error' and 'error' or nothing">
      <a style="text-decoration:none"
        title="Go to the public version: acc-g"
        accesskey="g"
        tal:attributes="href context/absolute_url"
        tal:omit-tag="python:css_class == 'error'"
        i18n:translate="">
        <tal:plug content="message" />
      </a>
    </span>
  </div>
</div>
</tal:block>
