Skip to content

Commit 93dad9f

Browse files
committed
fix layout of menu item for export to excel
1 parent 3c1f577 commit 93dad9f

File tree

3 files changed

+18
-27
lines changed

3 files changed

+18
-27
lines changed

templates/repo/issue/filter_actions.tmpl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@
123123
{{end}}
124124
</div>
125125
</div>
126+
127+
<div class="ui dropdown jump item">
128+
<span class="text">
129+
&hellip;
130+
</span>
131+
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
132+
133+
<div class="menu">
134+
<div class="item issue-action" data-action="clear" data-url="{{$.RepoLink}}/issues/export?{{$.Page.GetParams}}">
135+
{{svg "gitea-double-chevron-left" 18 "tw-mr-2"}} {{ctx.Locale.Tr "action.export_to_excel"}}
136+
</div>
137+
</div>
138+
</div>
139+
126140
{{end}}
127141
</div>
128142

templates/repo/issue/filters.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
</button>
2828

2929
<div class="misc-actions-popup tippy-target">
30-
<div class="flex-items-block misc-actions-panel-list">
31-
<a class="item muted" href="{{$.RepoLink}}/issues/export?{{$.Page.GetParams}}">{{ctx.Locale.Tr "action.export_to_excel"}}</a>
30+
<div class="flex-items-block misc-actions-panel-field">
31+
<a class="item muted" href="{{$.RepoLink}}/issues/export?{{$.Page.GetParams}}">
32+
{{svg "gitea-double-chevron-left" 16 "tw-mr-2"}}
33+
{{ctx.Locale.Tr "action.export_to_excel"}}</a>
3234
</div>
3335
</div>
3436

templates/repo/issue/list.tmpl

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@
3131
<a class="ui small primary small button issue-list-new{{if not .PullRequestCtx.Allowed}} disabled{{end}}" href="{{if .PullRequestCtx.Allowed}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.PullRequestCtx.BaseRepo.DefaultBranch | PathEscapeSegments}}...{{if ne .Repository.Owner.Name .PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape .Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch | PathEscapeSegments}}{{end}}">{{ctx.Locale.Tr "action.compare_commits_general"}}</a>
3232
{{end}}
3333
{{end}}
34-
3534
</div>
3635

3736
{{template "repo/issue/filters" .}}
3837

39-
4038
<div id="issue-actions" class="issue-list-toolbar tw-hidden">
4139
<div class="issue-list-toolbar-left">
4240
{{template "repo/issue/openclose" .}}
@@ -52,30 +50,7 @@
5250
</div>
5351
<div class="issue-list-toolbar-right">
5452
{{template "repo/issue/filter_actions" .}}
55-
56-
<!-- Export dropdown button (Tippy.js) placed to the right of filter_actions -->
57-
<div class="issue-export-container" style="display:inline-block; margin-left:8px;">
58-
<button id="issue-export-btn" class="ui small button" type="button" aria-haspopup="true" aria-expanded="false" title="More actions">
59-
&hellip;
60-
</button>
61-
62-
<!-- Hidden popover content for tippy.js -->
63-
<div id="issue-export-popover" style="display:none;">
64-
<div class="dropdown-popover">
65-
<a href="#" class="dropdown-item" id="export-csv">Export CSV</a>
66-
<a href="#" class="dropdown-item" id="export-json">Export JSON</a>
67-
<a href="#" class="dropdown-item" id="export-selected">Export selected</a>
68-
</div>
69-
</div>
70-
71-
<style>
72-
.issue-export-container .dropdown-popover { padding:8px; min-width:160px; background:var(--dropdown-bg,#fff); border-radius:4px; box-shadow:0 2px 8px rgba(0,0,0,0.12); }
73-
.issue-export-container .dropdown-item { display:block; padding:6px 8px; color:var(--link-color,#0366d6); text-decoration:none; }
74-
.issue-export-container .dropdown-item:hover { background:var(--hover-bg,#f6f8fa); }
75-
</style>
76-
</div>
7753
</div>
78-
7954
</div>
8055
{{template "shared/issuelist" dict "." . "listType" "repo"}}
8156
</div>

0 commit comments

Comments
 (0)