forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Distinguish reused terms in tree view (#650)
* distinguish reused properties in the tree view * use preferredNamespaceUri to distinguish reused terms in the tree view if uriRegexPattern is not present * use preferredNamespaceUri to distinguish reused properties in the tree view * distinguish reuses for instances tree * clean terms reuses code * extract is_reused to a separate function in components helper * add concepts reuses to the date view * pass submission directly instead of ontology_uri_pattern * pass direcly the submission instead of passing by a function in terms reuses * Clean terms reuses concern code * add reuses to schemes tree * add reuses to schemes tree when we perform a search * add reuses for collections tree * add reuses to properties tree when we perform a search * add reuses for concepts list view * Clean terms reuses code * extract submission variable form the concept date render helper * remove binding.pry comments left in the code --------- Co-authored-by: Syphax Bouazzouni <[email protected]>
- Loading branch information
1 parent
a332b32
commit 2dba7fd
Showing
20 changed files
with
258 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
.tree-view-reuse-icon{ | ||
display: inline; | ||
} | ||
.tree-view-reuse-icon svg{ | ||
width: 13px; | ||
} | ||
|
||
div.tree_error { | ||
background: none repeat scroll 0 0 lightYellow; | ||
font-weight: 600; | ||
padding: 5px 10px; | ||
} | ||
|
||
.expansion_error { | ||
color: red; | ||
font-size: x-small; | ||
font-style: oblique; | ||
padding: 0 3px; | ||
} | ||
|
||
#bd ul.simpleTree li{ | ||
margin-left: 0px; | ||
padding: 5px 0 0 10px; | ||
} | ||
|
||
#bd ul.simpleTree{ | ||
margin-left:0px; | ||
margin-bottom:0px; | ||
} | ||
|
||
.simpleTree { | ||
margin:0; | ||
padding:0; | ||
|
||
a.tree-link { | ||
display: inline-block; | ||
padding: 5px; | ||
word-break: break-all; | ||
text-wrap: wrap; | ||
color: var(--primary-color) !important; | ||
} | ||
|
||
a.tree-link.active { | ||
cursor: default; | ||
background-color: var(--light-color); | ||
font-weight: bold; | ||
border-radius: 3px; | ||
padding: 7px 5px; | ||
} | ||
|
||
.tree-border-left{ | ||
border-left: 2px dotted #eee; | ||
margin-left: 2px; | ||
} | ||
} | ||
.simpleTree li { | ||
list-style: none; | ||
margin:0; | ||
padding:0 0 0 22px; | ||
line-height: 14px; | ||
} | ||
.simpleTree li span { | ||
display:inline; | ||
clear: left; | ||
white-space: nowrap; | ||
} | ||
.simpleTree ul { | ||
margin:0; | ||
padding:0; | ||
} | ||
.simpleTree .root ul { | ||
margin:0; | ||
} | ||
.simpleTree .root { | ||
margin-left:-16px; | ||
/*background: url(/images/tree/root.gif) no-repeat 16px 0 #ffffff;*/ | ||
} | ||
.simpleTree .line { | ||
margin:0 0 0 -16px; | ||
padding:0; | ||
line-height: 3px; | ||
height:3px; | ||
font-size:3px; | ||
background: image-url('jquery.simple.tree/line_bg.gif') 0 0 no-repeat transparent; | ||
} | ||
.simpleTree .line-last { | ||
margin:0 0 0 -16px; | ||
padding:0; | ||
line-height: 3px; | ||
height:3px; | ||
font-size:3px; | ||
background: image-url('jquery.simple.tree/spacer.gif') 0 0 no-repeat transparent; | ||
} | ||
.simpleTree .line-over { | ||
margin:0 0 0 -16px; | ||
padding:0; | ||
line-height: 3px; | ||
height:3px; | ||
font-size:3px; | ||
background: image-url('jquery.simple.tree/line_bg_over.gif') 0 0 no-repeat transparent; | ||
} | ||
.simpleTree .line-over-last { | ||
margin:0 0 0 -16px; | ||
padding:0; | ||
line-height: 3px; | ||
height:3px; | ||
font-size:3px; | ||
background: image-url('jquery.simple.tree/line_bg_over_last.gif') 0 0 no-repeat transparent; | ||
} | ||
.simpleTree .folder-open { | ||
margin-left:-16px; | ||
background: image-url('jquery.simple.tree/collapsable.gif') 0 -2px no-repeat #fff; | ||
} | ||
.simpleTree .folder-open-last { | ||
margin-left:-16px; | ||
background: image-url('jquery.simple.tree/collapsable-last.gif') 0 -2px no-repeat #fff; | ||
} | ||
.simpleTree .folder-close { | ||
margin-left:-16px; | ||
background: image-url('jquery.simple.tree/expandable.gif') 0 -2px no-repeat #fff; | ||
} | ||
.simpleTree .folder-close-last { | ||
margin-left:-16px; | ||
background: image-url('jquery.simple.tree/expandable-last.gif') 0 -2px no-repeat #fff; | ||
} | ||
.simpleTree .doc { | ||
margin-left:-16px; | ||
background: image-url('jquery.simple.tree/leaf.gif') 0 -1px no-repeat #fff; | ||
} | ||
.simpleTree .doc-last { | ||
margin-left:-16px; | ||
background: image-url('jquery.simple.tree/leaf-last.gif') 0 -1px no-repeat #fff; | ||
} | ||
.simpleTree .ajax { | ||
background: image-url('jquery.simple.tree/spinner.gif') no-repeat 0 0 #ffffff; | ||
height: 16px; | ||
display:none; | ||
} | ||
.simpleTree .ajax li { | ||
display:none; | ||
margin:0; | ||
padding:0; | ||
} | ||
.simpleTree .trigger { | ||
display:inline; | ||
margin-left:-32px; | ||
width: 28px; | ||
height: 11px; | ||
cursor:pointer; | ||
} | ||
.simpleTree .text { | ||
cursor: default; | ||
padding: 0 2px; | ||
} | ||
.simpleTree .active { | ||
cursor: default; | ||
background-color: #B9D5E4; | ||
font-weight: bold; | ||
padding-top: 0px; | ||
padding-right: 2px; | ||
padding-bottom: 0px; | ||
padding-left: 2px; | ||
} | ||
.simpleTree a, .simpleTree a:hover { | ||
text-decoration: none; | ||
color: black; | ||
} | ||
.simpleTree a:hover { | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,4 +165,5 @@ div.synonym-change-request button { | |
.concepts_json_button{ | ||
margin-right: 5px; | ||
margin-top: -4px; | ||
} | ||
} | ||
|
Oops, something went wrong.