mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 15:38:40 +00:00
fix urls
This commit is contained in:
parent
fc964b62d6
commit
47fbf40d06
|
|
@ -5,7 +5,7 @@
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Tasks",
|
"name": "Tasks",
|
||||||
"uri": "{/prefix}task/dashboard?{?}",
|
"uri": "{/lang}/{/app}/task/dashboard?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": "fa fa-bolt",
|
"icon": "fa fa-bolt",
|
||||||
"order": 15,
|
"order": 15,
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
"uri": "{/prefix}task/dashboard?{?}",
|
"uri": "{/lang}/{/app}/task/dashboard?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Tasks",
|
"name": "Tasks",
|
||||||
"uri": "{/prefix}task/single?{?}",
|
"uri": "{/lang}/{/app}/task/single?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
"uri": "{/prefix}task/create?{?}",
|
"uri": "{/lang}/{/app}/task/create?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 10,
|
"order": 10,
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Analysis",
|
"name": "Analysis",
|
||||||
"uri": "{/prefix}task/analysis?{?}",
|
"uri": "{/lang}/{/app}/task/analysis?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 20,
|
"order": 20,
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ $tasksList = $this->getData('tasks') ?? [];
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-foot">
|
<div class="portlet-foot">
|
||||||
<a class="button" href="<?= UriFactory::build('task/dashboard?{?}'); ?>"><?= $this->getHtml('More', '0', '0'); ?></a>
|
<a class="button" href="<?= UriFactory::build('{/lang}/{/app}/task/dashboard?{?}'); ?>"><?= $this->getHtml('More', '0', '0'); ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -80,7 +80,7 @@ if ($open !== null) :
|
||||||
</a>
|
</a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<td data-label="<?= $this->getHtml('Creator'); ?>">
|
<td data-label="<?= $this->getHtml('Creator'); ?>">
|
||||||
<a class="content" href="<?= UriFactory::build('profile/single?{?}&for=' . $task->createdBy->getId()); ?>"><?= $this->printHtml($this->renderUserName('%3$s %2$s %1$s', [$task->createdBy->name1, $task->createdBy->name2, $task->createdBy->name3, $task->createdBy->login ?? ''])); ?></a>
|
<a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $task->createdBy->getId()); ?>"><?= $this->printHtml($this->renderUserName('%3$s %2$s %1$s', [$task->createdBy->name1, $task->createdBy->name2, $task->createdBy->name3, $task->createdBy->login ?? ''])); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Created'); ?>">
|
<td data-label="<?= $this->getHtml('Created'); ?>">
|
||||||
<a href="<?= $url; ?>"><?= $this->printHtml($task->createdAt->format('Y-m-d H:i')); ?></a>
|
<a href="<?= $url; ?>"><?= $this->printHtml($task->createdAt->format('Y-m-d H:i')); ?></a>
|
||||||
<?php endforeach; if ($c == 0) : ?>
|
<?php endforeach; if ($c == 0) : ?>
|
||||||
|
|
@ -141,7 +141,7 @@ if ($open !== null) :
|
||||||
</a>
|
</a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<td data-label="<?= $this->getHtml('Creator'); ?>">
|
<td data-label="<?= $this->getHtml('Creator'); ?>">
|
||||||
<a class="content" href="<?= UriFactory::build('profile/single?{?}&for=' . $task->createdBy->getId()); ?>"><?= $this->printHtml($this->renderUserName('%3$s %2$s %1$s', [$task->createdBy->name1, $task->createdBy->name2, $task->createdBy->name3, $task->createdBy->login ?? ''])); ?></a>
|
<a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $task->createdBy->getId()); ?>"><?= $this->printHtml($this->renderUserName('%3$s %2$s %1$s', [$task->createdBy->name1, $task->createdBy->name2, $task->createdBy->name3, $task->createdBy->login ?? ''])); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Created'); ?>">
|
<td data-label="<?= $this->getHtml('Created'); ?>">
|
||||||
<a href="<?= $url; ?>"><?= $this->printHtml($task->createdAt->format('Y-m-d H:i')); ?></a>
|
<a href="<?= $url; ?>"><?= $this->printHtml($task->createdAt->format('Y-m-d H:i')); ?></a>
|
||||||
<?php endforeach; if ($c == 0) : ?>
|
<?php endforeach; if ($c == 0) : ?>
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<?php if (!empty($taskMedia)) : ?>
|
<?php if (!empty($taskMedia)) : ?>
|
||||||
<div>
|
<div>
|
||||||
<?php foreach ($taskMedia as $media) : ?>
|
<?php foreach ($taskMedia as $media) : ?>
|
||||||
<span><a class="content" href="<?= UriFactory::build('media/single?id=' . $media->getId());?>"><?= $media->name; ?></a></span>
|
<span><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/media/single?id=' . $media->getId());?>"><?= $media->name; ?></a></span>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
@ -254,7 +254,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<?php if (!empty($elementMedia)) : ?>
|
<?php if (!empty($elementMedia)) : ?>
|
||||||
<div>
|
<div>
|
||||||
<?php foreach ($elementMedia as $media) : ?>
|
<?php foreach ($elementMedia as $media) : ?>
|
||||||
<span><a class="content" href="<?= UriFactory::build('media/single?id=' . $media->getId());?>"><?= $media->name; ?></a></span>
|
<span><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/media/single?id=' . $media->getId());?>"><?= $media->name; ?></a></span>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
@ -300,14 +300,14 @@ echo $this->getData('nav')->render(); ?>
|
||||||
) : ?>
|
) : ?>
|
||||||
<section class="portlet wf-100">
|
<section class="portlet wf-100">
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<a href="<?= UriFactory::build('profile/single?{?}&for=' . $element->createdBy->getId()); ?>"><?= $this->printHtml(
|
<a href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $element->createdBy->getId()); ?>"><?= $this->printHtml(
|
||||||
$this->renderUserName(
|
$this->renderUserName(
|
||||||
'%3$s %2$s %1$s',
|
'%3$s %2$s %1$s',
|
||||||
[$element->createdBy->name1, $element->createdBy->name2, $element->createdBy->name3, $element->createdBy->login])
|
[$element->createdBy->name1, $element->createdBy->name2, $element->createdBy->name3, $element->createdBy->login])
|
||||||
); ?></a> <?= $this->getHtml('forwarded_to'); ?>
|
); ?></a> <?= $this->getHtml('forwarded_to'); ?>
|
||||||
<?php foreach ($tos as $to) : ?>
|
<?php foreach ($tos as $to) : ?>
|
||||||
<?php if ($to instanceof AccountRelation) : ?>
|
<?php if ($to instanceof AccountRelation) : ?>
|
||||||
<a href="<?= UriFactory::build('profile/single?{?}&for=' . $to->getRelation()->getId()); ?>"><?= $this->printHtml($to->getRelation()->name1); ?></a>
|
<a href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $to->getRelation()->getId()); ?>"><?= $this->printHtml($to->getRelation()->name1); ?></a>
|
||||||
<?php elseif ($to instanceof GroupRelation) : ?>
|
<?php elseif ($to instanceof GroupRelation) : ?>
|
||||||
<?= $this->printHtml($to->getRelation()->name); ?>
|
<?= $this->printHtml($to->getRelation()->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
|
|
@ -74,10 +74,10 @@ class TaskView extends View
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
if (($profile instanceof NullProfile) || $profile->image->getPath() === '') {
|
if (($profile instanceof NullProfile) || $profile->image->getPath() === '') {
|
||||||
return UriFactory::build('' . $this->defaultProfileImage->getPath());
|
return UriFactory::build('{/lang}/{/app}/' . $this->defaultProfileImage->getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
return UriFactory::build('' . $profile->image->getPath());
|
return UriFactory::build('{/lang}/{/app}/' . $profile->image->getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user