47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
extends ./template
|
|
block content
|
|
h3 Project API Key: #{project.uuid}
|
|
|
|
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
|
|
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
|