mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-03-12 00:12:37 +01:00
It is shown when there's no activity in the feed. This is a partial implementation of https://github.com/go-gitea/gitea/pull/32990. Differences: * drawer icon instead of package icon * h2 instead of h3 * explore links include a link to organizations list * explore links are hidden for hidden explore sections * locales are in JSON, I think it's the time to start using it, the hint is simpler and doesn't lie about following users to get their updates in the feed, which isn't a feature yet * hint uses general hint color instead of input placeholder color * the large icon still uses placeholder color, but I think it's ok Things to improve later: * use 24px variant of icon. This will require reworking `tools/generate-svg.js` * the vue part wasn't ported, but it'd be also nice to have Inspired-by: Kerwin Bryant <kerwin612@qq.com> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7030 Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
16 lines
644 B
Go HTML Template
16 lines
644 B
Go HTML Template
<div id="empty-feed" class="tw-text-center tw-p-8">
|
|
{{svg "octicon-inbox" 64 "tw-text-placeholder-text"}}
|
|
<h2>{{ctx.Locale.Tr "home.welcome.no_activity"}}</h2>
|
|
<p class="help">{{ctx.Locale.Tr "home.welcome.activity_hint"}}</p>
|
|
<div>
|
|
<a href="{{AppSubUrl}}/explore/repos">{{ctx.Locale.Tr "home.explore_repos"}}</a>
|
|
{{if not .UsersPageIsDisabled}}
|
|
<span>·</span>
|
|
<a href="{{AppSubUrl}}/explore/users">{{ctx.Locale.Tr "home.explore_users"}}</a>
|
|
{{end}}
|
|
{{if not .OrganizationsPageIsDisabled}}
|
|
<span>·</span>
|
|
<a href="{{AppSubUrl}}/explore/organizations">{{ctx.Locale.Tr "home.explore_orgs"}}</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|