diff --git a/views/index.html b/views/index.html index d589218..0756c6c 100644 --- a/views/index.html +++ b/views/index.html @@ -1,132 +1,145 @@ -{{template "header" .}} +{{ template "header" . }}
- {{range $key, $value := .enginesNames}} {{ if eq $.Engine $key }}Translate - with: {{$value}} {{end}} {{end}} + {{ range $key, $value := .enginesNames }} {{ if eq $.Engine $key }}Translate + with: {{$value}} {{ end }} {{ end }}
- -

-
+
+
+ -
-
-
-
-
Source Text: - {{if .Translation.SourceTransliteration}} -
Transliteration: {{newlinetobr .Translation.SourceTransliteration}}{{end}} - {{if .TtsFrom}} + {{ if .Translation.SourceTransliteration }} +
+ Transliteration: {{ newlinetobr .Translation.SourceTransliteration }}{{ end }} + {{ if .TtsFrom }}
- {{end}} + {{ end }}
- {{ if .TranslateAll }} - {{range $key, $value := .TranslateAll}} + {{ range $key, $value := .TranslateAll }}
Engine: {{.Engine}} - {{if .AutoDetect}} -
Detected Language: {{.AutoDetect}}{{end}} - {{if .TargetTransliteration}} -
Transliteration: {{newlinetobr .TargetTransliteration}}{{end}} - {{if $.TtsTo}} + {{ if .AutoDetect }} +
+ Detected Language: {{.AutoDetect}}{{ end }} + {{ if .TargetTransliteration }} +
+ Transliteration: {{ newlinetobr .TargetTransliteration }}{{ end }} + {{ if $.TtsTo }}
- {{end}} + {{ end }}
- {{end}} - {{ else }} {{if .TranslationExists}} + {{ end }} + {{ else }} {{ if .TranslationExists }}
- {{if .Translation.AutoDetect}} -
Detected Language: {{.Translation.AutoDetect}}{{end}} - {{if .Translation.TargetTransliteration}} -
Transliteration: {{newlinetobr .Translation.TargetTransliteration}}{{end}} - {{if .TtsTo}} + {{ if .Translation.AutoDetect }} +
+ Detected Language: {{.Translation.AutoDetect}}{{ end }} + {{ if .Translation.TargetTransliteration }} +
+ Transliteration: {{ newlinetobr .Translation.TargetTransliteration }}{{ end }} + {{ if .TtsTo }}
- {{end}} + {{ end }}
- {{end}} - {{end}} -
- {{if .TranslationExists}} - - {{end}} - {{ if and .Engine .From .To .OriginalText }}

Copy translation link

- {{end}} - {{if .TranslationExists}} - + {{ end }} + {{ end }} +
+ {{ if .TranslationExists }} + + {{ end }} + {{ if and .Engine .From .To .OriginalText }} +

+ Copy translation link +

+ {{ end }} + {{ if .TranslationExists }} + + {{ else }} + + {{ end }}
+
-{{ template "footer" .}} +{{ template "footer" . }}