Created
          April 7, 2015 20:09 
        
      - 
      
- 
        Save Nav-Appaiya/530e87348da4b51517fe to your computer and use it in GitHub Desktop. 
    2 column twig loop using twig's batch loop
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | {% for row in badges|batch(2) %} | |
| <div clas="row"> | |
| {% for badge in row %} | |
| <div class="col-md-6"> | |
| <img src="{{ badge.imageUrl }}" alt="badge" class="badges img-responsive pull-left"/> | |
| <blockquote class="pull-left"> | |
| <h3>{{ badge.assertion.badge.name }}</h3> | |
| <p>{{ badge.assertion.badge.description }}</p> | |
| <small>Achieved on {{ badge.assertion.issued_on }}</small> | |
| </blockquote> | |
| </div> | |
| {% endfor %} | |
| </div> | |
| {% endfor %} | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment