diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-10-27 22:33:52 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-10-27 22:33:52 +0100 |
| commit | 46a9ff9889466f23c310e2de100d0ae16c5a2a1a (patch) | |
| tree | bb8921996335f1e6cf78664ae685e43c48991bcc /controller/guicontroller.php | |
| parent | 13079a5bcb289ede331b2d377ba4e66b0f1a1446 (diff) | |
| download | grauphel-46a9ff9889466f23c310e2de100d0ae16c5a2a1a.tar.gz grauphel-46a9ff9889466f23c310e2de100d0ae16c5a2a1a.zip | |
highlight selected tag
Diffstat (limited to 'controller/guicontroller.php')
| -rw-r--r-- | controller/guicontroller.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/controller/guicontroller.php b/controller/guicontroller.php index 97a7f10..4f74ab5 100644 --- a/controller/guicontroller.php +++ b/controller/guicontroller.php @@ -99,7 +99,12 @@ class GuiController extends Controller ) ); - $this->addNavigation($res); + $selectedRawtag = null; + if (count($note->tags) > 0) { + $selectedRawtag = $note->tags[0]; + } + + $this->addNavigation($res, $selectedRawtag); return $res; } @@ -233,6 +238,7 @@ class GuiController extends Controller 'href' => $this->urlGen->linkToRoute( 'grauphel.gui.tag', array('rawtag' => $rawtag) ), + 'selected' => $rawtag == $selectedRawtag, ); } } |
