mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-10 06:06:24 +08:00
Fix additional Date and Time display formats
This commit is contained in:
parent
b74105abc2
commit
b64df7d8cc
3 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<div class="pull-right">
|
||||
<span class="text-muted"><%= l comment.created_at, format: '%H:%M' %></span>
|
||||
<span class="text-muted"><%= l comment.created_at, format: :time %></span>
|
||||
<% if can_manage_comment_in_module?(comment.becomes(Comment)) %>
|
||||
<div class="dropdown dropdown-comment">
|
||||
<a href="#"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="pull-right">
|
||||
<span class="text-muted"><%= l comment.created_at, format: '%H:%M' %></span>
|
||||
<span class="text-muted"><%= l comment.created_at, format: :time %></span>
|
||||
<% if can_manage_comment_in_project?(comment) %>
|
||||
<div class="dropdown dropdown-comment">
|
||||
<a href="#"
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
<label><%= t('protocols.import_export.import_modal.created_at_label') %></label>
|
||||
|
||||
<% display_created_at=Time.at(not_null(@json_object['created_on']).to_i) %>
|
||||
<%= f.text_field :created_at, :value => display_created_at.to_s,
|
||||
<%= f.text_field :created_at, :value => I18n.l(display_created_at, format: :full),
|
||||
readonly: true, class: "form-control" %>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
<% display_last_modified=eval_last_modified(@json_object['steps']) %>
|
||||
<%= f.text_field :last_modified, :value =>
|
||||
display_last_modified.to_s,readonly: true, class:
|
||||
I18n.l(display_last_modified, format: :full), readonly: true, class:
|
||||
"form-control" %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue