X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FproblemSummary.js;h=5f0fd44bf36a371ff1c2ae3c51dccf152b34af87;hb=4bd00ce35a201f739909783859e49fe07354a22e;hp=6b006cbbe241b8abd11833a20db72463e676647b;hpb=a5d5668613d9a3d04c9a4f8b69122d02b7322137;p=vchess.git diff --git a/public/javascripts/components/problemSummary.js b/public/javascripts/components/problemSummary.js index 6b006cbb..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({