{"action":"created","issue":{"url":"https://api.github.com/repos/UW-UPL/uw-upl.github.io/issues/13","labels_url":"https://api.github.com/repos/UW-UPL/uw-upl.github.io/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/UW-UPL/uw-upl.github.io/issues/13/comments","events_url":"https://api.github.com/repos/UW-UPL/uw-upl.github.io/issues/13/events","html_url":"https://github.com/UW-UPL/uw-upl.github.io/pull/13","id":128091696,"number":13,"title":"Improve the events page","user":{"login":"zthomae","id":884552,"avatar_url":"https://avatars.githubusercontent.com/u/884552?v=3","gravatar_id":"","url":"https://api.github.com/users/zthomae","html_url":"https://github.com/zthomae","followers_url":"https://api.github.com/users/zthomae/followers","following_url":"https://api.github.com/users/zthomae/following{/other_user}","gists_url":"https://api.github.com/users/zthomae/gists{/gist_id}","starred_url":"https://api.github.com/users/zthomae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zthomae/subscriptions","organizations_url":"https://api.github.com/users/zthomae/orgs","repos_url":"https://api.github.com/users/zthomae/repos","events_url":"https://api.github.com/users/zthomae/events{/privacy}","received_events_url":"https://api.github.com/users/zthomae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-01-22T06:13:21Z","updated_at":"2016-01-24T04:19:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/UW-UPL/uw-upl.github.io/pulls/13","html_url":"https://github.com/UW-UPL/uw-upl.github.io/pull/13","diff_url":"https://github.com/UW-UPL/uw-upl.github.io/pull/13.diff","patch_url":"https://github.com/UW-UPL/uw-upl.github.io/pull/13.patch"},"body":"I'm working on making the events page better. The following things are done so far:\r\n\r\n1. Events are separated into past and upcoming. This is done as the events.json file is processed. The intention is that once an event is added with a proper date, moving it from \"upcoming\" to \"past\" should require no maintenance. Notice that there are currently no upcoming events, and \r\n1. I replaced the lorem ipsum with some dummy real events (Leo's talks from this fall). It seems reasonable that all of the events from the [talks repo](https://github.com/UW-UPL/Talks) could be included at some point.\r\n1. I removed the redundant showing of the date when there is no event image. This was admittedly arbitrary, but I didn't see the purpose in including this, and it made the page messier.\r\n1. I moved the date handling into the events service. Dates should now be parsed correctly (assuming they're all formatted the same, which I think we can enforce on ourselves). Events are also now sorted in different orders: upcoming events should be sorted soonest-first, but previous events should be sorted most-recent first.\r\n\r\nThings that haven't been done yet, but should be:\r\n\r\n1. Separate events into categories. Right now I only included talks because those are the only events with reliable dates that I have access to.\r\n1. Improve the markup. I hacked it together.\r\n1. Style the page elements. I didn't do this at all.\r\n1. Make my angular code less bad."},"comment":{"url":"https://api.github.com/repos/UW-UPL/uw-upl.github.io/issues/comments/174248332","html_url":"https://github.com/UW-UPL/uw-upl.github.io/pull/13#issuecomment-174248332","issue_url":"https://api.github.com/repos/UW-UPL/uw-upl.github.io/issues/13","id":174248332,"user":{"login":"zthomae","id":884552,"avatar_url":"https://avatars.githubusercontent.com/u/884552?v=3","gravatar_id":"","url":"https://api.github.com/users/zthomae","html_url":"https://github.com/zthomae","followers_url":"https://api.github.com/users/zthomae/followers","following_url":"https://api.github.com/users/zthomae/following{/other_user}","gists_url":"https://api.github.com/users/zthomae/gists{/gist_id}","starred_url":"https://api.github.com/users/zthomae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zthomae/subscriptions","organizations_url":"https://api.github.com/users/zthomae/orgs","repos_url":"https://api.github.com/users/zthomae/repos","events_url":"https://api.github.com/users/zthomae/events{/privacy}","received_events_url":"https://api.github.com/users/zthomae/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T04:19:03Z","updated_at":"2016-01-24T04:19:03Z","body":"I fixed the conflicts with master. Hopefully this can be merged soon so fixing conflicts doesn't become a problem.\r\n\r\nAnd just so we're clear, the date format we're using appears to be supported in browsers, but isn't in the [language standard](http://www.ecma-international.org/ecma-262/6.0/index.html#sec-date-time-string-format). Regular expressions are probably more cautious than we need to be, but I always commit incrementally :+1: :ok_hand: :100:"}}