summaryrefslogtreecommitdiffstats
path: root/models/issues
diff options
context:
space:
mode:
authorOtto <otto@codeberg.org>2025-01-01 18:48:28 +0100
committerOtto <otto@codeberg.org>2025-01-01 18:48:28 +0100
commitb01f3b9b0518ad9abbdebc6b0fc3560edeec4386 (patch)
tree49ab410a8dae36867115631b59e60fb953816ce8 /models/issues
parentMerge pull request 'i18n(en): consistency improvements' (#6439) from 0ko/forg... (diff)
parentUpdate (diff)
downloadforgejo-b01f3b9b0518ad9abbdebc6b0fc3560edeec4386.tar.xz
forgejo-b01f3b9b0518ad9abbdebc6b0fc3560edeec4386.zip
Merge pull request 'feat: Add summary card for repos and releases' (#6269) from JakobDev/forgejo:repocard into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6269 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org> Reviewed-by: Otto <otto@codeberg.org>
Diffstat (limited to 'models/issues')
-rw-r--r--models/issues/issue.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/models/issues/issue.go b/models/issues/issue.go
index 17391ffe6c..fbbc4828a2 100644
--- a/models/issues/issue.go
+++ b/models/issues/issue.go
@@ -416,20 +416,6 @@ func (issue *Issue) SummaryCardURL() string {
return fmt.Sprintf("%s/summary-card", issue.HTMLURL())
}
-func (issue *Issue) SummaryCardSize() (int, int) {
- return 1200, 600
-}
-
-func (issue *Issue) SummaryCardWidth() int {
- width, _ := issue.SummaryCardSize()
- return width
-}
-
-func (issue *Issue) SummaryCardHeight() int {
- _, height := issue.SummaryCardSize()
- return height
-}
-
// Link returns the issue's relative URL.
func (issue *Issue) Link() string {
var path string