Browse Source

Add meta tags for charset and convert some tabs to spaces for consistency (#1574)

* Add meta tag for charset.

* Add meta tag for charset in 500.html and convert some tabs to spaces for consistency.
Ryan Breaker 7 years ago
parent
commit
38d2333165
2 changed files with 7 additions and 5 deletions
  1. 3 2
      netbox/templates/500.html
  2. 4 3
      netbox/templates/_base.html

+ 3 - 2
netbox/templates/500.html

@@ -3,9 +3,10 @@
 <html lang="en">
 
 <head>
-	<title>Server Error</title>
-	<link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
+    <title>Server Error</title>
+    <link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
     <link rel="stylesheet" href="{% static 'font-awesome-4.7.0/css/font-awesome.min.css' %}">
+    <meta charset="UTF-8">
 </head>
 
 <body>

+ 4 - 3
netbox/templates/_base.html

@@ -3,12 +3,13 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-	<title>{% block title %}Home{% endblock %} - NetBox</title>
-	<link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
+    <title>{% block title %}Home{% endblock %} - NetBox</title>
+    <link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
     <link rel="stylesheet" href="{% static 'font-awesome-4.7.0/css/font-awesome.min.css' %}">
     <link rel="stylesheet" href="{% static 'jquery-ui-1.12.1/jquery-ui.css' %}">
-	<link rel="stylesheet" href="{% static 'css/base.css' %}?v{{ settings.VERSION }}">
+    <link rel="stylesheet" href="{% static 'css/base.css' %}?v{{ settings.VERSION }}">
     <link rel="icon" type="image/png" href="{% static 'img/netbox.ico' %}" />
+    <meta charset="UTF-8">
     <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
 </head>
 <body>