Merge pull request #1022 from hedgedoc/fix/translate

[1.x] Templates: Remove lang and add translation parameter
This commit is contained in:
David Mehren 2021-03-18 21:36:24 +01:00 committed by GitHub
commit 2ea40bb98d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

View file

@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<%- include('hedgedoc/head') %>
</head>
<body>
<body translate="no">
<%- include('hedgedoc/header') %>
<%- include('hedgedoc/body') %>
<%- include('hedgedoc/footer') %>

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8">
@ -37,7 +37,7 @@
<![endif]-->
</head>
<body>
<body translate="no">
{{{html}}}
<div class="ui-toc dropup unselectable hidden-print" style="display:none;">
<div class="pull-right dropdown">

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<%- include('index/head') %>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="<%= lang || "en" %>">
<html>
<head>
<meta charset="utf-8">
@ -60,7 +60,7 @@
<% } %>
</small>
</div>
<div id="doc" class="container markdown-body"><%= body %></div>
<div id="doc" class="container markdown-body" <% if (lang) { %> lang="<%= lang %>"<% } %>><%= body %></div>
<div class="ui-toc dropup unselectable hidden-print" style="display:none;">
<div class="pull-right dropdown">
<a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content">

View file

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html>
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
@ -48,7 +48,7 @@
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<body translate="no">
<div class="container">
<div class="reveal">
<div class="slides"><%= body %></div>