fixed some bugs in the fulldiff view
This commit is contained in:
parent
5b691e780f
commit
db114f4aa4
@ -540,7 +540,6 @@ class SubversionModel extends Model
|
||||
return $listing;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Given a path name at the HEAD revision, it compares the file
|
||||
// between two revisions given. The actual path name at a given
|
||||
@ -645,9 +644,15 @@ class SubversionModel extends Model
|
||||
|
||||
if ($full)
|
||||
{
|
||||
$src1 = @svn_cat ($info2[0]['url'], $info2[0]['revision']);
|
||||
$src2 = @svn_cat ($info1[0]['url'], $info1[0]['revision']);
|
||||
$fileinfo['content'] = $this->_get_diff ($diff, $src1, $src2, TRUE, FALSE);
|
||||
$old_text = @svn_cat ($info2[0]['url'], $info2[0]['revision']);
|
||||
if ($old_text === FALSE)
|
||||
{
|
||||
// if the old URL can't give the contents,
|
||||
// try it with the latest url and the old revision number
|
||||
$old_text = @svn_cat ($info1[0]['url'], $info2[0]['revision']);
|
||||
}
|
||||
$new_text = @svn_cat ($info1[0]['url'], $info1[0]['revision']);
|
||||
$fileinfo['content'] = $this->_get_diff ($diff, $old_text, $new_text, TRUE, FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -171,7 +171,7 @@ function format_diff ($a, $b, $css_class)
|
||||
{
|
||||
if ($alen > $blen)
|
||||
{
|
||||
$cc .= htmlspecialchars(substr ($a, $alen, $alen - $blen));
|
||||
$cc .= htmlspecialchars(substr ($a, $blen, $alen - $blen));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ function show_taskbar ($con, $login)
|
||||
if ($icon_image)
|
||||
{
|
||||
$icon_src = sprintf (
|
||||
'<img style="vertical-align:middle;" src="data:%s;base64,%s" alt="" />',
|
||||
'<img class="user_icon_img" src="data:%s;base64,%s" alt="" />',
|
||||
mime_content_type($icon_path),
|
||||
base64_encode($icon_image)
|
||||
);
|
||||
|
@ -46,22 +46,31 @@ body {
|
||||
}
|
||||
|
||||
.content .taskbar {
|
||||
font-size: 0.9em;
|
||||
font-weight: bold;
|
||||
font-size: 1em;
|
||||
/*font-weight: bold;*/
|
||||
text-transform: uppercase;
|
||||
padding: 0.6em 0.2em 0.6em 0.2em;
|
||||
padding: 0.5em 0.2em 0.5em 0.2em;
|
||||
color: #ffffff;
|
||||
background-color: #203150;
|
||||
|
||||
line-height: 2em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.content .taskbar .boxa {
|
||||
/*vertical-align: bottom;*/
|
||||
float: none;
|
||||
}
|
||||
|
||||
.content .taskbar .boxb {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.content .taskbar .boxb .user_icon_img {
|
||||
height: 2em; /* as large as line-height of taskbar */
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.content .taskbar a {
|
||||
text-decoration: none;
|
||||
color: #ffffff;
|
||||
@ -105,7 +114,7 @@ body {
|
||||
|
||||
.content .projectbar {
|
||||
/*margin: 0.1em 0em 0em 0em;*/
|
||||
padding: 0.2em 0.2em 0.2em 0.2em;
|
||||
padding: 0.5em 0.5em 0.5em 0.5em;
|
||||
color: #FFFFFF;
|
||||
background-color: #4665A2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user