mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-27 17:28:33 +01:00
d8258482e2
Added new class `flex-container-sidebar` to cover the dashboard sidebar. Previously this was 37.5% with more padding. Now there is less empty space between the two columns and this matches other pages like repo or admin settings page. Desktop: <img width="1345" alt="Screenshot 2024-03-31 at 15 11 36" src="https://github.com/go-gitea/gitea/assets/115237/717389d9-d42c-466e-a8fe-e968f79447fd"> Mobile: <img width="444" alt="Screenshot 2024-03-31 at 15 11 44" src="https://github.com/go-gitea/gitea/assets/115237/7faa840b-513a-411b-bf2d-26d52b9b71a0"> --------- Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 044cc169e75dccbf1d846f8774ef2feccd0da1fd)
55 lines
2.1 KiB
Go HTML Template
55 lines
2.1 KiB
Go HTML Template
<script type="module">
|
|
const data = {
|
|
...window.config.pageData.dashboardRepoList, // it only contains searchLimit and uid
|
|
|
|
isMirrorsEnabled: {{.MirrorsEnabled}},
|
|
isStarsEnabled: {{not .IsDisableStars}},
|
|
|
|
textMyRepos: {{ctx.Locale.Tr "home.my_repos"}},
|
|
textSearchRepos: {{ctx.Locale.Tr "search.repo_kind"}},
|
|
textFilter: {{ctx.Locale.Tr "home.filter"}},
|
|
textShowArchived: {{ctx.Locale.Tr "home.show_archived"}},
|
|
textShowPrivate: {{ctx.Locale.Tr "home.show_private"}},
|
|
|
|
textShowBothArchivedUnarchived: {{ctx.Locale.Tr "home.show_both_archived_unarchived"}},
|
|
textShowOnlyUnarchived: {{ctx.Locale.Tr "home.show_only_unarchived"}},
|
|
textShowOnlyArchived: {{ctx.Locale.Tr "home.show_only_archived"}},
|
|
|
|
textShowBothPrivatePublic: {{ctx.Locale.Tr "home.show_both_private_public"}},
|
|
textShowOnlyPublic: {{ctx.Locale.Tr "home.show_only_public"}},
|
|
textShowOnlyPrivate: {{ctx.Locale.Tr "home.show_only_private"}},
|
|
|
|
textAll: {{ctx.Locale.Tr "all"}},
|
|
textSources: {{ctx.Locale.Tr "sources"}},
|
|
textForks: {{ctx.Locale.Tr "forks"}},
|
|
textMirrors: {{ctx.Locale.Tr "mirrors"}},
|
|
textCollaborative: {{ctx.Locale.Tr "collaborative"}},
|
|
|
|
textFirstPage: {{ctx.Locale.Tr "admin.first_page"}},
|
|
textPreviousPage: {{ctx.Locale.Tr "repo.issues.previous"}},
|
|
textNextPage: {{ctx.Locale.Tr "repo.issues.next"}},
|
|
textLastPage: {{ctx.Locale.Tr "admin.last_page"}},
|
|
|
|
textMyOrgs: {{ctx.Locale.Tr "home.my_orgs"}},
|
|
|
|
textOrgVisibilityLimited: {{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}},
|
|
textOrgVisibilityPrivate: {{ctx.Locale.Tr "org.settings.visibility.private_shortname"}},
|
|
};
|
|
|
|
{{if .Team}}
|
|
data.teamId = {{.Team.ID}};
|
|
{{end}}
|
|
|
|
{{if not .ContextUser.IsOrganization}}
|
|
data.organizations = [{{range .Orgs}}{'name': {{.Name}}, 'num_repos': {{.NumRepos}}, 'org_visibility': {{.Visibility}}},{{end}}];
|
|
data.isOrganization = false;
|
|
data.organizationsTotalCount = {{.UserOrgsCount}};
|
|
data.canCreateOrganization = {{.SignedUser.CanCreateOrganization}};
|
|
{{else}}
|
|
data.organizationId = {{.ContextUser.ID}};
|
|
{{end}}
|
|
|
|
window.config.pageData.dashboardRepoList = data;
|
|
</script>
|
|
|
|
<div id="dashboard-repo-list" class="flex-container-sidebar"></div>
|