Browse Source

修改里程碑下拉选项

tags/v1.21.12.2^2
Gitea 4 years ago
parent
commit
8a717fb24e
2 changed files with 20 additions and 1 deletions
  1. +1
    -0
      public/img/correct.svg
  2. +19
    -1
      templates/repo/issue/list.tmpl

+ 1
- 0
public/img/correct.svg View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1639617798177" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2026" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M919.3968 245.4944c9.3728-9.3728 24.5696-9.3728 33.9424 0 9.3712 9.3728 9.3712 24.5696 0 33.9424l-488.016 488.0144c-24.992 24.992-65.5152 24.992-90.5088 0L71.216 463.8544c-9.3712-9.3728-9.3712-24.568 0-33.9408 9.3728-9.3728 24.5696-9.3728 33.9424 0l303.5952 303.5952c6.248 6.2496 16.3792 6.2496 22.6272 0l488.016-488.0144z" fill="#979797" p-id="2027"></path></svg>

+ 19
- 1
templates/repo/issue/list.tmpl View File

@@ -1,3 +1,15 @@
<style>
li{
list-style-type:none;
}
.leftcontent{
width:30px;
float: left;
}
.rightcontent{
margin-left: 30px;
}
</style>
{{template "base/head" .}} {{template "base/head" .}}
<div class="repository"> <div class="repository">
{{template "repo/header" .}} {{template "repo/header" .}}
@@ -65,7 +77,13 @@
<div class="menu"> <div class="menu">
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_milestone_no_select"}}</a> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_milestone_no_select"}}</a>
{{range .Milestones}} {{range .Milestones}}
<a class="{{if eq $.MilestoneID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.ID}}&assignee={{$.AssigneeID}}">{{.Name}}</a>
<!-- <a class="{{if eq $.MilestoneID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.ID}}&assignee={{$.AssigneeID}}"><span>{{if eq $.MilestoneID .ID}}<img style=" width:15px; height:15px;float: left;;vertical-align: middle" src="/img/pro.svg">{{end}}</span><span style="float: right;">{{.Name}}</span></a> -->
<a class="{{if eq $.MilestoneID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.ID}}&assignee={{$.AssigneeID}}">
<li class="leftcontent">{{if eq $.MilestoneID .ID}}<img style=" width:15px; height:15px;float: left;;vertical-align: middle" src="/img/correct.svg" >{{end}}</li>
<li class="rightcontent">{{.Name}}</li>
</a>
<!-- <a class="{{if eq $.MilestoneID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.ID}}&assignee={{$.AssigneeID}}">{{.Name}}</a> -->
{{end}} {{end}}
</div> </div>
</div> </div>


Loading…
Cancel
Save