summaryrefslogtreecommitdiff
path: root/public/views/codimd/body.ejs
diff options
context:
space:
mode:
authorErik Michelson2020-08-13 23:55:28 +0200
committerErik Michelson2020-08-13 23:55:28 +0200
commitc9442c3859810d1ef4a6a23a0027629e5545de7d (patch)
tree5838d1145d43423534e874161207539881bcc5b4 /public/views/codimd/body.ejs
parentda35e73346eba908071a7a5c5831a3d280769b9c (diff)
Made changed/created status translatable
The current version of CodiMD/HedgeDoc does only support translations to be filled on server-side rendering. To allow the translation of the changed/created texts, I duplicated the container that holds the text, and pre-filed these containers with the translation server-side. The client just needs to hide the unneeded container and show the right one to show the translated status text. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Diffstat (limited to 'public/views/codimd/body.ejs')
-rw-r--r--public/views/codimd/body.ejs5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/views/codimd/body.ejs b/public/views/codimd/body.ejs
index 5fe3d6bb..96cb8f95 100644
--- a/public/views/codimd/body.ejs
+++ b/public/views/codimd/body.ejs
@@ -7,8 +7,9 @@
<small>
<span>
<span class="ui-lastchangeuser" style="display: none;">&thinsp;<i class="ui-user-icon small" data-toggle="tooltip" data-placement="right"></i></span>
- <span class="ui-no-lastchangeuser">&thinsp;<i class="fa fa-clock-o fa-fw" style="width: 18px;"></i></span>
- &nbsp;<span class="text-uppercase ui-status-lastchange"></span>
+ <span class="ui-no-lastchangeuser">&thinsp;<i class="fa fa-clock-o fa-fw" style="width: 18px;"></i></span>&nbsp;
+ <span class="text-uppercase ui-status-lastchange changed"><%= __('changed') %></span>
+ <span class="text-uppercase ui-status-lastchange created"><%= __('created') %></span>
<span class="ui-lastchange text-uppercase"></span>
</span>
<span class="ui-permission dropdown pull-right">