git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue: display ticket creation date
[minimedit.git]
/
issue
/
index.php
diff --git
a/issue/index.php
b/issue/index.php
index d8f9c261e65b877764dafca34e28488dc2e9cfa4..6b1c3dc53b7fe5aad589b91afb27820be36864b8 100644
(file)
--- a/
issue/index.php
+++ b/
issue/index.php
@@
-14,9
+14,15
@@
if ($id) {
$Article->title .= ': '.htmlspecialchars($row->subject);
print "<h2>{$Article->title}</h2>\n";
print $row->body;
$Article->title .= ': '.htmlspecialchars($row->subject);
print "<h2>{$Article->title}</h2>\n";
print $row->body;
+ printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
+ 'Geplaatst',
+ $row->author ? " door <strong>{$row->author}</strong>" : '',
+ showdate(preg_split('/\D/', $row->created))
+ );
if ($row->closed) {
if ($row->closed) {
- printf('<p><strong>%s</strong> <small class=date>%s</small></p>'."\n",
- 'Opgelost', showdate(preg_split('/\D/', $row->closed))
+ printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
+ 'Opgelost', '',
+ showdate(preg_split('/\D/', $row->closed))
);
}
$Args = "/$id"; # minimal reference
);
}
$Args = "/$id"; # minimal reference
@@
-39,7
+45,7
@@
if ($_POST) {
$_POST = [];
}
$_POST = [];
}
-$query = $Db->query('SELECT * FROM issues ORDER BY
cre
ated DESC');
+$query = $Db->query('SELECT * FROM issues ORDER BY
upd
ated DESC');
ob_start();
print '<ul>';
ob_start();
print '<ul>';
@@
-48,7
+54,7
@@
while ($row = $query->fetch()) {
"/$Page/{$row->id}/{$row->link}",
sprintf($row->closed ? '<strike>%s</strike>' : '%s',
htmlspecialchars($row->subject)),
"/$Page/{$row->id}/{$row->link}",
sprintf($row->closed ? '<strike>%s</strike>' : '%s',
htmlspecialchars($row->subject)),
- showdate(array_slice(preg_split('/\D/', $row->
cre
ated), 0, 3))
+ showdate(array_slice(preg_split('/\D/', $row->
upd
ated), 0, 3))
);
print "</li>\n";
}
);
print "</li>\n";
}