{{#if loggedIn}}
  <div class="u-user-role--subscribed">
{{else}}
  <div class="u-user-role--anonymous">
{{/if}}

{{#if adv}}
  <div class="c-article-meta c-article-meta--adv">
{{else}}
  <div class="c-article-meta">
{{/if}}
  {{#if image}}
    <div class="o-media">
      <div class="o-media__media">
        <div class="c-article-meta__image c-article-meta__image--small">
          <a class="c-article-meta__image-link" href="#">
            {{> image image}}
          </a>
        </div>
      </div>
      <div class="o-media__body">
  {{/if}}

  {{#if bylines}}
    <div class="c-article-meta__bylines">
      {{#each bylines}}
        {{#ifCond ../bylines.length ">" 1}}
          {{#if @last}}
            and {{> byline this}}
          {{else}}
            {{#ifSecondLast @index ../bylines.length}}
              {{> byline this}}
            {{else}}
              {{> byline this}},
            {{/ifSecondLast}}
          {{/if}}
        {{else}}
          {{> byline this}}
        {{/ifCond}}
      {{/each}}
    </div>
  {{/if}}

  {{#if beats}}
    <div class="c-article-meta__beats">
      {{#each beats}}
        {{> beat this}}
      {{/each}}
    </div>
  {{/if}}

  {{#if authorInfo}}
    {{#each authorInfo}}
      <div class="c-article-meta__author-info">
        {{#if byline}}
          {{> byline this}}
        {{/if}}
        {{#if beat}}
          {{> beat this}}
        {{/if}}
      </div>
    {{/each}}
  {{/if}}

  {{#if placelines}}
    <div class="c-article-meta__placelines">
      {{#each placelines}}
        {{> placeline this}}
      {{/each}}
    </div>
  {{/if}}

  {{#if creditlines}}
    <div class="c-article-meta__creditlines">
      {{#each creditlines}}
        {{> creditline this}}
      {{/each}}
    </div>
  {{/if}}

  {{#if timestamps}}
    {{#unless outdated}}
      <div class="c-article-meta__timestamps">
        {{#each timestamps}}
          {{> timestamp timestamp=this}}
        {{/each}}
      </div>
    {{/unless}}
  {{/if}}

  <div class="c-article-meta__subscribers">
    {{#if forSubscribersMessage}}
      <div class="c-article-meta__subscribed">For Subscribers</div>
    {{/if}}
  </div>

  {{#if canpro}}
    <div class="c-article-meta__canpro">For Cannabis Professional Subscribers</div>
  {{/if}}

  {{#if image}}
      </div>
    </div>
  {{/if}}

  {{#if timestamps}}
    {{#if outdated}}
      <div class="c-article-meta__timestamps c-article-meta__timestamps--outdated">
        {{#each timestamps}}
          {{> timestamp timestamp=this}}
        {{/each}}
        <p class="c-article-meta__outdated-message">{{outdatedText}}</p>
      </div>
    {{/if}}
  {{/if}}

  {{#if actions}}
    <div class="c-article-meta__actions">
      {{#if actions.comments}}
        <div class="c-article-meta__actions__comments">
          {{> button commentsButton}}
        </div>
      {{/if}}

      {{#if actions.share}}
        <div class="c-article-meta__actions__share">
          {{> button shareDropdownTrigger}}
          {{#if shareDropdown}}
            {{> dropdown-menu shareDropdown}}
          {{/if}}
        </div>
      {{/if}}

      {{#if actions.bookmarks}}
        <div class="c-article-meta__actions__bookmark">
          {{> button bookmarkDropdownTrigger}}
          {{#if bookmarkDropdown}}
            {{> dropdown-menu bookmarkDropdown}}
          {{/if}}
          {{#if alert}}
            {{> website-alert this}}
          {{/if}}
        </div>
      {{/if}}

      {{#if actions.audio}}
        <div class="c-article-meta__actions__audio">
          {{> button audioDropdownTrigger}}
          {{#if audioDropdown}}
            {{> dropdown-menu audioDropdown}}
          {{/if}}
        </div>
      {{/if}}
    </div>
  {{/if}}
</div>
