Use long format for dates everywhere
This commit is contained in:
@ -3,7 +3,7 @@ ActiveAdmin.register Organization do
|
||||
id_column
|
||||
column :name
|
||||
column :created_at do |organization|
|
||||
l organization.created_at.to_date, format: :short
|
||||
l organization.created_at.to_date, format: :long
|
||||
end
|
||||
column :city
|
||||
column :neighborhood
|
||||
|
||||
@ -5,7 +5,7 @@ ActiveAdmin.register Post do
|
||||
column :class
|
||||
column :title
|
||||
column :created_at do |post|
|
||||
l post.created_at.to_date, format: :short
|
||||
l post.created_at.to_date, format: :long
|
||||
end
|
||||
column :user
|
||||
column :category
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
%strong= Organization.human_attribute_name("phone")
|
||||
= @organization.phone
|
||||
%br
|
||||
%strong Web
|
||||
%strong Web
|
||||
=link_to_if(@organization.web.present?,@organization.web,@organization.web)
|
||||
%br
|
||||
%strong= Organization.human_attribute_name("public_opening_times")
|
||||
@ -36,16 +36,16 @@
|
||||
.panel-body
|
||||
%p
|
||||
%strong= Organization.human_attribute_name("created_at")
|
||||
= l(@organization.created_at, format: :short)
|
||||
= l(@organization.created_at, format: :long)
|
||||
%br
|
||||
%strong= Organization.human_attribute_name("updated_at")
|
||||
= l(@organization.updated_at, format: :short)
|
||||
= l(@organization.updated_at, format: :long)
|
||||
%br
|
||||
%strong= t "global.member_count"
|
||||
= @organization.members.count
|
||||
%br
|
||||
%strong= t "global.balance"
|
||||
= seconds_to_hm(@organization.account.try(:balance) || mdash)
|
||||
= seconds_to_hm(@organization.account.try(:balance) || mdash)
|
||||
.col-sm-5
|
||||
%ul.nav.nav-pills.pull-right
|
||||
- if superadmin?
|
||||
@ -81,8 +81,8 @@
|
||||
%th= t "global.amount"
|
||||
- @organization.account.movements.order("created_at DESC").limit(10).each do |mv|
|
||||
%tr
|
||||
%td= l mv.created_at, format: :short
|
||||
%td= l mv.created_at, format: :long
|
||||
%td= mv.other_side.account
|
||||
%td= mv.transfer.post
|
||||
%td= mv.transfer.reason
|
||||
%td= seconds_to_hm(mv.amount)
|
||||
%td= seconds_to_hm(mv.amount)
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
= link_to post.user, post.user, title: post.user.email
|
||||
%br
|
||||
= t '.created_at'
|
||||
= l post.created_at.to_date, format: :short
|
||||
= l post.created_at.to_date, format: :long
|
||||
|
||||
.col-md-9
|
||||
%p.lead= post.description
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
%th=t(".quantity")
|
||||
- @transfers.each do |transfer|
|
||||
%tr
|
||||
%td= l transfer.created_at, format: :short
|
||||
%td= l transfer.created_at, format: :long
|
||||
- transfer.movements.sort_by(&:amount).each do |mv|
|
||||
%td
|
||||
- if mv.account.accountable.present?
|
||||
|
||||
@ -15,4 +15,4 @@
|
||||
%td= mem.member_uid
|
||||
%td= link_to mem.user.username, mem.user
|
||||
%td= mem.days_without_swaps
|
||||
%td= (mem.account.balance.blank? || mem.account.balance.zero?) ? t(".no_movements") : l(mem.account.updated_at, format: :short)
|
||||
%td= (mem.account.balance.blank? || mem.account.balance.zero?) ? t(".no_movements") : l(mem.account.updated_at, format: :long)
|
||||
|
||||
@ -12,4 +12,4 @@
|
||||
%tr
|
||||
%td= mem.member_uid
|
||||
%td= link_to mem.user.username, mem.user
|
||||
%td= mem.user.current_sign_in_at.blank? ? t(".never_login") : l(mem.user.current_sign_in_at, format: :short)
|
||||
%td= mem.user.current_sign_in_at.blank? ? t(".never_login") : l(mem.user.current_sign_in_at, format: :long)
|
||||
|
||||
@ -95,7 +95,7 @@
|
||||
%p
|
||||
%strong
|
||||
= t(".created_at")
|
||||
= @member.entry_date ? l(@member.entry_date, format: :short) : mdash
|
||||
= @member.entry_date ? l(@member.entry_date, format: :long) : mdash
|
||||
%br
|
||||
%strong
|
||||
= t(".user_no")
|
||||
@ -124,7 +124,7 @@
|
||||
=t(".quantity")
|
||||
- @movements.each do |mv|
|
||||
%tr
|
||||
%td= l mv.created_at, format: :short
|
||||
%td= l mv.created_at, format: :long
|
||||
%td
|
||||
- if mv.other_side.account.accountable.present?
|
||||
- if mv.other_side.account.accountable_type == "Organization"
|
||||
|
||||
Reference in New Issue
Block a user