diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2018-10-07 14:05:43 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2018-10-07 14:05:43 +0200 |
| commit | 3e6e6e4c40741269d997d9b0bed151f551384aa3 (patch) | |
| tree | da7d6823a29d1ace7c6429b20aa7ba7929f4a46f /templates/tag.php | |
| parent | 1105322aac9cc8e71eafbf5a5eea8e709c8c77ce (diff) | |
| download | grauphel-3e6e6e4c40741269d997d9b0bed151f551384aa3.tar.gz grauphel-3e6e6e4c40741269d997d9b0bed151f551384aa3.zip | |
Lists can be sorted by title and date now
Resolves: https://github.com/cweiske/grauphel/issues/59
Diffstat (limited to 'templates/tag.php')
| -rw-r--r-- | templates/tag.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/tag.php b/templates/tag.php index e8e092e..4c20378 100644 --- a/templates/tag.php +++ b/templates/tag.php @@ -10,8 +10,12 @@ <table class="table" id="grauphel-notes"> <thead> <tr> - <th id="headerTitle">Title</th> - <th>Modified</th> + <th id="headerTitle"> + <a href="<?php p($tagUrl); ?>?sortby=title">Title</a> + </th> + <th> + <a href="<?php p($tagUrl); ?>?sortby=date">Modified</a> + </th> </tr> </thead> <tbody> @@ -21,7 +25,8 @@ <td> <a class="cellclick" href="<?php p($_['urlGen']->linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a> </td> - <td style="color: <?php echo p($note['dateColor']); ?>"> + <td style="color: <?php echo p($note['dateColor']); ?>" + title="<?php p(date('Y-m-d H:i:s', strtotime($note['last-change-date']))); ?>"> <?php p($_['date']->formatDate(strtotime($note['last-change-date']))); ?> </td> </tr> |
