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> <!DOCTYPE html>
<html lang="en"> <html>
<head> <head>
<%- include('hedgedoc/head') %> <%- include('hedgedoc/head') %>
</head> </head>
<body> <body translate="no">
<%- include('hedgedoc/header') %> <%- include('hedgedoc/header') %>
<%- include('hedgedoc/body') %> <%- include('hedgedoc/body') %>
<%- include('hedgedoc/footer') %> <%- include('hedgedoc/footer') %>

View file

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

View file

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

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<%= lang || "en" %>"> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
@ -60,7 +60,7 @@
<% } %> <% } %>
</small> </small>
</div> </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="ui-toc dropup unselectable hidden-print" style="display:none;">
<div class="pull-right dropdown"> <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"> <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> <!doctype html>
<html lang="en"> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
@ -48,7 +48,7 @@
document.getElementsByTagName( 'head' )[0].appendChild( link ); document.getElementsByTagName( 'head' )[0].appendChild( link );
</script> </script>
</head> </head>
<body> <body translate="no">
<div class="container"> <div class="container">
<div class="reveal"> <div class="reveal">
<div class="slides"><%= body %></div> <div class="slides"><%= body %></div>