mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-11 17:18:40 +00:00
fix urls
This commit is contained in:
parent
2aec6b2c94
commit
066b6ddafb
|
|
@ -19,9 +19,9 @@ use phpOMS\Uri\UriFactory;
|
|||
<div class="floater">
|
||||
<hr>
|
||||
<ul>
|
||||
<li><a href="<?= UriFactory::build('{/app}/terms'); ?>">Terms</a>
|
||||
<li><a href="<?= UriFactory::build('{/app}/privacy'); ?>">Data Protection</a>
|
||||
<li><a href="<?= UriFactory::build('{/app}/imprint'); ?>">Imprint</a>
|
||||
<li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}/terms'); ?>">Terms</a>
|
||||
<li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}/privacy'); ?>">Data Protection</a>
|
||||
<li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}/imprint'); ?>">Imprint</a>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
@ -18,8 +18,8 @@ use phpOMS\Uri\UriFactory;
|
|||
<header>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="<?= UriFactory::build('{/app}'); ?>">Website</a>
|
||||
<li><a href="<?= UriFactory::build('{/app}/components'); ?>">Profile</a>
|
||||
<li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}'); ?>">Website</a>
|
||||
<li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}/components'); ?>">Profile</a>
|
||||
</ul>
|
||||
</nav>
|
||||
<div id="search">
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"creator": {
|
||||
"name": "Karaka",
|
||||
"website": "www.spl1nes.com"
|
||||
"website": "jingga.app"
|
||||
},
|
||||
"description": "The shop application.",
|
||||
"directory": "Shop",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Tickets",
|
||||
"uri": "{/prefix}support/list",
|
||||
"uri": "{/lang}/{/app}/support/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/prefix}support/list",
|
||||
"uri": "{/lang}/{/app}/support/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/prefix}support/create?{?}",
|
||||
"uri": "{/lang}/{/app}/support/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Settings",
|
||||
"uri": "{/prefix}support/settings/dashboard?{?}",
|
||||
"uri": "{/lang}/{/app}/support/settings/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Analysis",
|
||||
"uri": "{/prefix}support/analysis/dashboard?{?}",
|
||||
"uri": "{/lang}/{/app}/support/analysis/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 10,
|
||||
|
|
@ -101,7 +101,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Support",
|
||||
"uri": "{/prefix}private/support/dashboard?{?}",
|
||||
"uri": "{/lang}/{/app}/private/support/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php
|
||||
$c = 0;
|
||||
foreach ($tickets as $key => $ticket) : ++$c;
|
||||
$url = UriFactory::build('support/ticket?{?}&id=' . $ticket->getId());
|
||||
$url = UriFactory::build('{/lang}/{/app}/support/ticket?{?}&id=' . $ticket->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>">
|
||||
|
|
@ -49,9 +49,9 @@ echo $this->getData('nav')->render(); ?>
|
|||
</span></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->getHtml('P' . $ticket->task->getPriority(), 'Tasks'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->task->title); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('profile/single?for=' . $ticket->task->createdBy->getId()); ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?for=' . $ticket->task->createdBy->getId()); ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a>
|
||||
<td><a class="content" href="<?= $url; ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('profile/single?for=' . $ticket->for->getId()); ?>"><?= $this->printHtml($ticket->for->name1); ?> <?= $this->printHtml($ticket->for->name2); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?for=' . $ticket->for->getId()); ?>"><?= $this->printHtml($ticket->for->name1); ?> <?= $this->printHtml($ticket->for->name2); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->task->createdAt->format('Y-m-d H:i')); ?></a>
|
||||
<?php endforeach; if ($c == 0) : ?>
|
||||
<tr><td colspan="7" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php if (!empty($taskMedia)) : ?>
|
||||
<div>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
@ -245,7 +245,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php if (!empty($elementMedia)) : ?>
|
||||
<div>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
@ -291,10 +291,10 @@ echo $this->getData('nav')->render(); ?>
|
|||
) : ?>
|
||||
<section class="portlet wf-100">
|
||||
<div class="portlet-body">
|
||||
<a href="<?= UriFactory::build('profile/single?{?}&for=' . $element->taskElement->createdBy->getId()); ?>"><?= $this->printHtml($element->taskElement->createdBy->name1); ?></a> <?= $this->getHtml('forwarded_to'); ?>
|
||||
<a href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $element->taskElement->createdBy->getId()); ?>"><?= $this->printHtml($element->taskElement->createdBy->name1); ?></a> <?= $this->getHtml('forwarded_to'); ?>
|
||||
<?php foreach ($tos as $to) : ?>
|
||||
<?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) : ?>
|
||||
<?= $this->printHtml($to->getRelation()->name); ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
|
|
@ -70,10 +70,10 @@ class TicketView extends View
|
|||
$profile = ProfileMapper::get()->with('image')->where('account', $account)->execute();
|
||||
|
||||
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