Skip to content

Commit

Permalink
feat: Improve links at the bottom of article pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiraszka committed Oct 31, 2024
1 parent a0fe4da commit a0a4f6c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ Welcome to the source code repository for the LCC web app! Here you'll find an o
| 🐛 | Bug fixes |
| 🔧 | Behind-the-scenes changes |

<details>
<summary style="cursor: pointer">
v4.1.3 - October 31st, 2024
</summary>

- 🚀 Improve links at the bottom of article pages

</details>

<details>
<summary style="cursor: pointer">
v4.1.2 - October 31st, 2024
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lcc-angular",
"version": "4.1.2",
"version": "4.1.3",
"description": "Frontend for the London Chess Club website, built with Angular",
"author": "Michal Wiraszka (https://wiraszka.com)",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/link-list/link-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h4>{{ header }}</h4>
[ngClass]="(links?.length ?? 0) < 4 ? 'single-column' : ''">
@for (link of links; track link.path) {
<li [tooltip]="link.tooltip ?? ''">
@if (!link.path) {
@if (link.path === null) {
<a
disabled
href="#"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ import { ArticleEditorFacade } from './article-editor.facade';
export class ArticleEditorComponent implements OnInit {
links: Link[] = [
{
icon: 'activity',
path: NavPathTypes.NEWS,
text: 'Return to articles',
text: 'More articles',
},
{
icon: 'home',
path: NavPathTypes.HOME,
text: 'Return to home page',
text: 'Return home',
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ export class ArticleViewerComponent implements OnInit {

links: Link[] = [
{
icon: 'activity',
path: NavPathTypes.NEWS,
text: 'Return to articles',
text: 'More articles',
},
{
icon: 'home',
path: NavPathTypes.HOME,
text: 'Return to home page',
text: 'Return home',
},
];

Expand Down

0 comments on commit a0a4f6c

Please sign in to comment.