From 0589bffbb1b63eb511d93355c78d5f23a6c01b7f Mon Sep 17 00:00:00 2001 From: FearlessTobi Date: Thu, 20 Oct 2022 01:16:05 +0200 Subject: [PATCH 1/5] game/list: Add pagination and a search bar --- layouts/game/list.html | 114 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 106 insertions(+), 8 deletions(-) diff --git a/layouts/game/list.html b/layouts/game/list.html index 31a5eb0..e3f65cc 100644 --- a/layouts/game/list.html +++ b/layouts/game/list.html @@ -24,19 +24,46 @@ {{ end }} {{ define "main" }} -
- - - - - - +
+
+
+
    +
    +
    +
    +
    +
    Game TitleCompatibilityDate Tested
    + + + +
    + +
    +
    + + + + +
    + + + + + + + - + {{ range .Pages }} {{ $rating := index .Site.Data.compatibility .Params.compatibility }} + @@ -54,8 +81,79 @@ {{ end }}
    Game TitleCompatibilityDate Tested
    {{ .Params.title }}
    + +
    {{ end }} {{ define "scripts" }} + + + + + {{ end }} From de5fc54048747132aa767415f6e4245a031ca193 Mon Sep 17 00:00:00 2001 From: FearlessTobi Date: Thu, 20 Oct 2022 01:19:21 +0200 Subject: [PATCH 2/5] game/list: Reformat html --- layouts/game/list.html | 152 ++++++++++++++++++++--------------------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/layouts/game/list.html b/layouts/game/list.html index e3f65cc..27ebce4 100644 --- a/layouts/game/list.html +++ b/layouts/game/list.html @@ -1,95 +1,95 @@ {{ define "header" }}
    -
    -

    Game Compatibility List

    -

    - The compatibility list contains all the games we tested, sorted by how well they work on the emulator. -

    - - - {{ range .Site.Data.compatibility }} - - - - - {{ end }} - -
    -
    {{ .name }} -
    {{ .description }}
    - - -
    +
    +

    Game Compatibility List

    +

    + The compatibility list contains all the games we tested, sorted by how well they work on the emulator. +

    + + + {{ range .Site.Data.compatibility }} + + + + + {{ end }} + +
    +
    + {{ .name }} +
    {{ .description }}
    + +
    {{ end }} {{ define "main" }} -
    -
    -
    -
      -
      -
      -
      -
      - - - - -
      - -
      -
      -
      -
      -
      - -
      - - - - - - - +
      +
      +
      +
        +
        +
        +
        +
        +
        Game TitleCompatibilityDate Tested
        + + + +
        + +
        +
        + +
        + +
        + + + + + + + - - + + {{ range .Pages }} {{ $rating := index .Site.Data.compatibility .Params.compatibility }} - - - - + + + + {{ end }} - -
        Game TitleCompatibilityDate Tested
        - {{ .Params.title }} - -
        {{ $rating.name }} -
        - {{ if .Params.testcase_date }} - {{ dateFormat "January 2, 2006" .Params.testcase_date }} - {{ else }} - - {{ end }} - + {{ .Params.title }} + +
        + {{ $rating.name }} +
        + {{ if .Params.testcase_date }} + {{ dateFormat "January 2, 2006" .Params.testcase_date }} + {{ else }} + + {{ end }} +
        -
          -
          + + + + {{ end }} {{ define "scripts" }} - - + + + From 8e449ec43b8cbb00345b680f0f634b05924c8e62 Mon Sep 17 00:00:00 2001 From: FearlessTobi Date: Sun, 30 Oct 2022 13:55:00 +0100 Subject: [PATCH 5/5] game/list: Address feedback --- layouts/game/list.html | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/layouts/game/list.html b/layouts/game/list.html index 2ec29dd..cb5a2c1 100644 --- a/layouts/game/list.html +++ b/layouts/game/list.html @@ -37,7 +37,6 @@ @@ -71,11 +70,7 @@ {{ $rating.name }} - {{ if .Params.testcase_date }} - {{ dateFormat "January 2, 2006" .Params.testcase_date }} - {{ else }} - - {{ end }} + {{ if .Params.testcase_date }}{{ dateFormat "January 2, 2006" .Params.testcase_date }}{{ end }} {{ end }} @@ -87,16 +82,18 @@ {{ end }} {{ define "scripts" }} - - - + +