hummingbird-me/hummingbird

View on GitHub
app/assets/javascripts/old/templates/library/entry.hamlbars

Summary

Maintainability
Test Coverage
%td.library-item-title{:width => "495"}
  .relative-wrapper
    {{anime.title}}

    {{#private}}
    %span.item-indicator
      ⋅
      %i.fa.fa-eye-slash
    {{/private}}

    {{#notes_present}}
    %span.item-indicator
      ⋅
      %i.fa.fa-book.tip-right(data-tooltip title="{{notes}}")
    {{/notes_present}}

    {{#rewatching}}
    %span.item-indicator
      ⋅
      %i.fa.fa-repeat
    {{/rewatching}}

    {{#if anime.status}}
    %span.airing-status
      ⋅
      %span.label.radius.secondary {{anime.status}}
    {{/if}}

    %i.fa.fa-bars

%td.episode-count{:width => "95"}
  .relative-wrapper.episode-count

%td{:width => "76"} 
  %span.select
    {{#rating.type.star_rating}}
    %i.fa.fa-star
    {{#if rating.value}}
    {{rating.value}}
    {{/if}}
    {{^rating.value}}
    \-
    {{/rating.value}}
    {{/rating.type.star_rating}}

    {{#rating.type.simple}}
    {{#if rating.value}}
    {{#rating.positive}}
    %span.positive-smiley :)
    {{/rating.positive}}
    {{#rating.neutral}}
    %span.neutral-smiley :|
    {{/rating.neutral}}
    {{#rating.negative}}
    %span.negative-smiley :(
    {{/rating.negative}}
    {{/if}}
    {{^rating.value}}
    %span.unknown-smiley --
    {{/rating.value}}
    {{/rating.type.simple}}

%td.show-type{:width => "65"} {{anime.show_type}}