block--quisuisje.html.twig 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a block.
  5. *
  6. * Available variables:
  7. * - plugin_id: The ID of the block implementation.
  8. * - label: The configured label of the block if visible.
  9. * - configuration: A list of the block's configuration values.
  10. * - label: The configured label for the block.
  11. * - label_display: The display settings for the label.
  12. * - provider: The module or other provider that provided this block plugin.
  13. * - Block plugin specific settings will also be stored here.
  14. * - content: The content of this block.
  15. * - attributes: array of HTML attributes populated by modules, intended to
  16. * be added to the main container tag of this template.
  17. * - id: A valid HTML ID and guaranteed unique.
  18. * - title_attributes: Same as attributes, except applied to the main title
  19. * tag that appears in the template.
  20. * - title_prefix: Additional output populated by modules, intended to be
  21. * displayed in front of the main title tag that appears in the template.
  22. * - title_suffix: Additional output populated by modules, intended to be
  23. * displayed after the main title tag that appears in the template.
  24. *
  25. * @see template_preprocess_block()
  26. */
  27. #}
  28. <div{{ attributes }}>
  29. {{ title_prefix }}
  30. {% if label %}
  31. <h2{{ title_attributes }}>{{ label }}</h2>
  32. {% endif %}
  33. {{ title_suffix }}
  34. {% block content %}
  35. <div class="panel-body"></div>
  36. <table class="table">
  37. <tr>
  38. <th scope="col">{{ "Property"|t }}</th>
  39. <th scope="col">{{ "Value"|t }}</th>
  40. </tr>
  41. <tr>
  42. <th>{{ "Id"|t }}</th>
  43. <td>{{ user.id }}</td>
  44. </tr>
  45. <tr>
  46. <th>{{ "Name"|t }}</th>
  47. <td>{{ user.getAccountName }}</td>
  48. </tr>
  49. <tr>
  50. <th>{{ "Display Name"|t }}</th>
  51. <td>{{ user.getDisplayName }}</td>
  52. </tr>
  53. <tr>
  54. <th>{{ "Email"|t }}</th>
  55. <td>{{ user.getEmail }}</td>
  56. </tr>
  57. <tr>
  58. <th>{{ "Language"|t }}</th>
  59. <td>{{ user.getPreferredLangcode }}</td>
  60. </tr>
  61. <tr>
  62. <th>{{ "Last access time"|t }}</th>
  63. <td>{{ user.getLastAccessedTime | format_date('medium') }}</td>
  64. </tr>
  65. <tr>
  66. <th>{{ "Roles"|t }}</th>
  67. <td>
  68. <ul>
  69. {% for role in user.getRoles(true) %}
  70. <li>
  71. {{ role }}
  72. </li>
  73. {% endfor %}
  74. </ul>
  75. </td>
  76. </tr>
  77. <tr>
  78. <th>{{ "Time zone"|t }}</th>
  79. <td>{{ user.getTimeZone }}</td>
  80. </tr>
  81. <tr>
  82. <th>{{ "Username"|t }}</th>
  83. <td>{{ user.getUsername }}</td>
  84. </tr>
  85. </table>
  86. </div>
  87. {% endblock %}
  88. </div>