Mercurial > hg > isophonics-drupal-site
annotate core/modules/system/templates/progress-bar.html.twig @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 {# |
Chris@0 | 2 /** |
Chris@0 | 3 * @file |
Chris@0 | 4 * Default theme implementation for a progress bar. |
Chris@0 | 5 * |
Chris@0 | 6 * Note that the core Batch API uses this only for non-JavaScript batch jobs. |
Chris@0 | 7 * |
Chris@0 | 8 * Available variables: |
Chris@0 | 9 * - label: The label of the working task. |
Chris@0 | 10 * - percent: The percentage of the progress. |
Chris@0 | 11 * - message: A string containing information to be displayed. |
Chris@0 | 12 * |
Chris@0 | 13 * @ingroup themeable |
Chris@0 | 14 */ |
Chris@0 | 15 #} |
Chris@0 | 16 <div class="progress" data-drupal-progress> |
Chris@0 | 17 {% if label %} |
Chris@0 | 18 <div class="progress__label">{{ label }}</div> |
Chris@0 | 19 {% endif %} |
Chris@0 | 20 <div class="progress__track"><div class="progress__bar" style="width: {{ percent }}%"></div></div> |
Chris@0 | 21 <div class="progress__percentage">{{ percent }}%</div> |
Chris@0 | 22 <div class="progress__description">{{ message }}</div> |
Chris@0 | 23 </div> |