diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-08-09 12:05:28 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-08-09 12:05:28 +0800 |
commit | 4133101266b116d34b04a69e9957c0502daf72e8 (patch) | |
tree | 7bd884fbc7142fe99aeae2d963c0a1b94531dc03 /data | |
parent | 356bb4555e3d1eacd8115cb8a8f0c91483055a52 (diff) | |
download | gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.tar gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.tar.gz gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.tar.bz2 gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.tar.lz gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.tar.xz gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.tar.zst gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.zip |
Add dates to new log viewer
Diffstat (limited to 'data')
-rw-r--r-- | data/empathy-log-window.html | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/data/empathy-log-window.html b/data/empathy-log-window.html index db93240b5..d466c9117 100644 --- a/data/empathy-log-window.html +++ b/data/empathy-log-window.html @@ -12,6 +12,7 @@ body { div.row { margin-left: 1em; + clear: both; } div.row p { @@ -28,6 +29,11 @@ span.closed:after { content: "\25B8"; margin-right: 2px; } + +span.date { + float: right; + color: gray; +} </style> <script type="text/javascript"> function filterNodes (node, tagName) @@ -102,7 +108,7 @@ function expandAll() expandAllRecurse(treeview); } -function insertRow (path, text) +function insertRow (path, text, date_) { var treeview = document.getElementById('treeview'); var parentnode = treeview; @@ -144,14 +150,14 @@ function insertRow (path, text) var contents = document.createElement('p'); newnode.appendChild(contents); - contents.innerHTML = text; + contents.innerHTML = text + '<span class="date">' + date_ + '</span>'; // if the node is not a top-level node, hide it if (parentnode != treeview) newnode.style.display = 'none'; } -function changeRow (path, text) +function changeRow (path, text, date_) { var treeview = document.getElementById('treeview'); var node = treeview; @@ -164,7 +170,7 @@ function changeRow (path, text) // set the contents var contents = getContent(node); - contents.innerHTML = text; + contents.innerHTML = text + '<span class="date">' + date_ + '</span>'; } function deleteRow (path) |