* Finish task #65978.

This commit is contained in:
liyuchun
2022-08-29 11:19:25 +08:00
parent 24fcabe346
commit 05034cc10c
6 changed files with 12 additions and 7 deletions
+1
View File
@@ -8,3 +8,4 @@
.osContent, .browserContent {margin: 0 0 5px;}
.browserContent {margin-left: -4px;}
.resolution {white-space: nowrap; overflow: hidden;}
.link-commit {overflow: hidden; white-space: nowrap; margin-right: 5px;}
+2 -1
View File
@@ -441,7 +441,8 @@
foreach($linkCommits as $commit)
{
$revision = substr($commit->revision, 0, 10);
echo ($canViewRevision ? html::a($this->createLink('repo', 'revision', "repoID={$commit->repo}&objectID=0&revision={$commit->revision}"), "$revision {$commit->comment}") : "$revisioin {$commit->comment}") . '<br />';
$title = $revision . ' ' . $commit->comment;
echo "<div class='link-commit' title='$title'>" . ($canViewRevision ? html::a($this->createLink('repo', 'revision', "repoID={$commit->repo}&objectID=0&revision={$commit->revision}"), $revision) . " $commit->comment" : $title) . '</div>';
}
?>
</td>
+2 -1
View File
@@ -4,7 +4,7 @@
#legendStories ul li:last-child {display: block;}
.main-actions .btn-toolbar .btn {padding-right: 6px; padding-left: 6px;}
.btn-edit-comment {z-index: 100;}
#legendRelated .table-data tbody>tr>th {width: 90px;}
#legendRelated .table-data tbody>tr>th {width: 100px;}
#legendStories .list-unstyled li a {padding: 6px;}
#legendStories .list-unstyled li a:not(.removeButton) {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
[lang^='zh'] #legendStories .list-unstyled li:last-child {padding: 6px 12px;}
@@ -13,3 +13,4 @@
.linkStoryTr > td {padding-left: 0px !important;}
.removeButton {margin-left: -10px;}
.resolution {white-space: nowrap; overflow: hidden;}
.link-commit {overflow: hidden; white-space: nowrap; margin-right: 5px;}
+2 -2
View File
@@ -586,11 +586,11 @@
$commitTitle = $revision . ' ' . $commit->comment;
if($canViewRevision)
{
echo "<li title='$commitTitle'>" . html::a($this->createLink('repo', 'revision', "repoID={$commit->repo}&objectID=0&revision={$commit->revision}"), "$commitTitle") . '</li>';
echo "<li class='link-commit' title='$commitTitle'>" . html::a($this->createLink('repo', 'revision', "repoID={$commit->repo}&objectID=0&revision={$commit->revision}"), $revision) . ' ' . $commit->comment . '</li>';
}
else
{
echo "<li title='$commitTitle'>" . "$commitTitle" . '</li>';
echo "<li class='link-commit' title='$commitTitle'>" . "$commitTitle" . '</li>';
}
}
?>
+2 -1
View File
@@ -1,8 +1,9 @@
.side-col .cell {padding: 0px;}
.side-col #legendProjectAndTask .list-unstyled {padding: 10px; border: 1px solid #ddd; border-top: 0px; margin: 0px;}
.tab-pane table {border: 1px solid #ddd; border-top: none;}
.MRThWidth {width: 90px !important;}
.MRThWidth {width: 100px !important;}
.btn-edit-comment {z-index: 100;}
.link-commit {overflow: hidden; white-space: nowrap; margin-right: 5px;}
#assignedTo a {border-color: transparent;}
#assignedTo a:hover {border-color: rgba(0,0,0,.2);}
+3 -2
View File
@@ -426,8 +426,9 @@
$canViewRevision = common::hasPriv('repo', 'revision');
foreach($linkCommits as $commit)
{
$revision = substr($commit->revision, 0, 10);
echo ($canViewRevision ? html::a($this->createLink('repo', 'revision', "repoID={$commit->repo}&objectID=0&revision={$commit->revision}"), "$revision {$commit->comment}") : "$revisioin {$commit->comment}") . '<br />';
$revision = substr($commit->revision, 0, 10);
$commitTitle = $revision . ' ' . $commit->comment;
echo "<div class='link-commit' title='$commitTitle'>" . ($canViewRevision ? html::a($this->createLink('repo', 'revision', "repoID={$commit->repo}&objectID=0&revision={$commit->revision}"), "$revision") . ' ' . $commit->comment : $commitTitle) . '<br />';
}
?>
</td>