Permalink
Browse files

Modify log view.

  • Loading branch information...
1 parent 8d10e8d commit 32b7ab52d2889484e5ab0e3ef5b8d6637edaf1a5 @masamitsu-murase committed Mar 25, 2012
@@ -13,13 +13,14 @@
#content_frame{
width: 100%;
height: 500px;
- background-color: #AAA;
}
#content_frame > div.vsplitbar{
- width: 5px;
+ width: 3px;
background-color: inherit;
cursor: e-resize;
cursor: col-resize;
+ border-left: solid 1px black;
+ border-right: solid 1px black;
}
#content_frame > div.vsplitbar.active{
background-color: #000;
@@ -114,6 +115,19 @@ table.file_list_view tbody td.name > .dir_link:hover{
}
dl.log_view{
}
+dl.log_view > dt{
+ font-size: larger;
+ text-decoration: underline;
+}
+dl.log_view > dd{
+ margin: 0px;
+ padding: 0px;
+}
+dl.log_view > dd > dl{
+ margin: 0px;
+ border: solid 1px black;
+ padding: 0px;
+}
dl.log_view > dd > dl > dt{
cursor: pointer;
}
@@ -134,6 +148,17 @@ dl.log_view > dd > dl > dt > span.comment{
text-align: left;
padding: 0.1em 0.5em;
font-family: monospace;
+ display: none;
+}
+dl.log_view > dd > dl > dt.collapsed > span.comment{
+ display: inline;
+}
+dl.log_view > dd > dl > dd{
+ margin: 0px;
+ padding: 0.1em 1em 0.1em 4em;
+}
+dl.log_view > dd > dl > dd > div{
+ padding-bottom: 1em;
}
dl.log_view > dd > dl > dt:nth-child(4n + 1), dl.log_view > dd > dl > dd:nth-child(4n + 2){
background-color: #EEE;
@@ -26,9 +26,11 @@
<div id="basic_info"></div>
<div id="main">
<h2>Contents</h2>
- <div id="content_frame">
- <div id="dir_tree" class="ui-widget-content"></div>
- <div id="file_list" class="ui-widget-content"></div>
+ <div class="ui-widget-content">
+ <div id="content_frame">
+ <div id="dir_tree"></div>
+ <div id="file_list"></div>
+ </div>
</div>
<h2>Logs</h2>
@@ -313,7 +313,7 @@ $(function(){
case "revision":
case "size":
var attr = this.m_sort.attr;
- sort_by = function(item){ return item.info(attr); };
+ sort_by = function(item){ return item.info(attr) || ""; };
break;
case "date":
sort_by = function(item){ return item.info("date").getTime(); };
@@ -421,7 +421,7 @@ $(function(){
td = document.createElement("td");
tr.appendChild(td);
$(td).addClass("author");
- td.appendChild(document.createTextNode(rsc.info("author")));
+ td.appendChild(document.createTextNode(rsc.info("author") || ""));
// revision
td = document.createElement("td");
@@ -570,18 +570,19 @@ $(function(){
elem = document.createElement("span");
dt.appendChild(elem);
$(elem).addClass(LogView.CLASS_AUTHOR);
- elem.appendChild(document.createTextNode(log.author));
+ elem.appendChild(document.createTextNode(log.author || ""));
// first line of log
elem = document.createElement("span");
dt.appendChild(elem);
$(elem).addClass(LogView.CLASS_COMMENT);
- var length = log.comment.indexOf("\n");
+ var comment = (log.comment || "");
+ var length = comment.indexOf("\n");
if (length < 0 || length > LogView.COMMENT_LENGTH){
length = LogView.COMMENT_LENGTH;
}
- var text = log.comment.substr(0, length);
- if (text.length < log.comment.length){
+ var text = comment.substr(0, length);
+ if (text.length < comment.length){
text += "...";
}
elem.appendChild(document.createTextNode(text));
@@ -591,7 +592,7 @@ $(function(){
logs_root.appendChild(dd);
var div = document.createElement("div");
dd.appendChild(div);
- div.appendChild(document.createTextNode(log.comment));
+ div.appendChild(document.createTextNode(comment));
$(div).hide(); // log comment is hidden in default.
// toggle log comment

0 comments on commit 32b7ab5

Please sign in to comment.