Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra • separator before empty game metadata fields #420

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions IFComp/root/src/_current_entry_row.tt
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,29 @@

<p><em>
[% IF entry.genre %]
<span itemprop="genre">[% entry.genre.ucfirst | html %]</span>
<span itemprop="genre">[% entry.genre.ucfirst | html %]</span>
[% END %]

[% IF entry.playtime %]
<span itemprop="size">[% entry.playtime.ucfirst %]</span> •
[% IF entry.genre %]
[% END %]
<span itemprop="size">[% entry.playtime.ucfirst %]</span>
[% END %]

[% IF entry.style && ( entry.genre || entry.playtime ) %]
[% END %]
[% IF entry.style == 'parser' %]
<span itemprop="interactivityType">Parser-based</span>
<span itemprop="interactivityType">Parser-based</span>
[% ELSIF entry.style == 'choice' %]
<span itemprop="interactivityType">Choice-based</span>
<span itemprop="interactivityType">Choice-based</span>
[% END %]

[% UNLESS entry.platform == 'other' %]
[% IF entry.genre || entry.playtime || entry.style %]
[% END %]
[% IF entry.platform == 'parchment' || entry.platform == 'inform-website' || entry.platform == 'inform' || entry.platform == 'quixe' || entry.platform == 'quixe2' %]
[% IF entry.is_zcode %]
<span itemprop="gamePlatform">Z-code</span> [% INCLUDE guide_link %]
Expand Down
17 changes: 13 additions & 4 deletions IFComp/root/src/comp/cover_sheet.tt
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,29 @@ judging on [% comp.judging_begins.strftime( '%{month_name} %{day}' ) %], [% comp

<p><em>
[% IF entry.genre %]
[% entry.genre.ucfirst | html %]
[% entry.genre.ucfirst | html %]
[% END %]

[% IF entry.playtime %]
[% entry.playtime.ucfirst %] •
[% IF entry.genre %]
[% END %]
[% entry.playtime.ucfirst %]
[% END %]

[% IF entry.style && ( entry.genre || entry.playtime ) %]
[% END %]
[% IF entry.style == 'parser' %]
Parser-based
Parser-based
[% ELSIF entry.style == 'choice' %]
Choice-based
Choice-based
[% END %]

[% UNLESS entry.platform == 'other' %]
[% IF entry.genre || entry.playtime || entry.style %]
[% END %]
[% IF entry.platform == 'parchment' || entry.platform == 'inform-website' || entry.platform == 'inform' || entry.platform == 'quixe' || entry.platform == 'quixe2' %]
[% IF entry.is_zcode %]
Z-code
Expand Down