Closed marcelsalathe closed 7 years ago
These are both acting as designed.
The sorting changes were requested in closed issue #230. A high level featured challenge field was added to the challenges setup page, to override the sort order based on status, for the landing page only.
Options: (1) Clear it manually for each challenge after we no longer want a challenge pinned to the top of the list. This is the current behaviour, and can be quickly applied via the challenge configuration page. (2) Clear the sort field automatically it when the challenge is closed.
If 2 then we will lose the ability to pin a challenge to a specific point on the landing page.
@marcelsalathe let me know which option you prefer.
It works like this:
default_scope { order("featured_sequence DESC,
CASE status_cd
WHEN 'running' THEN 1
WHEN 'starting_soon' THEN 2
WHEN 'completed' THEN 3
WHEN 'cancelled' THEN 4
WHEN 'draft' THEN 5
ELSE 6
END, created_at DESC") }
https://github.com/crowdAI/crowdai/issues/230
The header spacing is as per the design, see screen shot below of template-index.html
Ok I think we should review the design issue with Jason. I did not know there was a field that can overwrite the ordering. This needs maybe some more thought, but that aspect I consider closed for now.
This image is from the homepage right now:
There are two problems here: the first is that the top padding of the first challenge (to the horizontal line) is too large.
The second is that the open challenge should be at the top. I assume we simply sort by start date. But we should have a two-step ordering: first, sort by running / ended status. Then, within those, sort by start date.