Skip to content

Commit

Permalink
Rename posts -> announcements, remove About page
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepTester committed May 9, 2024
1 parent 2244bc0 commit d366b86
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
5 changes: 3 additions & 2 deletions src/GZCTF/ClientApp/src/components/AppNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { createStyles, getStylesRef } from '@mantine/emotion'
import {
mdiAccountCircleOutline,
mdiAccountGroupOutline,
mdiBullhornOutline,
mdiCached,
mdiFlagOutline,
mdiHomeVariantOutline,
Expand Down Expand Up @@ -133,10 +134,10 @@ const AppNavbar: FC = () => {

const items: NavbarItem[] = [
{ icon: mdiHomeVariantOutline, label: 'common.tab.home', link: '/' },
{ icon: mdiNoteTextOutline, label: 'common.tab.post', link: '/posts' },
{ icon: mdiBullhornOutline, label: 'common.tab.post', link: '/posts' },
{ icon: mdiFlagOutline, label: 'common.tab.game', link: '/games' },
{ icon: mdiAccountGroupOutline, label: 'common.tab.team', link: '/teams' },
{ icon: mdiInformationOutline, label: 'common.tab.about', link: '/about' },
// { icon: mdiInformationOutline, label: 'common.tab.about', link: '/about' },
{ icon: mdiWrenchOutline, label: 'common.tab.admin', link: '/admin/games', admin: true },
]

Expand Down
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/src/locales/en_US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"admin": "Admin",
"game": "Games",
"home": "Home",
"post": "Posts",
"post": "Announcements",
"team": "Team",
"theme": {
"dark": "dark mode",
Expand Down
22 changes: 11 additions & 11 deletions src/GZCTF/ClientApp/src/locales/en_US/post.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@
"summary": "Summary"
},
"title": {
"index": "Posts"
"index": "Announcements"
},
"button": {
"new": "New Post",
"edit": "Edit Post",
"goto": "Go to Post",
"save": "Save Post",
"delete": "Delete Post"
"new": "New Announcement",
"edit": "Edit Announcement",
"goto": "Go to Announcement",
"save": "Save Announcement",
"delete": "Delete Announcement"
},
"content": {
"metadata": "{{author}} published on {{date}}",
"pinned": "[Pinned]",
"details": "View Details",
"delete": "Are you sure you want to delete post {{title}}?",
"delete": "Are you sure you want to delete announcement {{title}}?",
"updated": {
"title": "Post has been changed",
"content": "The post has been changed. Save it?"
"title": "Announcement has been changed",
"content": "The announcement has been changed. Save it?"
}
},
"notification": {
"saved": "Post has been saved",
"created": "Post has been created"
"saved": "Announcement has been saved",
"created": "Announcement has been created"
}
}

0 comments on commit d366b86

Please sign in to comment.