<a class="follow pat-inject"
   href="${context/absolute_url}/@@promo#magazine-content"
   data-pat-inject="history: record; source: #magazine-content::element; target: #magazine-content::element"
   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';
   "
   tal:attributes="
     title view/description;
   "
   i18n:domain="ploneintranet"
>
  <figure class="branded ${python:'has-no-image' if not context.image else ''}"
          tal:condition="python: show_images"
  >
    <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) if context.image else None}"
    />
  </figure>
  <div class="teaser"
       tal:define="
         number_statusupdates view/number_statusupdates;
       "
  >
    <h3 class="title">
      <em class="comment-count"
          tal:condition="number_statusupdates"
      >${number_statusupdates}</em>
      ${here/title}
    </h3>
    <time class="event-date"
          tal:define="
            start here/start;
            display_month python:'{0:%b}'.format(start);
          "
    >
      <span class="month">${display_month}</span>
      <span class="day">${start/day}</span>
    </time>
    <p class="byline">${here/location}</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>
