aboutsummaryrefslogtreecommitdiff
path: root/app/view
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-02-12 19:44:00 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-02-12 19:44:00 +0100
commite32f2f1749c691f6c778261a8f8d300573895345 (patch)
tree84a4293c7f0781243259d21f2472273c0f52fada /app/view
parent0937c851313b5098dc15e5d411b6c3638cbd5116 (diff)
downloadwcms-e32f2f1749c691f6c778261a8f8d300573895345.tar.gz
wcms-e32f2f1749c691f6c778261a8f8d300573895345.zip
Link to refactoring close #48
Diffstat (limited to 'app/view')
-rw-r--r--app/view/templates/confirmdelete.php13
-rw-r--r--app/view/templates/home.php10
2 files changed, 2 insertions, 21 deletions
diff --git a/app/view/templates/confirmdelete.php b/app/view/templates/confirmdelete.php
index 24de454..ae8639b 100644
--- a/app/view/templates/confirmdelete.php
+++ b/app/view/templates/confirmdelete.php
@@ -12,23 +12,10 @@
<ul>
<li>Id : <?= $page->id() ?></li>
<li>Title : <?= $page->title() ?></li>
-<li>Article(s) linked to this one : <?= $page->linkto('sort') ?></li>
-<li>Article(s) linked from this one : <?= $page->linkfrom('sort') ?></li>
<li>Number of edits : <?= $page->editcount() ?></li>
</ul>
-<?php if (!empty($page->linkto())) { ?>
-<h2>Article linked to :</h2>
-
-<ul>
-<?php foreach ($page->linkto('array') as $linkto) {
- echo '<li><a href="./?id=' . $linkto . '">' . $linkto . '</a></li>';
-} ?>
-</ul>
-
-<?php
-} ?>
</div>
diff --git a/app/view/templates/home.php b/app/view/templates/home.php
index 63a63e1..1d15a8d 100644
--- a/app/view/templates/home.php
+++ b/app/view/templates/home.php
@@ -74,10 +74,7 @@
<th class="summary">summary</th>
<?php }
if ($columns['linkto']) { ?>
- <th class="linkto"><a href="<?= $opt->sortbyorder('linkto') ?>">to</a></th>
- <?php }
- if ($columns['linkfrom']) { ?>
- <th class="linkfrom"><a href="<?= $opt->sortbyorder('linkfrom') ?>">from</a></th>
+ <th class="linkto"><a href="<?= $opt->sortbyorder('linkto') ?>">linkto</a></th>
<?php }
if ($columns['datemodif']) { ?>
<th class="datemodif"><a href="<?= $opt->sortbyorder('datemodif') ?>">last modification</a></th>
@@ -129,10 +126,7 @@
<td class="summary" title="<?= $item->description() ?>"><?= $item->description('short') ?></td>
<?php }
if ($columns['linkto']) { ?>
- <td class="linkto"><a title="<?= $item->linkto('string') ?>"><?= $item->linkto('sort') ?></a></td>
- <?php }
- if ($columns['linkfrom']) { ?>
- <td class="linkfrom"><?= $opt->linktolink($item->linkfrom('array')) ?></td>
+ <td class="linkto"><?= $opt->linktolink($item->linkto('array')) ?></td>
<?php }
if ($columns['datemodif']) { ?>
<td class="datemodif"><time datetime="<?= $item->datemodif('string') ?>" title="<?= $item->datemodif('dmy') . ' ' . $item->datemodif('ptime') ?>"><?= $item->datemodif('hrdi') ?></time></td>