mirror of
https://github.com/go-gitea/gitea
synced 2024-08-19 22:00:48 +02:00
Merge branch 'develop' of github.com:gogits/gogs into develop
This commit is contained in:
commit
bfe6027266
@ -539,10 +539,10 @@ func runWeb(ctx *cli.Context) {
|
||||
m.Group("", func() {
|
||||
m.Get("/releases", repo.Releases)
|
||||
m.Get("/^:type(issues|pulls)$", repo.RetrieveLabels, repo.Issues)
|
||||
m.Get("/^:type(issues|pulls)$/:index", repo.ViewIssue)
|
||||
m.Get("/labels/", repo.RetrieveLabels, repo.Labels)
|
||||
m.Get("/milestones", repo.Milestones)
|
||||
}, middleware.RepoRef())
|
||||
m.Get("/^:type(issues|pulls)$/:index", repo.ViewIssue)
|
||||
|
||||
// m.Get("/branches", repo.Branches)
|
||||
|
||||
|
@ -350,7 +350,7 @@ func (repo *Repository) SavePatch(index int64, patch []byte) error {
|
||||
return fmt.Errorf("PatchPath: %v", err)
|
||||
}
|
||||
|
||||
os.MkdirAll(path.Dir(patchPath), os.ModePerm)
|
||||
os.MkdirAll(filepath.Dir(patchPath), os.ModePerm)
|
||||
if err = ioutil.WriteFile(patchPath, patch, 0644); err != nil {
|
||||
return fmt.Errorf("WriteFile: %v", err)
|
||||
}
|
||||
|
@ -1863,9 +1863,6 @@ footer .container .links > *:first-child {
|
||||
position: relative;
|
||||
width: 325%;
|
||||
}
|
||||
.repository.file.list #repo-files-table thead th .ui.sha.label {
|
||||
font-weight: bold;
|
||||
}
|
||||
.repository.file.list #repo-files-table thead .ui.avatar {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
@ -2243,6 +2240,9 @@ footer .container .links > *:first-child {
|
||||
font-size: 13px;
|
||||
padding: 6px 40px 4px 35px;
|
||||
}
|
||||
.repository #commits-table.ui.basic.striped.table tbody tr:nth-child(2n) {
|
||||
background-color: rgba(0, 0, 0, 0.02) !important;
|
||||
}
|
||||
.repository .diff-detail-box {
|
||||
margin: 15px 0;
|
||||
line-height: 30px;
|
||||
@ -2318,6 +2318,7 @@ footer .container .links > *:first-child {
|
||||
}
|
||||
.repository .diff-file-box .code-diff pre {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.repository .diff-file-box .code-diff .lines-num {
|
||||
border-right: 1px solid #d4d4d5;
|
||||
|
@ -938,7 +938,7 @@ $(window).load(function () {
|
||||
}
|
||||
|
||||
// Code view.
|
||||
if ($('.code-view').length > 0) {
|
||||
if ($('.code-view .linenums').length > 0) {
|
||||
var $block = $('.code-view .linenums');
|
||||
var lines = $block.html().split("\n");
|
||||
$block.html('');
|
||||
|
@ -152,10 +152,6 @@
|
||||
position: relative;
|
||||
width: 325%;
|
||||
}
|
||||
|
||||
.ui.sha.label {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.ui.avatar {
|
||||
margin-bottom: 5px;
|
||||
@ -602,6 +598,9 @@
|
||||
padding: 6px 40px 4px 35px;
|
||||
}
|
||||
}
|
||||
&.ui.basic.striped.table tbody tr:nth-child(2n) {
|
||||
background-color: rgba(0, 0, 0, .02)!important;
|
||||
}
|
||||
}
|
||||
|
||||
.diff-detail-box {
|
||||
@ -677,12 +676,14 @@
|
||||
}
|
||||
.code-diff {
|
||||
font-size: 13px;
|
||||
|
||||
td {
|
||||
padding: 0;
|
||||
border-top: none;
|
||||
}
|
||||
pre {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.lines-num {
|
||||
border-right: 1px solid #d4d4d5;
|
||||
|
@ -36,7 +36,7 @@
|
||||
{{end}}
|
||||
</td>
|
||||
<td class="message collapsing">
|
||||
<a rel="nofollow" class="ui green sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a>
|
||||
<a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a>
|
||||
{{RenderCommitMessage .Summary $.RepoLink}}
|
||||
</td>
|
||||
<td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td>
|
||||
|
@ -43,7 +43,7 @@
|
||||
</td>
|
||||
{{end}}
|
||||
<td class="message collapsing">
|
||||
<a rel="nofollow" class="ui green sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.ID}}">{{ShortSha $commit.ID.String}}</a>
|
||||
<a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.ID}}">{{ShortSha $commit.ID.String}}</a>
|
||||
{{RenderCommitMessage $commit.Summary $.RepoLink}}
|
||||
</td>
|
||||
<td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td>
|
||||
|
Loading…
Reference in New Issue
Block a user