diff --git a/asset-bundles.json b/asset-bundles.json index fb9306a..fa9029c 100644 --- a/asset-bundles.json +++ b/asset-bundles.json @@ -38,6 +38,7 @@ }, "js/pages/user": { "scripts": [ + "organisations/js/widgets/members.js", "organisations/js/widgets/users.js", "organisations/js/pages/user.js" ], diff --git a/assets/organisations/css/organisations.css b/assets/organisations/css/organisations.css index 13d73bf..a2b3486 100644 --- a/assets/organisations/css/organisations.css +++ b/assets/organisations/css/organisations.css @@ -16,6 +16,20 @@ text-overflow: ellipsis; overflow: hidden; width: 100%; - displaY: inline-block; + display: inline-block; white-space: nowrap; +} + +.user-organisation-description { + text-overflow: ellipsis; + overflow: hidden; + width: 100%; + display: inline-block; + white-space: nowrap; + margin-top: 0.5em; +} + +hr.row-divider { + margin-top: 0.3em; + width: 80%; } \ No newline at end of file diff --git a/assets/organisations/js/pages/user.js b/assets/organisations/js/pages/user.js index 22603f0..c990021 100644 --- a/assets/organisations/js/pages/user.js +++ b/assets/organisations/js/pages/user.js @@ -9,5 +9,6 @@ $(document).ready(function() { // Control buttons + bindMemberButtons($("#view-user")) bindUserButtonsExtra($("#view-user"), { delete_redirect: page.delete_redirect }); }); diff --git a/locale/en_US/messages.php b/locale/en_US/messages.php index 2192da0..0fbd4a8 100644 --- a/locale/en_US/messages.php +++ b/locale/en_US/messages.php @@ -167,6 +167,10 @@ return [ 2 => 'Administrators', ], + 'USER' => [ + 'ORGANISATIONS' => 'User Organisations', + ], + 'CREATED_ON' => 'Created on', 'MERGE' => 'Merge', diff --git a/templates/pages/user.html.twig b/templates/pages/user.html.twig new file mode 100644 index 0000000..feda475 --- /dev/null +++ b/templates/pages/user.html.twig @@ -0,0 +1,104 @@ +{% extends "@blockier-templates/pages/user.html.twig" %} + + +{% block tools %} +
+ {% for organisation in user.organisations %} +