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;
|
return $listing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Given a path name at the HEAD revision, it compares the file
|
// Given a path name at the HEAD revision, it compares the file
|
||||||
// between two revisions given. The actual path name at a given
|
// between two revisions given. The actual path name at a given
|
||||||
@ -645,9 +644,15 @@ class SubversionModel extends Model
|
|||||||
|
|
||||||
if ($full)
|
if ($full)
|
||||||
{
|
{
|
||||||
$src1 = @svn_cat ($info2[0]['url'], $info2[0]['revision']);
|
$old_text = @svn_cat ($info2[0]['url'], $info2[0]['revision']);
|
||||||
$src2 = @svn_cat ($info1[0]['url'], $info1[0]['revision']);
|
if ($old_text === FALSE)
|
||||||
$fileinfo['content'] = $this->_get_diff ($diff, $src1, $src2, TRUE, 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
|
else
|
||||||
{
|
{
|
||||||
|
@ -171,7 +171,7 @@ function format_diff ($a, $b, $css_class)
|
|||||||
{
|
{
|
||||||
if ($alen > $blen)
|
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)
|
if ($icon_image)
|
||||||
{
|
{
|
||||||
$icon_src = sprintf (
|
$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),
|
mime_content_type($icon_path),
|
||||||
base64_encode($icon_image)
|
base64_encode($icon_image)
|
||||||
);
|
);
|
||||||
|
@ -46,22 +46,31 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content .taskbar {
|
.content .taskbar {
|
||||||
font-size: 0.9em;
|
font-size: 1em;
|
||||||
font-weight: bold;
|
/*font-weight: bold;*/
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
padding: 0.6em 0.2em 0.6em 0.2em;
|
padding: 0.5em 0.2em 0.5em 0.2em;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background-color: #203150;
|
background-color: #203150;
|
||||||
|
|
||||||
|
line-height: 2em;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content .taskbar .boxa {
|
.content .taskbar .boxa {
|
||||||
/*vertical-align: bottom;*/
|
/*vertical-align: bottom;*/
|
||||||
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content .taskbar .boxb {
|
.content .taskbar .boxb {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content .taskbar .boxb .user_icon_img {
|
||||||
|
height: 2em; /* as large as line-height of taskbar */
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
.content .taskbar a {
|
.content .taskbar a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
@ -105,7 +114,7 @@ body {
|
|||||||
|
|
||||||
.content .projectbar {
|
.content .projectbar {
|
||||||
/*margin: 0.1em 0em 0em 0em;*/
|
/*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;
|
color: #FFFFFF;
|
||||||
background-color: #4665A2;
|
background-color: #4665A2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user