Michael Francis 14 жил өмнө
parent
commit
ae36b3317b

+ 13 - 1
views/Profile/view.html.php

@@ -16,4 +16,16 @@ Last Online: <?= (empty($user->lastLogin)) ? "Never" : date('m/d/y', $user->last
 	<?php endforeach; ?>
 <?php else: ?>
 <?= $this->html->link('Click to edit profile', "/profile/edit/$user->username"); ?>
-<?php endif; ?>
+<?php endif; ?>
+
+<h2>Recently Watched</h2>
+<hr />
+<table class="table">
+<?php $count = (count($history > 10)) ? 10 : count($history); 
+for ($i = 0; $i < $count; $i++): ?>
+<tr>
+<td><?= $this->html->link($history[$i]["series_title"], '/animelist/$user->username/opinion'); ?></td>
+<td><?= $history[$i]["my_finish_date"] ?></td>
+</tr>
+<?php endfor; ?>
+</table>