diff --git a/module/mr/view/diff.html.php b/module/mr/view/diff.html.php index 2684cc66ba..57716856e0 100644 --- a/module/mr/view/diff.html.php +++ b/module/mr/view/diff.html.php @@ -93,8 +93,8 @@ lines as $line):?> - type != 'new') echo $line->oldlc?> - type != 'old') echo $line->newlc?> + type != 'new') echo $line->oldlc?> + type != 'old') echo $line->newlc?> type == 'old' ? preg_replace('/^\-/', '–', $line->line) : ($line->type == 'new' ? $line->line : ' ' . $line->line); ?> @@ -121,12 +121,12 @@ if(!isset($content->new[$newlc])) continue; } ?> - + type?> type == 'custom') echo "line-old"?> code'>old[$oldlc])) $content->old[$oldlc] = ''; if(!empty($oldlc)) echo $line->type != 'all' ? preg_replace('/^\-/', '–', $content->old[$oldlc]) : ' ' . $content->old[$oldlc]; ?> - + type?> type == 'custom') echo "line-new"?> code'>new[$newlc])) $content->new[$newlc] = ''; if(!empty($newlc)) echo $line->type != 'all' ? $content->new[$newlc] : ' ' . $content->new[$newlc]; diff --git a/module/repo/control.php b/module/repo/control.php index 46b6837bd1..84bd9ba78a 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -80,7 +80,6 @@ class repo extends control { $repoID = $this->repo->saveState(0, $objectID); if($this->viewType !== 'json') $this->commonAction($repoID, $objectID); - if(common::hasPriv('repo', 'create')) $this->lang->TRActions = html::a(helper::createLink('repo', 'create'), " " . $this->lang->repo->create, '', "class='btn btn-primary'"); $repoList = $this->repo->getList(0, '', $orderBy); $sonarRepoList = $this->loadModel('job')->getSonarqubeByRepo(array_keys($repoList)); diff --git a/module/repo/css/browse.css b/module/repo/css/browse.css index 9ecc8cca58..fd9c9002de 100644 --- a/module/repo/css/browse.css +++ b/module/repo/css/browse.css @@ -31,3 +31,4 @@ .popover-content {padding: 0;} .download-popover .table {margin-bottom: 0;} .download-popover .table td {padding-right: 0;} +.download-popover .popover-title {padding: 8px;} diff --git a/module/repo/css/common.css b/module/repo/css/common.css index 141b05002f..639fb35b57 100644 --- a/module/repo/css/common.css +++ b/module/repo/css/common.css @@ -189,4 +189,5 @@ h3 {font-size: 16px;} .header-btn .btn > .text {text-overflow: unset !important;} -#repoPageSize {right: 90px;} +#repoPageSize {right: 90px; padding: 8px 5px 6px 10px;} +.dropdown-menu li > a.selected {color: #3123ae !important; background: #f2eafc !important; line-height: 20px; border-radius: 5px;} diff --git a/module/repo/css/diff.css b/module/repo/css/diff.css index c35af3a9d7..57db0e5265 100644 --- a/module/repo/css/diff.css +++ b/module/repo/css/diff.css @@ -22,3 +22,5 @@ table.diff {margin-bottom: 0px;} .btn-download {border-right: none;} .body-modal .repo-diff {display: none;} .body-modal #mainMenu {padding-bottom: 40px;} + +.repoCode td.code {white-space: inherit;} diff --git a/module/repo/js/browse.js b/module/repo/js/browse.js index 0dcfbce1f0..e3c7de1962 100644 --- a/module/repo/js/browse.js +++ b/module/repo/js/browse.js @@ -36,7 +36,7 @@ function getCloneHtml(cloneLang, url) { var content = ''; content += ""; - content += "" + cloneLang + ""; + content += "" + cloneLang + ""; content += ""; content += ""; content += ""; @@ -53,7 +53,7 @@ $(function() content: getDownload(), html: true, placement: 'bottom', - template: '

li > ul > li > a:hover {color: white; background-color: #0c64eb; text-decoration: none;} #dropMenu .tree .has-list > ul > li {padding-top: 0;} -li > a.selected {color: #3123ae !important; background: #f2eafc !important; line-height: 20px; border-radius: 5px;} .search-list .list-group {padding: 7px 10px;} #swapper li>div.hide-in-search>a:focus, #swapper li>div.hide-in-search>a:hover {color: #838a9d; cursor: default;} #dropMenu .label-type {margin: 1px 10px;} diff --git a/module/repo/view/ajaxsidecommits.html.php b/module/repo/view/ajaxsidecommits.html.php index 74a1480b15..a78b02425a 100644 --- a/module/repo/view/ajaxsidecommits.html.php +++ b/module/repo/view/ajaxsidecommits.html.php @@ -20,7 +20,7 @@ if(isset($entry)) $pathInfo .= '&type=file'; SCM != 'Gitea'):?> - + repo->revisionA?> SCM != 'Subversion'):?> diff --git a/module/repo/view/create.html.php b/module/repo/view/create.html.php index ea5aa9a668..897b84c4f4 100644 --- a/module/repo/view/create.html.php +++ b/module/repo/view/create.html.php @@ -97,8 +97,7 @@ - - + goback, '', 'class="btn btn-wide"');?> diff --git a/module/repo/view/diff.html.php b/module/repo/view/diff.html.php index f867a31e32..5bff77e99f 100644 --- a/module/repo/view/diff.html.php +++ b/module/repo/view/diff.html.php @@ -101,8 +101,8 @@ lines as $line):?> - type != 'new') echo $line->oldlc?> - type != 'old') echo $line->newlc?> + type != 'new' and $line->oldlc) echo $line->oldlc?> + type != 'old' and $line->newlc) echo $line->newlc?> line = $repo->SCM == 'Subversion' ? htmlSpecialString($line->line) : $line->line; echo $line->type == 'old' ? preg_replace('/^\-/', '–', $line->line) : ($line->type == 'new' ? $line->line : ' ' . $line->line); @@ -125,18 +125,18 @@ } else { - $oldlc = $line->oldlc; + $oldlc = $line->oldlc > 0 ? $line->oldlc : ' '; $newlc = $line->newlc; if(!isset($content->new[$newlc])) continue; } ?> - + type?> type == 'custom') echo "line-old"?> code'>old[$oldlc])) $content->old[$oldlc] = ''; $content->old[$oldlc] = $repo->SCM == 'Subversion' ? htmlSpecialString($content->old[$oldlc]) : $content->old[$oldlc]; if(!empty($oldlc)) echo $line->type != 'all' ? preg_replace('/^\-/', '–', $content->old[$oldlc]) : ' ' . $content->old[$oldlc]; ?> - + type?> type == 'custom') echo "line-new"?> code'>new[$newlc])) $content->new[$newlc] = ''; $content->new[$newlc] = $repo->SCM == 'Subversion' ? htmlSpecialString($content->new[$newlc]) : $content->new[$newlc]; diff --git a/module/repo/view/edit.html.php b/module/repo/view/edit.html.php index 344d2535ba..db31220799 100644 --- a/module/repo/view/edit.html.php +++ b/module/repo/view/edit.html.php @@ -102,8 +102,7 @@ desc, "rows='3' class='form-control'"); ?> - - + goback, '', 'class="btn btn-wide"'); ?> diff --git a/module/repo/view/maintain.html.php b/module/repo/view/maintain.html.php index a6ca530c45..a1d931e8ae 100644 --- a/module/repo/view/maintain.html.php +++ b/module/repo/view/maintain.html.php @@ -11,6 +11,14 @@ */ ?> +
diff --git a/module/sonarqube/view/browse.html.php b/module/sonarqube/view/browse.html.php index d7585f7c2a..5712c34327 100644 --- a/module/sonarqube/view/browse.html.php +++ b/module/sonarqube/view/browse.html.php @@ -35,19 +35,19 @@ recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> - - - + + + $sonarqube): ?> - + - - - diff --git a/module/sonarqube/view/edit.html.php b/module/sonarqube/view/edit.html.php index 6387b70dff..ecd2042561 100644 --- a/module/sonarqube/view/edit.html.php +++ b/module/sonarqube/view/edit.html.php @@ -37,8 +37,7 @@ - -
sonarqube->id);?>sonarqube->name);?>sonarqube->url);?>sonarqube->id);?>sonarqube->name);?>sonarqube->url);?> actions;?>
name;?> url, $sonarqube->url, '_blank');?> + ", '',"title='{$lang->sonarqube->browseProject}' class='btn btn-primary'"); common::printLink('sonarqube', 'edit', "sonarqubeID=$id", " ", '',"title='{$lang->sonarqube->edit}' class='btn btn-primary'"); diff --git a/module/sonarqube/view/create.html.php b/module/sonarqube/view/create.html.php index 5404fddea5..58668209bb 100644 --- a/module/sonarqube/view/create.html.php +++ b/module/sonarqube/view/create.html.php @@ -37,8 +37,7 @@
+ goback, '', 'class="btn btn-wide"');?> password) ? $sonarqube->password : '', "class='form-control'");?>
+ goback, '', 'class="btn btn-wide"');?>