andey/bestofama

View on GitHub
app/views/ops/_snippet.html.slim

Summary

Maintainability
Test Coverage
= link_to op_path(op), :class => 'list-group-item', :itemscope => 'itemscope', :itemtype => "http://schema.org/Person", :itemprop => 'url' do
  .row.op-snippet
    - if op.avatar_file_size
      .col-xs-2.col-sm-2.col-md-2.col-lg-2.op-avatar.text-center
        //= image_tag op.avatar.url(:thumb), :class => 'img-rounded op-avatar', :itemprop => 'image'

    .col-xs-10.col-sm-10.col-md-10.col-lg-10
      h4.list-group-item-heading itemprop='name'
        = op.name
      p.text-muted
        = op.content