提交 bf3d031d 编写于 作者: F Frankie Wu

remove default.css, use body.css instead

上级 2dc2ffa4
......@@ -161,28 +161,6 @@ public class HtmlMessageCodec implements MessageCodec {
return count;
}
//<style>
//.nested {
//width:100%;
//display:none;
//}
//</style>
//
//<script>
//function show(a,id) {
// var cell = document.getElementById(id);
// var text = a.innerHTML;
//
// if (text == '[:: show ::]') {
// a.innerHTML = '[:: hide ::]';
// cell.src = "file:///Users/qmwu/project/tracking/cat-core/target/test.html";
// cell.style.display='block';
// } else {
// a.innerHTML = '[:: show ::]';
// cell.style.display='none';
// }
//}
//</script>
protected int encodeLogViewLink(Message message, ChannelBuffer buf, int level, LineCounter counter) {
BufferHelper helper = m_bufferHelper;
int count = 0;
......@@ -190,7 +168,7 @@ public class HtmlMessageCodec implements MessageCodec {
if (counter != null) {
counter.inc();
count += helper.tr1(buf, counter.getCount() % 2 != 0 ? "odd" : "even");
count += helper.tr1(buf, "link");
} else {
count += helper.tr1(buf, null);
}
......
......@@ -3,7 +3,7 @@ package com.dianping.cat.report.page.logview;
public enum JspFile {
LOGVIEW("/jsp/report/logview.jsp"),
LOGVIEW_NO_HEADER("/jsp/report/logview_bare.jsp"),
LOGVIEW_NO_HEADER("/jsp/report/logview_no_header.jsp"),
;
......
body {
font-family: arial, helvetica, sans-serif;
font-size: small;
background: white;
color: black;
margin: 4px;
padding: 0;
font: Message-Box;
}
html { margin: 0 }
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul.tabs {
border-bottom: 1px solid gray;
list-style-type: none;
position: relative;
padding: 0em;
padding-top: 0.4em;
padding-bottom: 0.4em;
}
.tabs li {
display: inline;
margin: 0em 0.4em 0em 0.4em;
padding: 0.4em 0.4em 0.4em 0.4em;
overflow: hidden;
border-top: 1px solid gray;
border-left: 1px solid gray;
border-right: 1px solid gray;
}
.tabs li.selected {
background: #ccddff;
border-bottom: 1px solid white;
}
tr.head {
background-color: #e8e8e8;
}
tr.strip {
background-color: #f2f2f2;
}
tr.head th {
background-color: #f2f2f2;
border-bottom: 1px solid #c4c4c4;
}
tr th {
background-color: #f2f2f2;
}
......@@ -16,6 +16,12 @@ tr.even td {
vertical-align: top;
}
tr.link td {
font-size: small;
white-space: nowrap;
vertical-align: top;
}
.warn {
color: yellow;
}
......
......@@ -6,7 +6,6 @@
<jsp:useBean id="payload" type="com.dianping.cat.report.page.failure.Payload" scope="request" />
<jsp:useBean id="model" type="com.dianping.cat.report.page.failure.Model" scope="request" />
<res:useCss value='${res.css.local.default_css}' target="head-css" />
<res:useCss value='${res.css.local.style_css}' target="head-css" />
<res:useCss value='${res.css.local.failure_css}' target="head-css" />
......
......@@ -6,8 +6,6 @@
<jsp:useBean id="payload" type="com.dianping.cat.report.page.ip.Payload" scope="request" />
<jsp:useBean id="model" type="com.dianping.cat.report.page.ip.Model" scope="request" />
<res:useCss value='${res.css.local.default_css}' target="head-css" />
<res:useCss value='${res.css.local.style_css}' target="head-css" />
<res:useCss value='${res.css.local.ip_css}' target="head-css"/>
<a:report title="Hot IP Report" timestamp="2012-02-07">
......
......@@ -6,8 +6,6 @@
<jsp:useBean id="payload" type="com.dianping.cat.report.page.logview.Payload" scope="request"/>
<jsp:useBean id="model" type="com.dianping.cat.report.page.logview.Model" scope="request"/>
<res:useCss value="${res.css.local.default_css}" target="head-css" />
<res:useCss value="${res.css.local.style_css}" target="head-css" />
<res:useCss value="${res.css.local.logview_css}" target="head-css"/>
<res:useJs value="${res.js.local['jquery-1.7.1.js']}" target="head-js"/>
......
......@@ -12,7 +12,6 @@
var domain = '${model.currentDomain}';
</script>
<res:useCss value='${res.css.local.default_css}' target="head-css" />
<res:useCss value='${res.css.local.style_css}' target="head-css" />
<res:useCss value='${res.css.local.failure_css}' target="head-css" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册