git.cweiske.de
/
grauphel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 0.7.4
[grauphel.git]
/
templates
/
tag.php
diff --git
a/templates/tag.php
b/templates/tag.php
index b2cab023431375b005384020beb270bd9a125cb0..4c20378b8ff7d9bee5333aa52d745ce1c617b066 100644
(file)
--- a/
templates/tag.php
+++ b/
templates/tag.php
@@
-1,16
+1,21
@@
-<
link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/
>
+<
?php style('grauphel', 'grauphel'); ?
>
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
<div id="app-content" class="list">
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
<div id="app-content" class="list">
+ <div id="searchresults" class="hidden"></div>
<h1>Notebook: <?php p($_['tag']); ?></h1>
<table class="table" id="grauphel-notes">
<thead>
<tr>
<h1>Notebook: <?php p($_['tag']); ?></h1>
<table class="table" id="grauphel-notes">
<thead>
<tr>
- <th>Title</th>
- <th>Last change</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>
</tr>
</thead>
<tbody>
@@
-18,10
+23,11
@@
<?php foreach ($_['notes'] as $note) { ?>
<tr id="note-<?php p($note['guid']); ?>">
<td>
<?php foreach ($_['notes'] as $note) { ?>
<tr id="note-<?php p($note['guid']); ?>">
<td>
- <a class="cellclick" href="<?php p(
OCP\Util::
linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
+ <a class="cellclick" href="<?php p(
$_['urlGen']->
linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
</td>
</td>
- <td>
- <?php p(\OCP\Util::formatDate(strtotime($note['last-change-date']))); ?>
+ <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>
<?php } ?>
</td>
</tr>
<?php } ?>