summaryrefslogtreecommitdiffstats
path: root/templates/repo/projects
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-24 00:52:20 +0800
committerGitHub <noreply@github.com>2023-03-23 12:52:20 -0400
commit378d6b849130b539d11a1317d630d4a632a191c5 (patch)
tree4e723508d412e74a7fb69feccf7a948215834673 /templates/repo/projects
parente8433b7fe6dd1dfa5ecf0633568cc3e34caeb0f9 (diff)
downloadgitea-378d6b849130b539d11a1317d630d4a632a191c5.tar.gz
gitea-378d6b849130b539d11a1317d630d4a632a191c5.zip
Fix incorrect `show-modal` and `show-panel` class (#23660)
That's incorrect code caused by Copy&Paste. `show-modal` / `show-panel` are used by JS to show something, but these links have `href`, they should navigate to new page. Close #23657
Diffstat (limited to 'templates/repo/projects')
-rw-r--r--templates/repo/projects/view.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl
index 99831f3dd9..07895b6815 100644
--- a/templates/repo/projects/view.tmpl
+++ b/templates/repo/projects/view.tmpl
@@ -8,7 +8,7 @@
</div>
<div class="column right aligned">
{{if and .CanWriteProjects (not .Repository.IsArchived)}}
- <a class="ui green button show-modal item" href="{{$.RepoLink}}/issues/new/choose?project={{$.Project.ID}}">{{.locale.Tr "repo.issues.new"}}</a>
+ <a class="ui green button item" href="{{$.RepoLink}}/issues/new/choose?project={{$.Project.ID}}">{{.locale.Tr "repo.issues.new"}}</a>
<a class="ui green button show-modal item" data-modal="#new-board-item">{{.locale.Tr "new_project_column"}}</a>
{{end}}
<div class="ui small modal new-board-modal" id="new-board-item">