Skip to content

Commit 5ea28ae

Browse files
Moritz Marquardtmoqmar
authored andcommitted
CB/feat: Add announcement widget (go-gitea#16)
Fix margin of repolist if announcements are empty Add announcement widget to dashboard sidebar Co-authored-by: Moritz Marquardt <[email protected]> Reviewed-on: https://codeberg.org/Codeberg/gitea/pulls/16 Co-Authored-By: Moritz Marquardt <[email protected]> Co-Committed-By: Moritz Marquardt <[email protected]>
1 parent 78f87d6 commit 5ea28ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/user/dashboard/repolist.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525
<template id="dashboard-repo-list-template">
2626
<div>
27-
<div v-if="!isOrganization" class="ui two item tabable menu">
27+
<codeberg-announcement-widget configuration-url="/Codeberg/Announcements/raw/branch/main/announcements.toml"></codeberg-announcement-widget>
28+
<div v-if="!isOrganization" class="ui two item tabable menu" style="margin-top: 0">
2829
<a :class="{item: true, active: tab === 'repos'}" @click="changeTab('repos')">{{.locale.Tr "repository"}}</a>
2930
<a :class="{item: true, active: tab === 'organizations'}" @click="changeTab('organizations')">{{.locale.Tr "organization"}}</a>
3031
</div>

0 commit comments

Comments
 (0)