<a class="follow pat-inject"
   href="${context/absolute_url}${url_param}"
   data-pat-inject="history: record; source: #portal-content-pane; target: ${python: '#magazine-preview' if in_publisher else '#portal-content-pane'}"
   tal:define="
     hide_category options/hide_category|python:True;
     scale options/scale|string:mini;
     show_descriptions options/show_descriptions|python:True;
     show_images options/show_images|python:True;
     placeholder_size python: scale == 'large' and '21' or '16';
     in_publisher request/in_publisher | nothing;
     url_param python:'?in_publisher=1' if in_publisher else None;
   "
   i18n:domain="ploneintranet"
>
  <figure class="branded ${python:'has-no-image' if not context.image else ''}"
          tal:condition="python: show_images and context.magazine_image"
  >
    <img class="illustration"
         alt=""
         src="${view/portal_url}/++theme++ploneintranet.theme/generated/assets/quaive/placeholders/placeholder-${placeholder_size}x9.png"
         style="${python:view.get_img_style(scale)}"
    />
  </figure>
  <div class="teaser"
       tal:define="
         number_statusupdates view/number_statusupdates;
       "
  >
    <h3 class="title">
      <strong class="category"
              tal:condition="not:hide_category"
      >${view/category}</strong>
      <em class="comment-count"
          tal:condition="number_statusupdates"
      >${number_statusupdates}</em>
      ${here/title}
    </h3>
    <p class="byline">
      <time datetime="${view/date}"
            tal:condition="here/effective_date|nothing"
      >${view/date}</time>
    </p>
    <p class="description"
       tal:condition="show_descriptions"
    >${view/description}
      <strong i18n:translate="read-more">Read more...</strong>
    </p>
  </div>
</a>
<tal:proto condition="nothing">
  <!-- Disabled to improve speed -->
  <a class="edit-button iconified"
     href="${context/absolute_url}/edit.html"
     tal:condition="view/can_edit"
  >[<tal:i18n i18n:translate="">Edit</tal:i18n>]</a>
</tal:proto>
