[Kimchi-devel] [RFC PATCH V2 19/31] Refer to kimchi plugin specific js/css in htmls

Lucio Correia luciojhc at linux.vnet.ibm.com
Mon Jun 22 22:59:33 UTC 2015


Since wok-ui.html now uses only wok-specific JavaScript and
CSS, it is necessary to include kimchi-specific code into
kimchi htmls.

Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
Signed-off-by: Gustavo Y. Ribeiro <gyr at linux.vnet.ibm.com>
---
 plugins/kimchi/ui/pages/guests.html.tmpl    |    9 +++++++++
 plugins/kimchi/ui/pages/host.html.tmpl      |    9 +++++++++
 plugins/kimchi/ui/pages/network.html.tmpl   |    4 ++++
 plugins/kimchi/ui/pages/storage.html.tmpl   |    4 ++++
 plugins/kimchi/ui/pages/templates.html.tmpl |    4 ++++
 5 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/plugins/kimchi/ui/pages/guests.html.tmpl b/plugins/kimchi/ui/pages/guests.html.tmpl
index b96dd21..b8a1259 100644
--- a/plugins/kimchi/ui/pages/guests.html.tmpl
+++ b/plugins/kimchi/ui/pages/guests.html.tmpl
@@ -26,6 +26,13 @@
 
 #silent ht = Template
 
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css">
+<script src="plugins/kimchi/js/kimchi.min.js"></script>
+</head>
+<body>
 <div id="guests-root-container">
     <div class="toolbar">
         <div class="tools" style="display:none">
@@ -54,3 +61,5 @@
         kimchi.guest_main();
     </script>
 </div>
+</body>
+</html>
diff --git a/plugins/kimchi/ui/pages/host.html.tmpl b/plugins/kimchi/ui/pages/host.html.tmpl
index 921b45f..300c25f 100644
--- a/plugins/kimchi/ui/pages/host.html.tmpl
+++ b/plugins/kimchi/ui/pages/host.html.tmpl
@@ -22,6 +22,13 @@
 #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True)
 #silent _ = t.gettext
 #silent _t = t.gettext
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css">
+<script src="plugins/kimchi/js/kimchi.min.js"></script>
+</head>
+<body>
 <div id="host-root-container">
     <div class="toolbar">
         <div class="tools">
@@ -166,3 +173,5 @@
 <script type="text/javascript">
     kimchi.host_main();
 </script>
+</body>
+</html>
diff --git a/plugins/kimchi/ui/pages/network.html.tmpl b/plugins/kimchi/ui/pages/network.html.tmpl
index 421f6bc..66613a6 100644
--- a/plugins/kimchi/ui/pages/network.html.tmpl
+++ b/plugins/kimchi/ui/pages/network.html.tmpl
@@ -24,6 +24,10 @@
 #silent _t = t.gettext
 <!DOCTYPE html>
 <html>
+<head>
+<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css">
+<script src="plugins/kimchi/js/kimchi.min.js"></script>
+</head>
 <body>
 <div class="toolbar">
     <div class="tools" style="display:none">
diff --git a/plugins/kimchi/ui/pages/storage.html.tmpl b/plugins/kimchi/ui/pages/storage.html.tmpl
index c9ba895..876c8a1 100644
--- a/plugins/kimchi/ui/pages/storage.html.tmpl
+++ b/plugins/kimchi/ui/pages/storage.html.tmpl
@@ -23,6 +23,10 @@
 #silent _t = t.gettext
 <!DOCTYPE html>
 <html>
+<head>
+<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css">
+<script src="plugins/kimchi/js/kimchi.min.js"></script>
+</head>
 <body>
 <div class="toolbar">
     <div class="tools" style="display:none">
diff --git a/plugins/kimchi/ui/pages/templates.html.tmpl b/plugins/kimchi/ui/pages/templates.html.tmpl
index cd9b8e5..af1cf3f 100644
--- a/plugins/kimchi/ui/pages/templates.html.tmpl
+++ b/plugins/kimchi/ui/pages/templates.html.tmpl
@@ -23,6 +23,10 @@
 #silent _t = t.gettext
 <!DOCTYPE html>
 <html>
+<head>
+<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css">
+<script src="plugins/kimchi/js/kimchi.min.js"></script>
+</head>
 <body>
 <div class="toolbar">
     <div class="tools" style="display:none">
-- 
1.7.1




More information about the Kimchi-devel mailing list