Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit ca77858

Browse files
authored
Merge pull request #127 from SURFnet/align-columns
Align columns
2 parents c2c78ec + 64af49c commit ca77858

3 files changed

Lines changed: 24 additions & 7 deletions

File tree

app/Resources/views/popups/group_users.html.twig

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
<div class="jscroll-inner">
22
{% for user in users %}
33
<li class="user user-{{ user.id }}" data-user-id="{{ user.id }}">
4+
5+
<div class="user-expand">
6+
{% if group.semiFormal and user.extraAttributes|length > 0 %}
7+
<a class="btn-circular toggle-extra-user-info" href="#"><span
8+
class="fa fa-angle-double-down"></span></a>
9+
{% endif %}
10+
</div>
11+
412
{% if group.semiFormal %}
513
<div class="user-avatar">
614
{% if user.avatarUrl is not empty %}
@@ -10,10 +18,6 @@
1018
{% endif %}
1119

1220
<div class="user-name">
13-
{% if group.semiFormal and user.extraAttributes|length > 0 %}
14-
<a class="btn-circular toggle-extra-user-info" href="#"><span
15-
class="fa fa-angle-double-down"></span></a>
16-
{% endif %}
1721
<p>{{ user|display_name }}</p>
1822
<span>{{ user.emailAddress }}&nbsp;</span>
1923

web/css/grouphub.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ footer a {
14131413
font-size: 12px;
14141414
margin-top: 4px; }
14151415
/* line 248, _edit_group.scss */
1416-
.edit_group_container ul.member_collection li a {
1416+
.edit_group_container ul.member_collection li .actions a {
14171417
float: right;
14181418
}
14191419

@@ -1550,6 +1550,15 @@ li.spinner a {
15501550
margin-bottom: 4px;
15511551
}
15521552

1553+
.user-expand, .user-avatar {
1554+
min-height: 10px;
1555+
}
1556+
1557+
.user-expand {
1558+
float: left;
1559+
width: 30px;
1560+
}
1561+
15531562
.user-avatar {
15541563
float: left;
15551564
width: 45px;
@@ -1561,7 +1570,11 @@ li.spinner a {
15611570

15621571
.actions {
15631572
float: right;
1564-
width: 55%;
1573+
width: 310px;
1574+
}
1575+
1576+
.actions select {
1577+
width: 200px;
15651578
}
15661579

15671580
.header ul:first-child a {

web/js/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ var grouphub = (function ($) {
495495
});
496496

497497
$editGroup.on('click', '.toggle-extra-user-info', function () {
498-
var $extraGroupInfo = $(this).parent().find('.extra-attributes');
498+
var $extraGroupInfo = $(this).closest('li').find('.extra-attributes');
499499
var $span = $(this).find('span');
500500

501501
$extraGroupInfo.toggleClass('hidden');

0 commit comments

Comments
 (0)