From 7759b9ee6efb069a1f846b43bd6bc981f998e55a Mon Sep 17 00:00:00 2001 From: Peter Smit Date: Mon, 16 Feb 2015 14:44:27 +0200 Subject: Remove the "PHP" style formatting function The "PHP" formatting function doesn't add anything, except an undocumented date format. All usages in the templates have been replaced with DateFmtShort and DateFmtLong for convenience. --- templates/user/settings/applications.tmpl | 2 +- templates/user/settings/social.tmpl | 2 +- templates/user/settings/sshkeys.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/user/settings') diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index ce74ef7766..2e766a3dc7 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -22,7 +22,7 @@

{{.Name}}

-

{{$.i18n.Tr "settings.add_on"}} {{DateFormat .Created "M d, Y"}}{{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFormat .Updated "M d, Y"}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}}

+

{{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}}{{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}}

diff --git a/templates/user/settings/social.tmpl b/templates/user/settings/social.tmpl index b47f883e51..f2a30da791 100644 --- a/templates/user/settings/social.tmpl +++ b/templates/user/settings/social.tmpl @@ -18,7 +18,7 @@

{{Oauth2Name .Type}}

{{.Identity}}

-

{{$.i18n.Tr "settings.add_on"}} {{DateFormat .Created "M d, Y"}}{{$.i18n.Tr "settings.last_used"}} {{DateFormat .Updated "M d, Y"}}

+

{{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}

{{$.i18n.Tr "settings.unbind"}} diff --git a/templates/user/settings/sshkeys.tmpl b/templates/user/settings/sshkeys.tmpl index 48a4d343ae..42b76039ee 100644 --- a/templates/user/settings/sshkeys.tmpl +++ b/templates/user/settings/sshkeys.tmpl @@ -23,7 +23,7 @@

{{.Name}}

{{.Fingerprint}}

-

{{$.i18n.Tr "settings.add_on"}} {{DateFormat .Created "M d, Y"}}{{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFormat .Updated "M d, Y"}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}}

+

{{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}}{{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}}

{{$.CsrfTokenHtml}} -- cgit v1.2.3