svn: /pear2/BugManager/trunk/ src/BugManager/Comment.php www/pearworm/build/details.css www/pearworm/build/index.html www/pearworm/source/details.css www/pearworm/source/index.html
[email protected] (Greg Beaver) Sat, 18 Sep 2010 19:19:47 +0000
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
cellog Sat, 18 Sep 2010 19:19:47 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303520
Log:
display diff html properly now
Changed paths:
U pear2/BugManager/trunk/src/BugManager/Comment.php
A pear2/BugManager/trunk/www/pearworm/build/details.css
U pear2/BugManager/trunk/www/pearworm/build/index.html
A pear2/BugManager/trunk/www/pearworm/source/details.css
U pear2/BugManager/trunk/www/pearworm/source/index.html
Modified: pear2/BugManager/trunk/src/BugManager/Comment.php
===================================================================
--- pear2/BugManager/trunk/src/BugManager/Comment.php 2010-09-18 19:09:14 UTC (rev 303519)
+++ pear2/BugManager/trunk/src/BugManager/Comment.php 2010-09-18 19:19:47 UTC (rev 303520)
@@ -63,6 +63,7 @@
function toJson()
{
$ret = $this->info;
+ $ret['comment'] = str_replace(array("--STARTDIFF--\n", "--ENDDIFF--\n"), '', $ret['comment']);
$ret['commenter'] = $ret['commenter']->toJson();
$ret['timestamp'] = $ret['timestamp']->format('Y-m-d H:i \\U\\T\\C');
return $ret;
Added: pear2/BugManager/trunk/www/pearworm/build/details.css
===================================================================
--- pear2/BugManager/trunk/www/pearworm/build/details.css (rev 0)
+++ pear2/BugManager/trunk/www/pearworm/build/details.css 2010-09-18 19:19:47 UTC (rev 303520)
@@ -0,0 +1,2 @@
+.removed {color:#DE0019;}
+.added {color:#1AA100;}
\ No newline at end of file
Modified: pear2/BugManager/trunk/www/pearworm/build/index.html
===================================================================
--- pear2/BugManager/trunk/www/pearworm/build/index.html 2010-09-18 19:09:14 UTC (rev 303519)
+++ pear2/BugManager/trunk/www/pearworm/build/index.html 2010-09-18 19:19:47 UTC (rev 303520)
@@ -3,6 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pearworm</title>
+ <link href="details.css" type="text/css" rel="stylesheet"></link>
<script type="text/javascript" src="script/pearworm.js"></script>
</head>
<body></body>
Added: pear2/BugManager/trunk/www/pearworm/source/details.css
===================================================================
--- pear2/BugManager/trunk/www/pearworm/source/details.css (rev 0)
+++ pear2/BugManager/trunk/www/pearworm/source/details.css 2010-09-18 19:19:47 UTC (rev 303520)
@@ -0,0 +1,3 @@
+.removed {color:#DE0019;}
+.added {color:#1AA100;}
+#changeset {white-space: pre-wrap;}
\ No newline at end of file
Modified: pear2/BugManager/trunk/www/pearworm/source/index.html
===================================================================
--- pear2/BugManager/trunk/www/pearworm/source/index.html 2010-09-18 19:09:14 UTC (rev 303519)
+++ pear2/BugManager/trunk/www/pearworm/source/index.html 2010-09-18 19:19:47 UTC (rev 303520)
@@ -3,6 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pearworm</title>
+ <link href="details.css" type="text/css" rel="stylesheet"></link>
<script type="text/javascript" src="script/pearworm.js"></script>
</head>
<body></body>