Skip to content

Commit 1d75ee3

Browse files
committed
[ticket/12] Add creation date to list of last entries
fixes #12
1 parent 01c9ccd commit 1d75ee3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

controller/main.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ private function display_pb()
213213
'URL' => $this->helper->route('phpbbde_pastebin_main_controller', array('mode'=>'view', 's' => $row['snippet_id'])),
214214
'DESC' => $row['snippet_desc'],
215215
'TITLE' => $row['snippet_title'],
216+
'SNIPPET_TIME' => $this->user->format_date($row['snippet_time']),
216217
'TITLE_SHORT' => (utf8_strlen($row['snippet_title']) > 50) ? utf8_substr($row['snippet_title'], 0, 50) . '...' : $row['snippet_title'],
217218
'AUTHOR_FULL' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
218219
));

styles/prosilver/template/pastebin_body.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ <h3>{L_LATEST_SNIPPETS}</h3>
6767
<!-- IF .latest_snippets -->
6868
<ul>
6969
<!-- BEGIN latest_snippets -->
70-
<li><a href="{latest_snippets.URL}" title="{latest_snippets.TITLE}<!-- IF latest_snippets.DESC -->: {latest_snippets.DESC}<!-- ENDIF -->">{latest_snippets.TITLE_SHORT}</a> ({latest_snippets.AUTHOR_FULL})</li>
70+
<li><a href="{latest_snippets.URL}" title="{latest_snippets.TITLE}<!-- IF latest_snippets.DESC -->: {latest_snippets.DESC}<!-- ENDIF -->">{latest_snippets.TITLE_SHORT}</a> ({latest_snippets.SNIPPET_TIME}, {latest_snippets.AUTHOR_FULL})</li>
7171
<!-- END latest_snippets -->
7272
</ul>
7373
<!-- ELSE -->

0 commit comments

Comments
 (0)