Source

Payday Loan Shark / templates / donate.haml

Full commit
.none{ 'ng-hide' => 'loans' }
  %h2 There are no loans needed right now. 
  Thanks for checking. Please check back later.



.donate{ 'ng-show' => 'loans' }
  .search
    .form{ role: 'form' }
      .form-group
        %input.form-control{ type: 'text', placeholder: 'Search for loans...', id: 'search', 'ng-model' => 'search', 'clear-search' => true }    

  .loan{ 'ng-repeat' => 'loan in loans | filter:search | orderBy:"created_at":true ', 'ng-class' => '{ "odd" : $index%2==0, "even" : $index%2!=0 }' } 
    %h2 {{ loan.loanee }}
    .description{ 'ng-bind-html' => 'markified( loan.description )' }
    .sponsor{ 'ng-show' => 'loan.sponsor' } Sponsored by {{ loan.sponsor }}
    == ${{ loan.amount }} requested.
    {{ loan.progress }}% of loan pledged.
    %progressbar{ value: 'loan.progress' }
    %div{ 'ng-bind-html' => 'loan.button_code' }
    %small {{ loan.code }}