Issue 76: Time on issues should show time as well as date

This commit is contained in:
Nathan Adams
2015-09-06 14:42:10 -05:00
parent 420d4fdd26
commit 8b486e74ea
6 changed files with 102 additions and 2 deletions

View File

@@ -22,12 +22,12 @@
<img style="float:right; position: relative; max-height: 60px; max-width: 60px;" src="http://www.gravatar.com/avatar/{$submitter.email|md5}.jpg?s=60&amp;d={media}/idf/img/spacer.gif" alt=" " />
{/if}
{if $i == 0}
<p>{blocktrans}Reported by {$submitter}, {$c.creation_dtime|date}{/blocktrans}</p>
<p>{blocktrans}Reported by {$submitter}, {/blocktrans}<span title="{$c.creation_dtime} GMT">{$request.user.convertToUserTimezone($c.creation_dtime)}</span></p>
{else}
{aurl 'url', 'IDF_Views_Issue::view', array($project.shortname, $issue.id)}
{assign $id = $c.id}
{assign $url = $url~'#ic'~$c.id}
<p>{blocktrans}Comment <a href="{$url}">{$i}</a> by {$submitter}, {$c.creation_dtime|date}{/blocktrans}</p>
<p>{blocktrans}Comment <a href="{$url}">{$i}</a> by {$submitter}, {/blocktrans}<span title="{$c.creation_dtime} GMT">{$request.user.convertToUserTimezone($c.creation_dtime)}</span></p>
{/if}

View File

@@ -34,6 +34,13 @@
<span class="helptext">{$form.f.email.help_text}</span>
</td>
</tr>
<tr>
<th><strong>{$form.f.timezone.labelTag}:</strong></th>
<td>{if $form.f.timezone.errors}{$form.f.timezone.fieldErrors}{/if}
{$form.f.timezone|unsafe}<br />
<span class="helptext">{$form.f.timezone.help_text}</span>
</td>
</tr>
<tr>
<th>{$form.f.language.labelTag}:</th>
<td>{if $form.f.language.errors}{$form.f.language.fieldErrors}{/if}