Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

adjust dates as shown on frontpage #481

@bridgetkromhout

Description

@bridgetkromhout

Expected behavior

We've done a little bikeshedding on this before, but I figure that submitting working code is the best way to demonstrate what I think it should look like. It's bugging me right now because Tokyo is in the top row (it's this month) and has this problem. But Paris and likely other one-day events are coming soon too.

I'd like to see the dates on the frontpage center section handled the same as they're handled in the left sidebar. That is to say, we don't need start and end date if they are the same, and we only need to list the month on both dates if it varies.

Actual behavior

Pointless duplicate of the month when it doesn't vary and of the start/end dates when they are the same:

screen shot 2017-04-15 at 10 03 43 am

Reproduction Steps

You can see this in action just by looking at the front page. Here are screencaps of the fix when applied locally:

screen shot 2017-04-15 at 10 03 11 am

And with Minneapolis mocked up to have dates spanning a month boundary:

screen shot 2017-04-15 at 10 08 24 am

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions