|
| 1 | +<!-- Pages Warning that content is accessible even on private repos --> |
| 2 | +{{if and (eq .Repository.LowerName "pages") (.Repository.IsPrivate)}} |
| 3 | + <div class="ui warning message"> |
| 4 | + If you expected this content to be served via <a href="https://docs.codeberg.org/codeberg-pages/">Codeberg Pages</a>, please note that we stopped serving private repositories in December 2021. Please switch the visibility to public if you want to publish this content again. |
| 5 | + </div> |
| 6 | +{{end}} |
| 7 | + |
| 8 | +<!-- Warning if private repo exceeds a certain size (hardcoded to 100MB + 250MB different warning--> |
| 9 | +{{if and (.Repository.IsPrivate) (ge .Repository.Size 100000000)}} |
| 10 | + <div class="ui error message"> |
| 11 | + Your private repo uses up a{{if ge .Repository.Size 250000000}}n insanely{{end}} large amount of disk storage, while |
| 12 | + all content should ideally be public and licensed under an |
| 13 | + <a href="https://opensource.org/licenses/" rel="noopener noreferrer" target="_blank">OSI</a>- or |
| 14 | + <a href="https://www.gnu.org/licenses/license-list.html" rel="noopener noreferrer" target="_blank">FSF</a>-approved Free Software licence.<br/> |
| 15 | + <strong>Please refer to our ToS and the FAQ about |
| 16 | + <a href="https://docs.codeberg.org/getting-started/faq/#is-it-allowed-to-host-non-free-software%3F">software licenses</a> |
| 17 | + and <a href="https://docs.codeberg.org/getting-started/faq/#can-i-host-private-repositories%3F">private repositories</a></strong><br/> |
| 18 | + Thank you for considering to release this repo to the public or reducing your required disk space for this repo. |
| 19 | + </div> |
| 20 | +{{end}} |
| 21 | + |
| 22 | +<!-- go through the Codeberg-specific flags (repo topics) to display some targeted banners --> |
| 23 | +{{range .Topics}} |
| 24 | + |
| 25 | + <!-- warning if repo is flagged as missing a license --> |
| 26 | + {{if or (eq .Name "cbf-nolicense") (eq .Name "cbf-abuse-nolicense")}} |
| 27 | + <div class="ui error message" style="text-align: left;"> |
| 28 | + <strong>Warning:</strong> Missing License<br/> |
| 29 | + We looked everywhere, but we couldn't find an |
| 30 | + <a href="https://opensource.org/licenses/" rel="noopener noreferrer" target="_blank">OSI</a>- or |
| 31 | + <a href="https://www.gnu.org/licenses/license-list.html" rel="noopener noreferrer" target="_blank">FSF</a>-approved |
| 32 | + Free Software or Content License, which is a requirement for hosting content on Codeberg.<br/> |
| 33 | + Learn about why no license or custom ones are a bad idea and get started |
| 34 | + <a href="https://docs.codeberg.org/getting-started/licensing/">on the docs</a>.<br/> |
| 35 | + {{if $.Permission.IsAdmin}} |
| 36 | + Please add a license to your code to make your work usable to others. |
| 37 | + Expect some delay until this banner disappears. |
| 38 | + {{else}} |
| 39 | + Please consider carefully if you want to use (parts of) this project, as doing so might put you in legal trouble. |
| 40 | + {{end}} |
| 41 | + </div> |
| 42 | + {{end}} |
| 43 | + |
| 44 | +{{end}} |
| 45 | + |
0 commit comments