You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.0 KiB

  1. {# Copyright (C) 2014-2017 Maciej Delmanowski <drybjed@drybjed.net>
  2. # Copyright (C) 2015-2017 Robin Schneider <ypid@riseup.net>
  3. # Copyright (C) 2014-2017 DebOps <https://debops.org/>
  4. # SPDX-License-Identifier: GPL-3.0-only
  5. #}
  6. <!DOCTYPE html>
  7. <html lang="en">
  8. {% set nginx_tpl_domain = item.welcome_domain | d(item.name if (item.name is string) else item.name[0] | d(ansible_domain)) %}
  9. {% if nginx_tpl_domain %}
  10. {% set nginx_tpl_welcome_title = '<a href="' + item.welcome_url_scheme | d("https") + '://' + nginx_tpl_domain + '/">' + nginx_tpl_domain + '</a>' %}
  11. {% else %}
  12. {% set nginx_tpl_welcome_title = '<a href="http://companyname.website/">CompanyName.website</a>' %}
  13. {% endif %}
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <meta name="referrer" content="no-referrer">
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <title>{{ nginx_tpl_domain | d("CompanyName.website") }}</title>
  19. {% if item.welcome_css | d(True) | bool %}
  20. <link rel="stylesheet" type="text/css" media="screen" href="normalize.css">
  21. <style type="text/css" media="screen">
  22. html {
  23. font-size: 17px;
  24. font-family: "Droid Sans Condensed", sans-serif;
  25. }
  26. @media (max-width: 900px) {
  27. html { font-size: 15px; }
  28. }
  29. @media (max-width: 400px) {
  30. html { font-size: 13px; }
  31. }
  32. #content {
  33. margin: 0 auto;
  34. width: 600px;
  35. padding: 2rem;
  36. text-align: center;
  37. }
  38. @media (max-width: 900px) {
  39. #content {
  40. width: 70%;
  41. padding: 1.5rem;
  42. }
  43. }
  44. h1 {
  45. padding-bottom: 0.05em;
  46. border-bottom: 2px solid #0092DF;
  47. }
  48. a {
  49. text-decoration: none;
  50. color: #0092DF;
  51. }
  52. </style>
  53. {% endif %}
  54. </head>
  55. <body>
  56. <div id="content">
  57. <h2>{{ nginx_tpl_welcome_title }}</h2>
  58. {% if nginx_tpl_domain %}
  59. <p id="http-status"><strong>{{ item.welcome_status_choices | d([ '200 OK', "418 I'm a teapot" ]) | random }}</strong></p>
  60. {% elif not nginx_tpl_domain %}
  61. <p>If you're reading this, the web server was installed correctly.</p>
  62. {% endif %}
  63. </div>
  64. </body>
  65. </html>