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

If there is a single subtrack, do not show a subtrack identifier; if there is a single track do not show a track identifier #22

Closed
sfikas opened this issue Aug 30, 2016 · 3 comments

Comments

@sfikas
Copy link
Member

sfikas commented Aug 30, 2016

No description provided.

@sfikas
Copy link
Member Author

sfikas commented Sep 9, 2016

This issue refers to a number of distinct cases:

  1. A competition has exactly one track, but multiple subtracks
  2. A track has exactly one subtrack.
  3. A competition has exactly one track and exactly one subtrack.

Case 1

Case (1) can be easily converted to case (2) (except if we have case (3): this is actually case (1)+(2) combined; see related comment below). The organizer has to define one track for each subtrack, and define a single subtrack for each of the new tracks.

Example:

The case 1 competition hierarchy:

Competition --- Track 1 ---- Subtrack 1
                        \--- Subtrack 2
                        \--- Subtrack 3

is converted to an equivalent case 2 competition hierarchy

Competition --- Track 1 ---- Subtrack 1
            \-- Track 2 ---- Subtrack 1
            \-- Track 3 ---- Subtrack 1

@sfikas
Copy link
Member Author

sfikas commented Sep 9, 2016

Case 2

This case refers to a hierarchy like this:

Competition --- Track 1 ---- Subtrack 1
            \-- Track 2 ---- Subtrack 1
            \-- Track 3 ---- Subtrack 1

In this case, the organizer has to define all tracks and subtracks normally; the site will however have to visualise them differently. 'Track X' will in effect be an alias for 'Subtrack X.1'.

In particular:

  • The word 'subtrack' is not mentioned
  • The dropdown on the navbar for tracks does not show any subtracks
  • The 'track' button calls the 'subtrack' template instead of the 'track' template

@sfikas
Copy link
Member Author

sfikas commented Sep 9, 2016

Case 3

This case refers to a hierarchy like this:

Competition --- Track 1 ---- Subtrack 1

Again, the organizer has to define both a track and a subtrack.

The difference here will be the 'Track 1' on the navbar showing up now as 'Participate'

sfikas added a commit that referenced this issue Sep 9, 2016
The "Track x" message changes to "Participate in competition"
Cf. issue #22
sfikas added a commit that referenced this issue Sep 9, 2016
sfikas added a commit that referenced this issue Sep 9, 2016
This will allow more DRY handling of issue #22
sfikas added a commit that referenced this issue Sep 9, 2016
"All submissions on this xx"; now xx shows up correct, if track count == 1 or subtrack count == 1
sfikas added a commit that referenced this issue Sep 9, 2016
sfikas added a commit that referenced this issue Sep 9, 2016
The "Track x" message changes to "Participate in competition"
Cf. issue #22
sfikas added a commit that referenced this issue Sep 9, 2016
sfikas added a commit that referenced this issue Sep 9, 2016
This will allow more DRY handling of issue #22
@sfikas sfikas closed this as completed in b5922cf Sep 9, 2016
sfikas added a commit that referenced this issue Sep 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant