nick4fake

Untitled

Dec 15th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.65 KB | None | 0 0
  1. <div class="currency" id="currency">
  2.   {% for type in types %}
  3.     {% set list = direction.currencies.byType(type).toArray %}
  4.     {% if list|length > 0 %}
  5.     <div class="layout">
  6.       <div class="title">{{ type.title }}</div>
  7.       {% for dir in ['from', 'to'] %}
  8.         <ul class="currency-{{ dir }}">
  9.           {% for currency in list %}
  10.           <li>
  11.             <a href="{{ direction.getPathDir(currency, dir) }}">
  12.               <span>{{ currency.system }}</span>
  13.               {{ currency.base }}
  14.             </a>
  15.           </li>
  16.           {% endfor %}
  17.         </ul>
  18.       {% endfor %}
  19.     </div>
  20.     {% endif %}
  21.   {% endfor %}
  22. </div>
Advertisement
Add Comment
Please, Sign In to add comment