{"action":"closed","issue":{"url":"https://api.github.com/repos/HTBox/allReady/issues/2241","repository_url":"https://api.github.com/repos/HTBox/allReady","labels_url":"https://api.github.com/repos/HTBox/allReady/issues/2241/labels{/name}","comments_url":"https://api.github.com/repos/HTBox/allReady/issues/2241/comments","events_url":"https://api.github.com/repos/HTBox/allReady/issues/2241/events","html_url":"https://github.com/HTBox/allReady/issues/2241","id":288907774,"number":2241,"title":"Event Details (Admin) - Hide Create New Task button when Event in Past","user":{"login":"stevejgordon","id":3669103,"avatar_url":"https://avatars0.githubusercontent.com/u/3669103?v=4","gravatar_id":"","url":"https://api.github.com/users/stevejgordon","html_url":"https://github.com/stevejgordon","followers_url":"https://api.github.com/users/stevejgordon/followers","following_url":"https://api.github.com/users/stevejgordon/following{/other_user}","gists_url":"https://api.github.com/users/stevejgordon/gists{/gist_id}","starred_url":"https://api.github.com/users/stevejgordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevejgordon/subscriptions","organizations_url":"https://api.github.com/users/stevejgordon/orgs","repos_url":"https://api.github.com/users/stevejgordon/repos","events_url":"https://api.github.com/users/stevejgordon/events{/privacy}","received_events_url":"https://api.github.com/users/stevejgordon/received_events","type":"User","site_admin":false},"labels":[{"id":653940906,"url":"https://api.github.com/repos/HTBox/allReady/labels/virtual%20code-a-thon","name":"virtual code-a-thon","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-16T13:32:18Z","updated_at":"2018-03-06T01:03:02Z","closed_at":"2018-03-06T01:03:02Z","author_association":"MEMBER","body":"When logged in as a site admin or org admin, campaign manager or event manager, you can create Tasks for Events in allReady.\r\n\r\nThis is initiated from the admin campaign details page (e.g. http://allready-d.azurewebsites.net/Admin/Event/Details/18)\r\n\r\nAbove the tasks list there is a \"Create Task\" button. It makes sense to hide this button when the end date of the event is in the past. This will avoid someone trying to create new tasks in the past also.\r\n\r\nIt would be best to hide the button and instead display a message such as:\r\n\"It is now past the end date for this event. No new tasks can be created.\""}}
{"actor":{"display_login":"MisterJames"}}