Skip to content

Commit 88e3f92

Browse files
authored
Merge branch 'master' into dark_theme_scrollbars
2 parents 4323760 + d145955 commit 88e3f92

File tree

6 files changed

+53
-12
lines changed

6 files changed

+53
-12
lines changed

.drone.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pipeline:
2424
branch: [ master ]
2525

2626
update-translations:
27-
image: alpine:3.7
27+
image: alpine:3.10
2828
commands:
2929
- mv ./options/locale/locale_en-US.ini ./options/
3030
- sed -i -e 's/="/=/g' -e 's/"$$//g' ./options/locale/*.ini
@@ -163,7 +163,7 @@ pipeline:
163163
event: [ tag ]
164164

165165
test-mysql8:
166-
image: golang:1.11
166+
image: golang:1.12
167167
pull: true
168168
group: test
169169
environment:
@@ -294,7 +294,7 @@ pipeline:
294294
branch: [ master ]
295295

296296
docker-dryrun:
297-
image: plugins/docker:17.12
297+
image: plugins/docker:18.09
298298
pull: true
299299
repo: gitea/gitea
300300
cache_from: gitea/gitea
@@ -303,7 +303,7 @@ pipeline:
303303
event: [ pull_request ]
304304

305305
release-docker:
306-
image: plugins/docker:17.12
306+
image: plugins/docker:18.09
307307
pull: true
308308
secrets: [ docker_username, docker_password ]
309309
repo: gitea/gitea
@@ -314,7 +314,7 @@ pipeline:
314314
branch: [ release/* ]
315315

316316
docker:
317-
image: plugins/docker:17.12
317+
image: plugins/docker:18.09
318318
secrets: [ docker_username, docker_password ]
319319
pull: true
320320
repo: gitea/gitea

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.12-alpine3.9 AS build-env
4+
FROM golang:1.12-alpine3.10 AS build-env
55

66
ARG GITEA_VERSION
77
ARG TAGS="sqlite sqlite_unlock_notify"
@@ -18,7 +18,7 @@ WORKDIR ${GOPATH}/src/code.gitea.io/gitea
1818
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
1919
&& make clean generate build
2020

21-
FROM alpine:3.9
21+
FROM alpine:3.10
2222
LABEL maintainer="[email protected]"
2323

2424
EXPOSE 22 3000

modules/git/commit_info.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string, cache LastCom
3737
entryCommit := convertCommit(rev)
3838
if entry.IsSubModule() {
3939
subModuleURL := ""
40-
if subModule, err := commit.GetSubModule(entry.Name()); err != nil {
40+
var fullPath string
41+
if len(treePath) > 0 {
42+
fullPath = treePath + "/" + entry.Name()
43+
} else {
44+
fullPath = entry.Name()
45+
}
46+
if subModule, err := commit.GetSubModule(fullPath); err != nil {
4147
return nil, nil, err
4248
} else if subModule != nil {
4349
subModuleURL = subModule.URL

public/css/theme-arc-green.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@ footer{background:#2e323e;border-top:1px solid #313131}
9898
.markdown:not(code) h2{border-bottom:1px solid #304251}
9999
.hljs,.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#9daccc}
100100
.markdown:not(code) .highlight pre,.markdown:not(code) pre{background-color:#2a2e3a;border:1px solid #404552}
101-
.markdown:not(code) table tr:nth-child(2n){background-color:#474d61}
101+
.markdown:not(code) table tr:nth-child(2n){background-color:#2a2e39}
102+
.markdown:not(code) table tr:nth-child(2n-1){background-color:#383b44}
103+
.markdown:not(code) table thead tr:nth-child(2n-1){background-color:#464c5d!important}
104+
.markdown:not(code) table td,.markdown:not(code) table th{border-color:#4c505c!important}
105+
.repository.file.editor.edit,.repository.wiki.new .CodeMirror{border-right:1px solid rgba(187,187,187,.6);border-left:1px solid rgba(187,187,187,.6);border-bottom:1px solid rgba(187,187,187,.6)}
106+
.repository.file.editor.edit .editor-preview,.repository.file.editor.edit .editor-preview-side,.repository.wiki.new .CodeMirror .editor-preview,.repository.wiki.new .CodeMirror .editor-preview-side{background:#353945}
107+
.repository.file.editor.edit .editor-preview .markdown:not(code).ui.segment,.repository.file.editor.edit .editor-preview-side .markdown:not(code).ui.segment,.repository.wiki.new .CodeMirror .editor-preview .markdown:not(code).ui.segment,.repository.wiki.new .CodeMirror .editor-preview-side .markdown:not(code).ui.segment{border-width:0}
102108
.ui.dropdown .menu{background:#2c303a}
103109
.ui.dropdown .menu>.message:not(.ui){color:#636363}
104110
.ui.input{color:#dbdbdb}

public/js/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ function initWikiForm() {
11441144
"text": plainText
11451145
},
11461146
function (data) {
1147-
preview.innerHTML = '<div class="markdown">' + data + '</div>';
1147+
preview.innerHTML = '<div class="markdown ui segment">' + data + '</div>';
11481148
emojify.run($('.editor-preview')[0]);
11491149
}
11501150
);
@@ -1224,7 +1224,7 @@ function setSimpleMDE($editArea) {
12241224
"text": plainText
12251225
},
12261226
function (data) {
1227-
preview.innerHTML = '<div class="markdown">' + data + '</div>';
1227+
preview.innerHTML = '<div class="markdown ui segment">' + data + '</div>';
12281228
emojify.run($('.editor-preview')[0]);
12291229
}
12301230
);

public/less/themes/arc-green.less

+30-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,36 @@ a.ui.basic.green.label:hover {
554554
}
555555

556556
.markdown:not(code) table tr:nth-child(2n) {
557-
background-color: #474d61;
557+
background-color: #2a2e39;
558+
}
559+
560+
.markdown:not(code) table tr:nth-child(2n-1) {
561+
background-color: #383b44;
562+
}
563+
564+
.markdown:not(code) table thead tr:nth-child(2n-1) {
565+
background-color: #464c5d !important;
566+
}
567+
568+
.markdown:not(code) table td,
569+
.markdown:not(code) table th {
570+
border-color: #4c505c !important;
571+
}
572+
573+
.repository.file.editor.edit,
574+
.repository.wiki.new .CodeMirror {
575+
border-right: 1px solid rgba(187,187,187, 0.6);
576+
border-left: 1px solid rgba(187,187,187, 0.6);
577+
border-bottom: 1px solid rgba(187,187,187, 0.6);
578+
579+
.editor-preview,
580+
.editor-preview-side {
581+
background: #353945;
582+
583+
.markdown:not(code).ui.segment {
584+
border-width: 0;
585+
}
586+
}
558587
}
559588

560589
.ui.dropdown .menu {

0 commit comments

Comments
 (0)