mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Issue #: 5945 - replace all content/tab_xxxxxxx.html with jsp/tab_xxxxxxx.jsp
This commit is contained in:
parent
43169f3f96
commit
01508aa6b3
6
ui/content/tab_accounts.html → ui/jsp/tab_accounts.jsp
Normal file → Executable file
6
ui/content/tab_accounts.html → ui/jsp/tab_accounts.jsp
Normal file → Executable file
@ -1,4 +1,8 @@
|
||||
<script type="text/javascript" src="scripts/cloud.core.accounts.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.accounts.js?t=<%=milliseconds%>"></script>
|
||||
|
||||
<!-- Accounts -->
|
||||
<div class="maincontent" style="display:block;" id="submenu_content_account">
|
||||
6
ui/content/tab_configuration.html → ui/jsp/tab_configuration.jsp
Normal file → Executable file
6
ui/content/tab_configuration.html → ui/jsp/tab_configuration.jsp
Normal file → Executable file
@ -1,4 +1,8 @@
|
||||
<script type="text/javascript" src="scripts/cloud.core.configuration.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.configuration.js?t=<%=milliseconds%>"></script>
|
||||
|
||||
<!-- Content Panel -->
|
||||
<!-- Submenu -->
|
||||
0
ui/content/tab_dashboard.html → ui/jsp/tab_dashboard.jsp
Normal file → Executable file
0
ui/content/tab_dashboard.html → ui/jsp/tab_dashboard.jsp
Normal file → Executable file
7
ui/jsp/tab_domains.jsp
Normal file → Executable file
7
ui/jsp/tab_domains.jsp
Normal file → Executable file
@ -1,5 +1,8 @@
|
||||
|
||||
<script type="text/javascript" src="scripts/cloud.core.domains.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.domains.js?t=<%=milliseconds%>"></script>
|
||||
|
||||
<!-- Content Panel -->
|
||||
<div class="maincontent" style="display:block;" id="submenu_content_domains">
|
||||
|
||||
6
ui/content/tab_events.html → ui/jsp/tab_events.jsp
Normal file → Executable file
6
ui/content/tab_events.html → ui/jsp/tab_events.jsp
Normal file → Executable file
@ -1,4 +1,8 @@
|
||||
<script type="text/javascript" src="scripts/cloud.core.events.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.events.js?t=<%=milliseconds%>"></script>
|
||||
|
||||
<!-- Content Panel -->
|
||||
<!-- Submenus -->
|
||||
6
ui/content/tab_hosts.html → ui/jsp/tab_hosts.jsp
Normal file → Executable file
6
ui/content/tab_hosts.html → ui/jsp/tab_hosts.jsp
Normal file → Executable file
@ -1,4 +1,8 @@
|
||||
<script type="text/javascript" src="scripts/cloud.core.hosts.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.hosts.js?t=<%=milliseconds%>"></script>
|
||||
|
||||
<div class="maincontent" id="submenu_content_routing" style="display:block">
|
||||
<div id="maincontent_title">
|
||||
6
ui/content/tab_instances.html → ui/jsp/tab_instances.jsp
Normal file → Executable file
6
ui/content/tab_instances.html → ui/jsp/tab_instances.jsp
Normal file → Executable file
@ -1,4 +1,8 @@
|
||||
<script type="text/javascript" src="scripts/cloud.core.instances.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.instances.js?t=<%=milliseconds%>"></script>
|
||||
|
||||
<!-- Content Panel -->
|
||||
<!-- Submenu -->
|
||||
6
ui/content/tab_networking.html → ui/jsp/tab_networking.jsp
Normal file → Executable file
6
ui/content/tab_networking.html → ui/jsp/tab_networking.jsp
Normal file → Executable file
@ -1,4 +1,8 @@
|
||||
<script type="text/javascript" src="scripts/cloud.core.network.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.network.js?t=<%=milliseconds%>"></script>
|
||||
<!-- Content Panel -->
|
||||
<!-- Submenus -->
|
||||
<div class="submenu_links">
|
||||
6
ui/content/tab_storage.html → ui/jsp/tab_storage.jsp
Normal file → Executable file
6
ui/content/tab_storage.html → ui/jsp/tab_storage.jsp
Normal file → Executable file
@ -1,4 +1,8 @@
|
||||
<script type="text/javascript" src="scripts/cloud.core.storage.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.storage.js?t=<%=milliseconds%>"></script>
|
||||
|
||||
<div class="submenu_links">
|
||||
<div class="submenu_links_on" id="submenu_pool">
|
||||
6
ui/content/tab_templates.html → ui/jsp/tab_templates.jsp
Normal file → Executable file
6
ui/content/tab_templates.html → ui/jsp/tab_templates.jsp
Normal file → Executable file
@ -1,4 +1,8 @@
|
||||
<script type="text/javascript" src="scripts/cloud.core.templates.js"></script>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%
|
||||
long milliseconds = new Date().getTime();
|
||||
%>
|
||||
<script type="text/javascript" src="scripts/cloud.core.templates.js?t=<%=milliseconds%>"></script>
|
||||
|
||||
<div class="submenu_links">
|
||||
<div class="submenu_links_on" id="submenu_template">Template</div>
|
||||
@ -66,7 +66,7 @@ function showDomainsTab() {
|
||||
|
||||
function drawTree(id, level, container) {
|
||||
$.ajax({
|
||||
data: "command=listDomainChildren&id="+id+"&response=json&pageSize=-1",
|
||||
data: createURL("command=listDomainChildren&id="+id+"&response=json&pageSize=-1"),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
@ -321,7 +321,7 @@ function showDomainsTab() {
|
||||
rightPanelSearchResult.show();
|
||||
var keyword = searchInput.val();
|
||||
$.ajax({
|
||||
data: "command=listDomains&keyword="+keyword+"&response=json&pageSize=-1", //pageSize=-1 will return all items (no limitation)
|
||||
data: createURL("command=listDomains&keyword="+keyword+"&response=json&pageSize=-1"), //pageSize=-1 will return all items (no limitation)
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
@ -350,7 +350,7 @@ function showDomainsTab() {
|
||||
function drawRootNode(rootDomainId) {
|
||||
treeContentBox.empty();
|
||||
$.ajax({
|
||||
data: "command=listDomains&id="+rootDomainId+"&response=json&pageSize=-1", //pageSize=-1 will return all items (no limitation)
|
||||
data: createURL("command=listDomains&id="+rootDomainId+"&response=json&pageSize=-1"), //pageSize=-1 will return all items (no limitation)
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
|
||||
@ -29,7 +29,7 @@ $(document).ready(function() {
|
||||
mainContainer = $("#maincontentarea");
|
||||
|
||||
// Tab Links, dashboard is the initial active tab
|
||||
mainContainer.load("content/tab_dashboard.html");
|
||||
mainContainer.load("jsp/tab_dashboard.jsp");
|
||||
|
||||
// Default AJAX Setup
|
||||
$.ajaxSetup({
|
||||
@ -285,31 +285,31 @@ $(document).ready(function() {
|
||||
if (tabId == "menutab_dashboard_user" || tabId == "menutab_dashboard_root" || tabId == "menutab_dashboard_domain") {
|
||||
showDashboardTab();
|
||||
} else if (tabId == "menutab_vm") {
|
||||
mainContainer.load("content/tab_instances.html", function() {
|
||||
mainContainer.load("jsp/tab_instances.jsp", function() {
|
||||
showInstancesTab(tab.data("domainId"), tab.data("account"));
|
||||
});
|
||||
} else if (tabId == "menutab_networking") {
|
||||
mainContainer.load("content/tab_networking.html", function() {
|
||||
mainContainer.load("jsp/tab_networking.jsp", function() {
|
||||
showNetworkingTab(tab.data("domainId"), tab.data("account"));
|
||||
});
|
||||
} else if (tabId == "menutab_templates") {
|
||||
mainContainer.load("content/tab_templates.html", function() {
|
||||
mainContainer.load("jsp/tab_templates.jsp", function() {
|
||||
showTemplatesTab();
|
||||
});
|
||||
} else if (tabId == "menutab_events") {
|
||||
mainContainer.load("content/tab_events.html", function() {
|
||||
mainContainer.load("jsp/tab_events.jsp", function() {
|
||||
showEventsTab(tab.data("showEvents"));
|
||||
});
|
||||
} else if (tabId == "menutab_hosts") {
|
||||
mainContainer.load("content/tab_hosts.html", function() {
|
||||
mainContainer.load("jsp/tab_hosts.jsp", function() {
|
||||
showHostsTab();
|
||||
});
|
||||
} else if (tabId == "menutab_storage") {
|
||||
mainContainer.load("content/tab_storage.html", function() {
|
||||
mainContainer.load("jsp/tab_storage.jsp", function() {
|
||||
showStorageTab(tab.data("domainId"), tab.data("targetTab"));
|
||||
});
|
||||
} else if (tabId == "menutab_accounts") {
|
||||
mainContainer.load("content/tab_accounts.html", function() {
|
||||
mainContainer.load("jsp/tab_accounts.jsp", function() {
|
||||
showAccountsTab(tab.data("domainId"));
|
||||
});
|
||||
} else if (tabId == "menutab_domain") {
|
||||
@ -317,7 +317,7 @@ $(document).ready(function() {
|
||||
showDomainsTab();
|
||||
});
|
||||
} else if (tabId == "menutab_configuration") {
|
||||
mainContainer.load("content/tab_configuration.html", function() {
|
||||
mainContainer.load("jsp/tab_configuration.jsp", function() {
|
||||
showConfigurationTab();
|
||||
});
|
||||
} else {
|
||||
@ -342,7 +342,7 @@ $(document).ready(function() {
|
||||
|
||||
// Dashboard Tab
|
||||
function showDashboardTab() {
|
||||
mainContainer.load("content/tab_dashboard.html", function() {
|
||||
mainContainer.load("jsp/tab_dashboard.jsp", function() {
|
||||
$(".header_topright #header_username").text($.cookie("username"));
|
||||
|
||||
if (isAdmin()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user