{% load i18n %}
<!DOCTYPE html>
<html>
<head>
  <meta content='IE=edge' http-equiv='X-UA-Compatible' />
  <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
  <title>{{instance_name}} ({{instance_id}})</title>
  <link rel="stylesheet" href="{{ STATIC_URL }}dashboard/scss/serial_console.css" type="text/css" media="screen">
  <script src="{% url 'horizon:jsi18n' 'horizon' %}"></script>
  <script src='{{ STATIC_URL }}horizon/lib/term.js'></script>
  <script src="{{ STATIC_URL }}horizon/lib/jquery/jquery.js"></script>
  <script src="{{ STATIC_URL }}horizon/lib/angular/angular.js"></script>
  <script src="{{ STATIC_URL }}horizon/js/angular/directives/serialConsole.js"></script>
</head>
<body ng-app='serialConsoleApp'>

    {% if error_message %}
        {{ error_message }}
    {% else %}
        <serial-console connection='"{{console_url}}"'></serial-console>
    {% endif %}

</body>
</html>
{% load i18n %}
{% load url from future %}
<!DOCTYPE html>
<html>
<head>
  <meta content='IE=edge' http-equiv='X-UA-Compatible' />
  <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
  <title>{{instance_name}} ({{instance_id}})</title>
  <link rel="stylesheet" href="{{ STATIC_URL }}dashboard/scss/serial_console.css" type="text/css" media="screen">
  <script src="{% url 'horizon:jsi18n' 'horizon' %}"></script>
  <script src='{{ STATIC_URL }}horizon/lib/term.js'></script>
  <script src="{{ STATIC_URL }}horizon/lib/jquery/jquery.js"></script>
  <script src="{{ STATIC_URL }}horizon/lib/angular/angular.js"></script>
  <script src="{{ STATIC_URL }}horizon/js/angular/directives/serialConsole.js"></script>
</head>
<body ng-app='serialConsoleApp'>

    {% if error_message %}
        {{ error_message }}
    {% else %}
        <serial-console connection='"{{console_url}}"'></serial-console>
    {% endif %}

</body>
</html>
Load "url" in Serial Console html
Load "url" in Serial Console html

Add the line to load the "url" directive in
the Serial Console html template.

Change-Id: I49e96d5e21e97fad33e71377448945ab5176878c
Closes-bug: #1426611
