{"issue":{"created_at":"2011-10-27T00:05:40Z","state":"open","updated_at":"2011-11-20T06:47:38Z","comments":4,"user":{"gravatar_id":"7d0d9a522fc66dc29c669156e2ee9a7e","id":373058,"url":"https://api.github.com/users/scd","login":"scd","avatar_url":"https://secure.gravatar.com/avatar/7d0d9a522fc66dc29c669156e2ee9a7e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Need to add sponsor image List View and Guide View.  The following api variable is now available in area/route list view to experiment with.\r\n\r\n```\r\n      \"sponsor\" : [\r\n         {\r\n            \"label\" : \"corporate\",\r\n            \"list\" : [\r\n               {\r\n                  \"volume\" : \"00001\",\r\n                  \"url\" : \"url\",\r\n                  \"weight\" : \"65.92\",\r\n                  \"advertiser\" : \"175269637\",\r\n                  \"dimensions\" : {\r\n                     \"half\" : [\r\n                        \"520\",\r\n                        \"368\"\r\n                     ],\r\n                     \"quarter\" : [\r\n                        \"260\",\r\n                        \"184\"\r\n                     ],\r\n                     \"eighth\" : [\r\n                        \"130\",\r\n                        \"96\"\r\n                     ],\r\n                     \"sixteenth\" : [\r\n                        \"65\",\r\n                        \"46\"\r\n                     ],\r\n                     \"full\" : [\r\n                        \"1040\",\r\n                        \"736\"\r\n                     ]\r\n                  },\r\n                  \"title\" : \"title\",\r\n                  \"id\" : \"176168890\"\r\n               }\r\n            ]\r\n         },\r\n         {\r\n            \"label\" : \"individual\",\r\n            \"list\" : [\r\n               {\r\n                  \"account\" : {\r\n                     \"country\" : \"Australia\",\r\n                     \"countryNodeID\" : \"11737699\",\r\n                     \"name\" : \"Simon Dale\",\r\n                     \"routesTicked\" : \"390\",\r\n                     \"countryCode\" : \"AU\",\r\n                     \"login\" : \"SCD\",\r\n                     \"id\" : \"9068185\",\r\n                     \"countryID\" : \"7478254\"\r\n                  },\r\n                  \"url\" : \"aaa\",\r\n                  \"weight\" : \"14.08\",\r\n                  \"title\" : \"bbb\",\r\n                  \"id\" : \"176269159\"\r\n               }\r\n            ]\r\n         }\r\n```\r\n\r\nCorporate sponsors should have image details, while individual sponsors may or may not.  When you are ready I am happy to write a 'chooser' helper function which chooses which sponsorship to show based on weightings. I think all individual sponsors should just be shown using their avatar.\r\n\r\nWe will need to add this to PDF Crag Guide\r\n\r\nWe need to develop our inhouse ad which invites people to become a sponsor and links to our sponsor article.\r\n\r\n","assignee":{"gravatar_id":"552e3422df95ab611ce0d8d5b5d66c67","id":187449,"url":"https://api.github.com/users/brendanheywood","login":"brendanheywood","avatar_url":"https://secure.gravatar.com/avatar/552e3422df95ab611ce0d8d5b5d66c67?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2063209,"labels":[{"name":"New Feature","color":"0073ff","url":"https://api.github.com/repos/theCrag/website/labels/New+Feature"},{"name":"S1 Doing","color":"DDDDDD","url":"https://api.github.com/repos/theCrag/website/labels/S1+Doing"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":362,"title":"Displaying sponsorship","closed_at":null,"html_url":"https://github.com/theCrag/website/issues/362","milestone":{"created_at":"2011-09-26T02:55:58Z","state":"open","due_on":"2011-11-25T08:00:00Z","closed_issues":11,"creator":{"gravatar_id":"552e3422df95ab611ce0d8d5b5d66c67","id":187449,"url":"https://api.github.com/users/brendanheywood","login":"brendanheywood","avatar_url":"https://secure.gravatar.com/avatar/552e3422df95ab611ce0d8d5b5d66c67?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":11,"title":"Release 19 - Sponsorship","description":"","url":"https://api.github.com/repos/theCrag/website/milestones/11","open_issues":33},"url":"https://api.github.com/repos/theCrag/website/issues/362"},"action":"created","comment":{"created_at":"2011-11-20T06:47:38Z","updated_at":"2011-11-20T06:47:38Z","user":{"gravatar_id":"552e3422df95ab611ce0d8d5b5d66c67","id":187449,"url":"https://api.github.com/users/brendanheywood","login":"brendanheywood","avatar_url":"https://secure.gravatar.com/avatar/552e3422df95ab611ce0d8d5b5d66c67?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"again this I think is pretty well ready but needs more test data (lost in dev refresh) and testing","id":2802765,"url":"https://api.github.com/repos/theCrag/website/issues/comments/2802765"}}