summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-27 11:42:46 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-27 11:42:46 +0100
commitd96593f72f45d8fa1c84205cd73ffd3e4e51d8e5 (patch)
treeb9b4baea85537c1d1213ff896a3f0433b2cb7b79
parente758cec9a842e75abe0a26312c4d7d3e8530b84a (diff)
i18n display of the time.
-rw-r--r--app/views/call_histories/_index_core.html.haml9
-rw-r--r--config/locales/de.yml3
-rw-r--r--config/locales/en.yml4
3 files changed, 14 insertions, 2 deletions
diff --git a/app/views/call_histories/_index_core.html.haml b/app/views/call_histories/_index_core.html.haml
index 7409203..4ca340d 100644
--- a/app/views/call_histories/_index_core.html.haml
+++ b/app/views/call_histories/_index_core.html.haml
@@ -4,8 +4,13 @@
%thead
%tr
%th
+ Datum
+ %th
Uhrzeit
%th
+ Misc
+ %th
+ Avatar
%th
Teilnehmer
%th
@@ -17,6 +22,10 @@
- phone_book_entry = call_history.phone_book_entry_by_number(call_history.display_number)
%tr{:id => "call_history_id_#{call_history.id}_tr", :class => (call_history.duration.blank? ? 'warning' : '')}
%td
+ = l call_history.start_stamp, :format => :date_only
+ %td
+ = l call_history.start_stamp, :format => :short
+ %td
- if call_history.voicemail_message?
.voicemail-message
%a{:href => sip_account_voicemail_messages_path(@sip_account, :anchor => "message_#{call_history.voicemail_message.id}")}
diff --git a/config/locales/de.yml b/config/locales/de.yml
index 087a2d3..e82f513 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -193,4 +193,5 @@ de:
default: ! '%A, %d. %B %Y, %H:%M Uhr'
long: ! '%A, %d. %B %Y, %H:%M Uhr'
short: ! '%d. %B, %H:%M Uhr'
- pm: nachmittags \ No newline at end of file
+ pm: nachmittags
+ date_only: '%d.%m.%Y' \ No newline at end of file
diff --git a/config/locales/en.yml b/config/locales/en.yml
index dabe98d..4f29799 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3,4 +3,6 @@ en:
dont_use_me: "NO ME USES!"
# Temporal, just till we create the Voice Mail stuff.
voice_mail: "Voice Mail"
- fax: "Fax" \ No newline at end of file
+ fax: "Fax"
+ time:
+ date_only: '%m.%d.%Y' \ No newline at end of file