hummingbird-me/hummingbird

View on GitHub
frontend/app/templates/header/notifications.hbs

Summary

Maintainability
Test Coverage
<li class='dropdown header-item notifications'>
  <a {{bind-attr class="dropdown-toggle :notification-link hasUnreadNotifications:hasNew:hasNoNew"}} data-toggle='dropdown' href='#'>
    <i {{bind-attr class=':fa :fa-bell :active'}}>
      {{#if hasUnreadNotifications}}
        {{unreadNotificationsCount}}
      {{/if}}
    </i>
  </a>
  <ul class='dropdown-menu notification-dropdown right-nav-section'>
    {{#each limitedNotifications as |notification|}}
      {{partial "notification"}}
    {{else}}
      <li class="no-notifications">
        <span>You don't have any notifications yet.</span>
      </li>
    {{/each}}
    <li class="view-all">
      {{#link-to 'notifications'}}View All Notifications{{/link-to}}
    </li>
  </ul>
</li>