extends ./template
block content
	h2 Project API Key: 
	pre
		code #{project.uuid}

	h2 Inline Helpers
	p You can use the links below to generate inline helper scripts which are pre-configured for this project.
	ul(style='list-style-type: none; margin: 0; padding: 0;')
		li.action-li
			a.btn(href=project.id+'/inline/node') Node.js
		//li.action-li
		//	a.btn(href=project.id+'/inline/ecma') JavaScript (Web)
		li.action-li
			a.btn(href=project.id+'/inline/php') PHP
		//li.action-li
		//	a.btn(href=project.id+'/inline/api') DevBug API

	br
	br

	h2 Code Snippets
		a.btn(href='/dash/v1/project/snippet/'+project.id+'/new') +
	table
		thead
			tr
				th(scope='col' style='min-width: 250px') Title
				th(scope='col') Actions
		tbody
			each snippet in snippets
				tr
					td #{snippet.name}
					td
						ul(style='list-style-type: none; margin: 0; padding: 0;')
							li.action-li
								a.action(href='/dash/v1/project/snippet/'+project.id+'/view/'+snippet.uuid) View
							if ( devbug.permission.snippet.edit(snippet, user) )
								li.action-li
									a.action(href='/dash/v1/project/snippet/'+project.id+'/delete/'+snippet.uuid) Delete
								li.action-li
									a.action(href='/dash/v1/project/snippet/'+project.id+'/edit/'+snippet.uuid) Edit
								li.action-li
									a.action(href='/dash/v1/snippet/share/'+snippet.id) Share

	h2 Development Outputs
		a.btn(href='/dash/v1/out/view-latest/'+project.id) Latest
	table
		thead
			tr
				th(scope='col' style='min-width: 250px') Brief
				th(scope='col' style='min-width: 250px') Created On
				th(scope='col') Actions
		tbody
			each out in outs
				tr
					td #{out.brief}
					td #{ out.created.toLocaleString({timeZone: 'America/Chicago'}) }
					td
						ul(style='list-style-type: none; margin: 0; padding: 0;')
							li.action-li
								a.action(href='/dash/v1/out/view/'+out.id) View
							if ( devbug.permission.project.edit(project, user) )
								li.action-li
									a.action(href='/dash/v1/out/delete/'+out.id+'/'+project.id) Delete