Guest User

example.html.twig

a guest
Jun 1st, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.11 KB | None | 0 0
  1. {% trans_default_domain "TextReport" %}
  2.  
  3. <div class="page add-block-controls" id="text-rpt">
  4.     <div class="container-fluid">
  5.         <div data-editable>
  6.             <h1>Text Report</h1>
  7.         </div>
  8.         <div class="row">
  9.             <div data-editable>
  10.                 <h3>{{ 'TextReport.maintable.title'|trans }}</h3>
  11.             </div>
  12.             <div data-editable>
  13.                 <table class="table table-striped table-fixed-layout">
  14.                     <col width="65">
  15.                     <col width="35">
  16.                     <thead>
  17.                         <tr>
  18.                             <th>{{ 'TextReport.table2.col.url'|trans }}</th>
  19.                             <th>{{ 'TextReport.table2.col.keywords'|trans }}</th>
  20.                         </tr>
  21.                     </thead>
  22.                     <tbody>
  23.                         {% for page in tables.main %}
  24.                             <tr>
  25.                                 <td>{{ page.url|cut_url_shceme }}</td>
  26.                                 <td>
  27.                                     <ul class="unspace">
  28.                                         {% for word, count in page.blocks.body.density.oneWords.words|slice(0, 5) %}
  29.                                             <li>
  30.                                                 <p><b>{{ word }}</b>, {{ 'TextReport.table2.body.count'|trans }} {{ count }} ({{ ((count / page.blocks.body.density.oneWords.total) * 100)|space_number_format }}%)</p>
  31.                                             </li>
  32.                                         {% endfor %}
  33.                                     </ul>
  34.                                 </td>
  35.                             </tr>
  36.                         {% endfor %}
  37.                         {% if tables.main|length == 0 %}
  38.                             <tr>
  39.                                 <td colspan="2" class="text-center">{{ "Private.table.control.emptyTable"|trans({}, "Private") }}</td>
  40.                             </tr>
  41.                         {% endif %}
  42.                     </tbody>
  43.                 </table>
  44.             </div>
  45.         </div>
  46.     </div>
  47. </div>
Advertisement
Add Comment
Please, Sign In to add comment