-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from Jieiku/compact-layout
Compact layout
- Loading branch information
Showing
5 changed files
with
73 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Kanboard\Plugin\Group_assign\Helper; | ||
|
||
use Kanboard\Helper\AvatarHelper; | ||
use Kanboard\Core\Base; | ||
/** | ||
* Avatar Helper | ||
* | ||
* @package helper | ||
* @author Frederic Guillot | ||
*/ | ||
class sizeAvatarHelperExtend extends AvatarHelper | ||
{ | ||
public function sizeMultiple($owner_ms, $css = '', $size = 20) { | ||
$assignees = $this->multiselectMemberModel->getMembers($owner_ms); | ||
$html = ""; | ||
foreach ($assignees as $assignee) { | ||
$user = $this->userModel->getById($assignee['user_id']); | ||
$html .= $this->render($assignee['user_id'], $user['username'], $user['name'], $user['email'], $user['avatar_path'], $css, $size); | ||
} | ||
return $html; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
<?php if ($task['owner_ms'] > 0 && count($this->task->multiselectMemberModel->getMembers($task['owner_ms'])) > 0) : ?> | ||
<strong class="assigned-other-label"><small><?= t('Other Assignees:') ?></small></strong> | ||
<?= $this->helper->smallAvatarHelperExtend->miniMultiple($task['owner_ms'], 'avatar-inline') ?> | ||
<br> | ||
|
||
<?php if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_compactlayout")) { | ||
/* compact card layout */ | ||
?> | ||
|
||
<strong class="assigned-other-label"><small><?= t('Other Assignees:') ?></small></strong> | ||
<?= $this->helper->sizeAvatarHelperExtend->sizeMultiple($task['owner_ms'], 'avatar-inline avatar-bdyn', $this->task->configModel->get('b_av_size','20')) ?> | ||
|
||
<?php | ||
} else { | ||
?> | ||
|
||
<strong class="assigned-other-label"><small><?= t('Other Assignees:') ?></small></strong> | ||
<?= $this->helper->sizeAvatarHelperExtend->sizeMultiple($task['owner_ms'], 'avatar-inline avatar-bdyn', 13) ?> | ||
<br> | ||
|
||
<?php | ||
} | ||
?> | ||
|
||
<?php endif ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters