From 6739b4f590440ec5323ebe89034190bd510cee87 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Thu, 7 Mar 2024 19:01:11 +0500 Subject: [PATCH] Update look of repo/org tabs on homepage --- options/locale/locale_en-US.ini | 3 +-- templates/user/dashboard/repolist.tmpl | 4 ---- web_src/js/components/DashboardRepoList.vue | 24 ++++++--------------- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 07ad19aa7a..dcabf02eda 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -328,10 +328,9 @@ uname_holder = Username or Email address password_holder = Password switch_dashboard_context = Switch Dashboard Context my_repos = Repositories +my_orgs = Organizations show_more_repos = Show more repositories… collaborative_repos = Collaborative Repositories -my_orgs = My Organizations -my_mirrors = My Mirrors view_home = View %s search_repos = Find a repository… filter = Other Filters diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl index ed6f906822..0a8c0a2e0b 100644 --- a/templates/user/dashboard/repolist.tmpl +++ b/templates/user/dashboard/repolist.tmpl @@ -5,10 +5,7 @@ const data = { isMirrorsEnabled: {{.MirrorsEnabled}}, isStarsEnabled: {{not .IsDisableStars}}, - textRepository: {{ctx.Locale.Tr "repository"}}, - textOrganization: {{ctx.Locale.Tr "organization"}}, textMyRepos: {{ctx.Locale.Tr "home.my_repos"}}, - textNewRepo: {{ctx.Locale.Tr "new_repo"}}, textSearchRepos: {{ctx.Locale.Tr "home.search_repos"}}, textFilter: {{ctx.Locale.Tr "home.filter"}}, textShowArchived: {{ctx.Locale.Tr "home.show_archived"}}, @@ -34,7 +31,6 @@ const data = { textLastPage: {{ctx.Locale.Tr "admin.last_page"}}, textMyOrgs: {{ctx.Locale.Tr "home.my_orgs"}}, - textNewOrg: {{ctx.Locale.Tr "new_org"}}, textOrgVisibilityLimited: {{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}, textOrgVisibilityPrivate: {{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}, diff --git a/web_src/js/components/DashboardRepoList.vue b/web_src/js/components/DashboardRepoList.vue index 6f742bbea0..3ef1f0f935 100644 --- a/web_src/js/components/DashboardRepoList.vue +++ b/web_src/js/components/DashboardRepoList.vue @@ -340,21 +340,18 @@ export default sfc; // activate the IDE's Vue plugin