Permalink
Browse files

When a spot is already downloaded or opened, we add this to the title…

… text of the date field in the spot details. Fixes #1513
  • Loading branch information...
1 parent f5aedc0 commit 8b5f937b7c32c74b6bdd131215c4fb81543ec1e2 spotweb committed Jun 2, 2012
View
BIN locales/nl_NL/LC_MESSAGES/messages.mo
Binary file not shown.
View
6 locales/nl_NL/LC_MESSAGES/messages.po
@@ -461,6 +461,12 @@ msgid_plural "There are %d spamreports found for this spot"
msgstr[0] "Er is %d spam report gevonden op deze spot"
msgstr[1] "Er zijn %d spam reports gevonden op deze spot"
+msgid "downloaded on"
+msgstr "gedownload op"
+
+msgid "opened on"
+msgstr "geopent op"
+
msgid "Go to category '%s'"
msgstr "Ga naar de categorie '%s'"
View
9 templates/we1rdo/spots.inc.php
@@ -68,6 +68,7 @@
$spot = $tplHelper->formatSpotHeader($spot);
$newSpotClass = ($tplHelper->isSpotNew($spot)) ? 'new' : '';
$tipTipClass = $show_mouseover_subcats ? 'showTipTip' : '';
+ $dateTitleText = $tplHelper->formatDate($spot['stamp'], 'force_spotlist');
$catMap = array();
foreach($spot['subcatlist'] as $sub) {
@@ -122,9 +123,13 @@
echo "<tr class='" . $tplHelper->cat2color($spot);
if ($spot['hasbeendownloaded']) {
echo " downloadedspot";
- } # if
+
+ $dateTitleText .= "\r\n " . _("downloaded on") . ' ' . $tplHelper->formatDate($spot['downloadstamp'], 'force_spotlist');
+ } # if
if ($spot['hasbeenseen']) {
echo " seenspot";
+
+ $dateTitleText .= "\r\n " . _("opened on") . ' ' . $tplHelper->formatDate($spot['seenstamp'], 'force_spotlist');
} # if
echo "'>";
echo "<td class='category'><a href='" . $spot['caturl'] . "' title=\"" . sprintf(_("Go to category '%s'"), $spot['catshortdesc']) . "\">" . $spot['catshortdesc'] . "</a></td>" .
@@ -143,7 +148,7 @@
echo "<td class='genre'><a href='" . $spot['subcaturl'] . "' title='" . sprintf(_('Search spot in category %s'), $spot['catdesc']) . "'>" . $spot['catdesc'] . "</a></td>" .
"<td class='poster'><a href='" . $spot['posterurl'] . "' title='" . sprintf(_('Search spot from %s'), $spot['poster']) . "'>" . $spot['poster'] . "</a></td>" .
- "<td class='date' title='" . $tplHelper->formatDate($spot['stamp'], 'force_spotlist') . "'>" . $tplHelper->formatDate($spot['stamp'], 'spotlist') . "</td>";
+ "<td class='date' title='" . $dateTitleText . "'>" . $tplHelper->formatDate($spot['stamp'], 'spotlist') . "</td>";
if ($show_filesize) {
echo "<td class='filesize'>" . $tplHelper->format_size($spot['filesize']) . "</td>";

0 comments on commit 8b5f937

Please sign in to comment.