X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FproblemSummary.js;h=5f0fd44bf36a371ff1c2ae3c51dccf152b34af87;hb=b6487fb9c41705187cf97215fc9e8f86a59057c7;hp=e7e1db7c60377faa7417db3438571365f70e3853;hpb=b5fb8e693dc82037eec2617a7dc49d838a9a8441;p=vchess.git diff --git a/public/javascripts/components/problemSummary.js b/public/javascripts/components/problemSummary.js index e7e1db7c..5f0fd44b 100644 --- a/public/javascripts/components/problemSummary.js +++ b/public/javascripts/components/problemSummary.js @@ -2,18 +2,22 @@ Vue.component('my-problem-summary', { props: ['prob','preview'], template: ` -
-
+
-
+

{{ timestamp2date(prob.added) }}

+
`, methods: { + translate: function(text) { + return translations[text]; + }, getDiagram: function(fen) { const fenParsed = V.ParseFen(fen); return getDiagram({