Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
2b28ce4d
Commit
2b28ce4d
authored
Jun 28, 2016
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-919 UI : Deleted references should be shown in red or filtered out (kevalbhatt18 via sumasai)
parent
0bf878de
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
100 additions
and
27 deletions
+100
-27
form.scss
dashboardv2/public/css/scss/form.scss
+5
-1
main.scss
dashboardv2/public/css/scss/main.scss
+21
-10
CommonViewFunction.js
dashboardv2/public/js/utils/CommonViewFunction.js
+61
-15
DetailPageLayoutView.js
...ardv2/public/js/views/detail_page/DetailPageLayoutView.js
+12
-1
release-log.txt
release-log.txt
+1
-0
No files found.
dashboardv2/public/css/scss/form.scss
View file @
2b28ce4d
...
...
@@ -193,7 +193,7 @@ button:focus {
border-color
:
$color_mountain_mist_approx
;
color
:
$color_mountain_mist_approx
;
cursor
:
default
;
margin
:
10px
;
margin
:
5px
10px
;
&
:hover
{
border-color
:
$color_mountain_mist_approx
;
color
:
$color_mountain_mist_approx
;
...
...
@@ -205,3 +205,7 @@ button:focus {
background-color
:
$transparent
;
}
}
.block
{
display
:
block
!
important
;
}
dashboardv2/public/css/scss/main.scss
View file @
2b28ce4d
...
...
@@ -99,7 +99,8 @@ body {
}
.gray-bg
{
background-color
:
$color_white_lilac_approx
;
background-color
:
#f6f7fb
;
padding-bottom
:
4%
;
}
header
{
...
...
@@ -240,6 +241,16 @@ ul {
}
}
.readOnlyLink
{
display
:
inline-block
;
.deleteBtn
{
padding
:
0px
5px
;
}
a
{
color
:
$delete_link
;
}
}
.readOnly
{
.addTag-dropdown
{
display
:
none
;
...
...
@@ -251,15 +262,6 @@ ul {
}
}
}
&
.readOnlyLink
{
display
:
inline-block
;
.deleteBtn
{
padding
:
0px
5px
;
}
a
{
color
:
$delete_link
;
}
}
a
{
&
.inputTag
[
data-id
=
"addTag"
]
{
display
:
none
;
...
...
@@ -282,3 +284,12 @@ ul {
}
}
}
@media
(
min-width
:
768px
)
{
.col-sm-offset-1
{
margin
:
4%
4%
0
;
}
.col-sm-10
{
width
:
92%
;
}
}
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
2b28ce4d
...
...
@@ -16,7 +16,7 @@
* limitations under the License.
*/
define
([
'require'
,
'utils/Utils'
,
'modules/Modal'
,
'utils/Messages'
],
function
(
require
,
Utils
,
Modal
,
Message
s
)
{
define
([
'require'
,
'utils/Utils'
,
'modules/Modal'
,
'utils/Messages'
,
'utils/Globals'
],
function
(
require
,
Utils
,
Modal
,
Messages
,
Global
s
)
{
'use strict'
;
var
CommonViewFunction
=
{};
...
...
@@ -108,16 +108,23 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages'], function(r
fetchInputOutputValue
=
function
(
id
)
{
var
that
=
this
;
scope
.
model
.
getEntity
(
id
,
{
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
var
value
=
""
;
var
value
=
""
,
deleteButton
=
""
;
if
(
data
.
definition
.
values
.
name
)
{
value
=
data
.
definition
.
values
.
name
;
}
else
if
(
data
.
definition
.
values
.
qualifiedName
)
{
value
=
data
.
definition
.
values
.
qualifiedName
;
}
else
if
(
data
.
definition
.
typeName
)
{
value
=
data
.
definition
.
typeName
;
}
var
id
=
""
;
if
(
data
.
definition
.
id
)
{
if
(
_
.
isObject
(
data
.
definition
.
id
)
&&
data
.
definition
.
id
.
id
)
{
id
=
data
.
definition
.
id
.
id
;
if
(
Globals
.
entityStateReadOnly
[
data
.
definition
.
id
.
state
])
{
deleteButton
+=
'<button title="Deleted" class="btn btn-atlasAction btn-atlas deleteBtn"><i class="fa fa-trash"></i></button>'
;
}
}
else
{
id
=
data
.
definition
.
id
;
}
...
...
@@ -127,7 +134,10 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages'], function(r
}
else
{
scope
.
$
(
'td div[data-id="'
+
id
+
'"]'
).
html
(
'<a href="#!/detailPage/'
+
id
+
'">'
+
id
+
'</a>'
);
}
if
(
deleteButton
.
length
)
{
scope
.
$
(
'td div[data-id="'
+
id
+
'"]'
).
addClass
(
'block readOnlyLink'
);
scope
.
$
(
'td div[data-id="'
+
id
+
'"]'
).
append
(
deleteButton
);
}
},
error
:
function
(
error
,
data
,
status
)
{},
complete
:
function
()
{}
...
...
@@ -139,46 +149,78 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages'], function(r
var
subLink
=
""
;
for
(
var
i
=
0
;
i
<
keyValue
.
length
;
i
++
)
{
var
inputOutputField
=
keyValue
[
i
],
id
=
undefined
;
id
=
undefined
,
tempLink
=
""
,
readOnly
=
false
;
if
(
_
.
isObject
(
inputOutputField
.
id
))
{
id
=
inputOutputField
.
id
.
id
;
if
(
Globals
.
entityStateReadOnly
[
inputOutputField
.
id
.
state
])
{
readOnly
=
inputOutputField
.
id
.
state
}
}
else
{
id
=
inputOutputField
.
id
;
}
if
(
id
)
{
if
(
inputOutputField
.
values
)
{
if
(
inputOutputField
.
values
.
name
)
{
subLink
+=
'<div><a href="#!/detailPage/'
+
id
+
'">'
+
inputOutputField
.
values
.
name
+
'</a><div>'
tempLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
inputOutputField
.
values
.
name
+
'</a>'
}
else
if
(
inputOutputField
.
values
.
qualifiedName
)
{
tempLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
inputOutputField
.
values
.
qualifiedName
+
'</a>'
}
else
if
(
inputOutputField
.
typeName
)
{
tempLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
inputOutputField
.
typeName
+
'</a>'
}
else
{
sub
Link
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
id
+
'</a>'
temp
Link
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
id
+
'</a>'
}
}
else
{
fetchInputOutputValue
(
id
);
sub
Link
+=
'<div data-id="'
+
id
+
'"></div>'
;
temp
Link
+=
'<div data-id="'
+
id
+
'"></div>'
;
}
}
if
(
readOnly
)
{
tempLink
+=
'<button title="Deleted" class="btn btn-atlasAction btn-atlas deleteBtn"><i class="fa fa-trash"></i></button>'
;
subLink
+=
'<div class="block readOnlyLink">'
+
tempLink
+
'</div>'
;
}
else
{
subLink
+=
'<div></div>'
;
if
(
tempLink
.
search
(
'href'
)
!=
-
1
)
{
subLink
+=
'<div>'
+
tempLink
+
'</div>'
}
else
{
subLink
+=
tempLink
}
}
}
table
+=
'<tr><td>'
+
key
+
'</td><td>'
+
subLink
+
'</td></tr>'
;
}
else
if
(
_
.
isObject
(
keyValue
))
{
var
id
=
undefined
;
var
id
=
undefined
,
tempLink
=
""
,
readOnly
=
false
;
if
(
_
.
isObject
(
keyValue
.
id
))
{
id
=
keyValue
.
id
.
id
;
if
(
Globals
.
entityStateReadOnly
[
keyValue
.
id
.
state
])
{
readOnly
=
keyValue
.
id
.
state
}
}
else
{
id
=
keyValue
.
id
;
}
if
(
id
)
{
if
(
keyValue
.
values
)
{
if
(
keyValue
.
values
.
name
)
{
table
+=
'<tr><td>'
+
key
+
'</td><td><div><a href="#!/detailPage/'
+
id
+
'">'
+
keyValue
.
values
.
name
+
'</a><div></td></tr>'
;
tempLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
keyValue
.
values
.
name
+
'</a>'
;
}
else
if
(
keyValue
.
values
.
qualifiedName
)
{
tempLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
keyValue
.
values
.
qualifiedName
+
'</a>'
}
else
if
(
keyValue
.
typeName
)
{
tempLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
keyValue
.
typeName
+
'</a>'
}
else
{
t
able
+=
'<tr><td>'
+
key
+
'</td><td><div><a href="#!/detailPage/'
+
id
+
'">'
+
id
+
'</a><div></td></tr
>'
;
t
empLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
id
+
'</a
>'
;
}
}
else
{
fetchInputOutputValue
(
id
);
table
+=
'<tr><td>'
+
key
+
'</td><td><div data-id="'
+
id
+
'"></div></td></tr>'
;
tempLink
+=
'<div data-id="'
+
id
+
'"></div>'
;
}
if
(
readOnly
)
{
tempLink
+=
'<button title="Deleted" class="btn btn-atlasAction btn-atlas deleteBtn"><i class="fa fa-trash"></i></button>'
;
table
+=
'<tr><td>'
+
key
+
'</td><td><div class="block readOnlyLink">'
+
tempLink
+
'</div></td></tr>'
;
}
else
{
table
+=
'<tr><td>'
+
key
+
'</td><td>'
+
tempLink
+
'</td></tr>'
;
}
}
else
{
var
stringArr
=
[];
...
...
@@ -194,9 +236,13 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages'], function(r
});
var
jointValues
=
stringArr
.
join
(
", "
);
if
(
jointValues
.
length
)
{
table
+=
'<tr><td>'
+
key
+
'</td><td><div>'
+
jointValues
+
'</div></td></tr>'
;
tempLink
+=
'<div>'
+
jointValues
+
'</div>'
;
}
if
(
readOnly
)
{
tempLink
+=
'<button title="Deleted" class="btn btn-atlasAction btn-atlas deleteBtn"><i class="fa fa-trash"></i></button>'
;
table
+=
'<tr><td>'
+
key
+
'</td><td><div class="block readOnlyLink">'
+
tempLink
+
'</div></td></tr>'
;
}
else
{
table
+=
'<tr><td>'
+
key
+
'</td><td></td></tr>'
;
table
+=
'<tr><td>'
+
key
+
'</td><td>
'
+
tempLink
+
'
</td></tr>'
;
}
}
}
else
{
...
...
dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
View file @
2b28ce4d
...
...
@@ -130,7 +130,18 @@ define(['require',
}
if
(
collectionJSON
&&
collectionJSON
.
length
)
{
if
(
collectionJSON
[
0
].
values
)
{
this
.
name
=
collectionJSON
[
0
].
values
.
name
;
if
(
collectionJSON
[
0
].
values
.
name
)
{
this
.
name
=
collectionJSON
[
0
].
values
.
name
;
}
if
(
!
this
.
name
&&
collectionJSON
[
0
].
values
.
qualifiedName
)
{
this
.
name
=
collectionJSON
[
0
].
values
.
qualifiedName
;
}
if
(
!
this
.
name
&&
collectionJSON
[
0
].
typeName
)
{
this
.
name
=
collectionJSON
[
0
].
typeName
;
}
if
(
!
this
.
name
&&
this
.
id
)
{
this
.
name
=
this
.
id
;
}
this
.
description
=
collectionJSON
[
0
].
values
.
description
;
if
(
this
.
name
)
{
this
.
ui
.
title
.
show
();
...
...
release-log.txt
View file @
2b28ce4d
...
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ATLAS-919 UI : Deleted references should be shown in red or filtered out (kevalbhatt18 via sumasai)
ATLAS-927 aboutAtlas_tmpl.html has hard-coded project version (Kalyanikashikar via yhemanth)
ATLAS-624 UI: Clicking a tag hyperlink should always result in DSL search. In some cases, results in full-text search. (Kalyanikashikar via yhemanth)
ATLAS-950 Atlas should support Solr that requires Kerberos authentication (madhan.neethiraj via yhemanth)
...
...
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