Big Bang
This commit is contained in:
26
app/views/dash_v1/main.pug
Normal file
26
app/views/dash_v1/main.pug
Normal file
@@ -0,0 +1,26 @@
|
||||
html
|
||||
head
|
||||
title DevBug Dashboard
|
||||
link(rel='stylesheet' href='/assets/dash_v1.css')
|
||||
body
|
||||
h1 DevBug Dashboard
|
||||
ul(style='list-style-type: none; display: inline; margin: 0; padding: 0; padding-right: 15px;')
|
||||
li
|
||||
a(href='/auth/logout') Logout
|
||||
h3 My Projects
|
||||
ul(style='list-style-type: none;')
|
||||
li
|
||||
a(href='/dash/v1/project/new') Create New Project
|
||||
table
|
||||
thead
|
||||
tr
|
||||
th(scope='col' style='min-width: 250px') Name
|
||||
th(scope='col') Actions
|
||||
tbody
|
||||
each project in projects
|
||||
tr
|
||||
td #{project.name}
|
||||
td
|
||||
ul(style='list-style-type: none; margin: 0; padding: 0;')
|
||||
li
|
||||
a.action(href='/dash/v1/project/view/'+project.id) View
|
||||
10
app/views/dash_v1/out.pug
Normal file
10
app/views/dash_v1/out.pug
Normal file
@@ -0,0 +1,10 @@
|
||||
html
|
||||
head
|
||||
title #{out.brief}
|
||||
body
|
||||
h2 #{out.brief}
|
||||
div
|
||||
a(href='javascript:window.history.back()') Back
|
||||
pre
|
||||
code
|
||||
div #{prettyd}
|
||||
14
app/views/dash_v1/project.pug
Normal file
14
app/views/dash_v1/project.pug
Normal file
@@ -0,0 +1,14 @@
|
||||
html
|
||||
head
|
||||
title #{(update ? 'Update Project' : 'Create New Project')} | DevBug
|
||||
body
|
||||
h2 #{(update ? 'Update Project' : 'Create New Project')}
|
||||
if errors
|
||||
each error in errors
|
||||
p(style='color: red; font-weight: bold;') #{error}
|
||||
form(method='post', enctype='multipart/form-data')
|
||||
label(for='project_name') Project Name:
|
||||
input#project_name(type='text', name='name' required autofocus)
|
||||
br
|
||||
br
|
||||
button(type='submit') Create Project
|
||||
27
app/views/dash_v1/view.pug
Normal file
27
app/views/dash_v1/view.pug
Normal file
@@ -0,0 +1,27 @@
|
||||
html
|
||||
head
|
||||
title View: #{project.name} | Devbug
|
||||
link(rel='stylesheet' href='/assets/dash_v1.css')
|
||||
body
|
||||
h2 View: #{project.name}
|
||||
h4 API Key: #{ project.uuid }
|
||||
ul(style='list-style-type: none; display: inline; margin: 0; padding: 0; padding-right: 15px;')
|
||||
li
|
||||
a(href='/dash/v1') Dashboard
|
||||
li
|
||||
a(href='/auth/logout') Logout
|
||||
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
|
||||
a.action(href='/dash/v1/out/view/'+out.id) View
|
||||
Reference in New Issue
Block a user