Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peter Lundin
cmdb
Commits
04c2c301
Commit
04c2c301
authored
Jan 03, 2018
by
a001188
Browse files
New menu structure
parent
0d0b35e7
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
public/javascripts/dashlets/ec-ci-table.js
View file @
04c2c301
...
...
@@ -10,16 +10,16 @@ function ec_ciColumnDef(){
width
:
'
1%
'
,
display
:
renderEcCiSubTable
},
family_type_id
:
{
title
:
'
Familjetyp
'
,
options
:
'
/cmdb/api/v1/options/family_type
'
,
width
:
'
5%
'
},
family_id
:
{
title
:
'
Familj
'
,
options
:
'
/cmdb/api/v1/options/families
'
,
width
:
'
5%
'
},
//
family_type_id: {
//
title: 'Familjetyp',
//
options: '/cmdb/api/v1/options/family_type',
//
width: '5%'
//
},
//
family_id: {
//
title: 'Familj',
//
options: '/cmdb/api/v1/options/families',
//
width: '5%'
//
},
id
:
{
title
:
'
id
'
,
width
:
'
1%
'
,
...
...
@@ -28,19 +28,19 @@ function ec_ciColumnDef(){
},
display_name
:
{
title
:
'
Namn
'
,
width
:
'
10
%
'
width
:
'
8
%
'
},
description
:
{
title
:
'
Beskrivning
'
,
width
:
'
1
5
%
'
width
:
'
1
0
%
'
},
kst
:
{
title
:
'
Kostnadsställe
'
,
width
:
'
5
%
'
width
:
'
3
%
'
},
product
:
{
title
:
'
Produkt
'
,
width
:
'
5
%
'
width
:
'
3
%
'
},
sla
:
{
title
:
'
SLA
'
,
...
...
@@ -52,20 +52,20 @@ function ec_ciColumnDef(){
},
attribute_information
:
{
title
:
'
Attribut
'
,
width
:
'
20
%
'
width
:
'
15
%
'
},
//
account_
group
: {
//
title: '
Grupper
',
//
width: '
1
5%'
//
},
//
account_
id
: {
//
title: '
Konton
',
//
width: '
1
5%'
//
},
//
contacts: {
//
title: 'Kontaktperson
er
',
//
width: '
1
5%'
//
}
account_
id
:
{
title
:
'
Konto
'
,
width
:
'
5%
'
},
account_
group
:
{
title
:
'
Grupp
'
,
width
:
'
5%
'
},
contacts
:
{
title
:
'
Kontaktperson
'
,
width
:
'
5%
'
}
}
return
cd
;
}
...
...
@@ -74,7 +74,7 @@ function ec_ciColumnDef(){
function
createEcCiTable
(
ciColumnDef
){
var
table
=
{
title
:
"
Konfigurationselement
CI
"
,
title
:
"
IT-Tjänst: Drift av System (
CI
)
"
,
paging
:
false
,
//Enable paging
pageSize
:
10
,
//Set page size (default: 10)
pageList
:
'
minimal
'
,
...
...
public/javascripts/jtable/themes/lightcolor/gray/jtable.min.css
View file @
04c2c301
This diff is collapsed.
Click to expand it.
public/javascripts/jtable/themes/metro/darkgray/jtable.min.css
View file @
04c2c301
This diff is collapsed.
Click to expand it.
public/javascripts/jtable/themes/metro/darkorange/jtable.min.css
View file @
04c2c301
This diff is collapsed.
Click to expand it.
routes/access.js
View file @
04c2c301
...
...
@@ -202,10 +202,6 @@ router.get('/edges', (req, res, next) => {
router
.
get
(
'
/node/:id
'
,
(
req
,
res
,
next
)
=>
{
var
pool
=
new
pg
.
Pool
({
connectionString
:
connectionString
,
...
...
@@ -288,32 +284,6 @@ router.get('/edge/:id', (req, res, next) => {
});
router
.
get
(
'
/list/nodes/:centralNode
'
,
(
req
,
res
,
next
)
=>
{
var
pool
=
new
pg
.
Pool
({
connectionString
:
connectionString
...
...
@@ -414,5 +384,4 @@ limit 10
});
module
.
exports
=
router
;
views/layout.pug
View file @
04c2c301
...
...
@@ -5,7 +5,7 @@ html
title= title
link(rel='stylesheet', href='/stylesheets/cmdbgui.css')
link(rel='stylesheet', href='/stylesheets/network-graph.css')
link(rel='stylesheet', href='/javascripts/jtable/themes/lightcolor/
blue
/jtable.min.css')
link(rel='stylesheet', href='/javascripts/jtable/themes/lightcolor/
gray
/jtable.min.css')
link(rel='stylesheet', href='//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css')
link(rel='stylesheet', href='/javascripts/vis/dist/vis.css')
script(type='text/javascript', src='//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js')
...
...
views/menu.pug
View file @
04c2c301
...
...
@@ -4,9 +4,12 @@ block menu
table(class='cmdbguiSmallText')
tr
td(style='text-align: left') CMDB-Viewer
td(style='text-align: left')
p(class='cmdbguiSmallText') CMDB-Viewer by Peter Lundin
td(style='text-align: center')
p(class='cmdbguiSmallText') databaseschema: jasper.cmdb on postresql-utv.smhi.se user jasper.u
td(style='text-align: right')
a(href="https://git.smhi.se/a001188/cmdb") git.smhi.se/a001188/cmdb
a(
class='cmdbguiSmallText'
href="https://git.smhi.se/a001188/cmdb") git.smhi.se/a001188/cmdb
nav
ul(class='nav')
li
...
...
@@ -19,12 +22,22 @@ block menu
li
a(href="/view/relation-types/1") Relationstyper
li
a(href="#")
Teknisk konfiguration
a(href="#")
IT-Tjänster
ul
li
a(href="/view/ec-ci/1")
Företagstjän
ste
r
(CI)
a(href="/view/ec-ci/1")
Drift av Sy
ste
m
(CI)
li
a(href="/view/tfo-ci/1") Infrastruktur (CI)
a(href="/") Kontorsarbetsplats (CI) - Ej implementerad
li
a(href="/") Filtjänst (CI) - Ej implementerad
li
a(href="#") Infrastruktur
ul
li
a(href="/view/tfo-ci/1") Teknikområden (CI)
li
a(href="#") Behörighet
ul
li
a(href="/view/access/2") Behörighet
li
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment