Skip to content

Commit

Permalink
#27 collection breadcrum
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetal Patel committed Jan 30, 2018
1 parent 039a683 commit 099a1c1
Show file tree
Hide file tree
Showing 9 changed files with 143 additions and 157 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public DataGridCollectionAndDataObject findByName(String path) throws DataGridEx

logger.info("findByName()");

if (path == null) {
if (path == null || path.isEmpty()) {
logger.info("Could not find collection or data object by name: path is null");
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public String getSubDirectories(final Model model, @RequestParam("path") String
logger.info("path:{}", path);

// removes all ocurrences of "/" at the end of the path string
while (path.endsWith("/") && !"/".equals(path)) {
while (path.endsWith("/") && !"/".equals(path)) {
path = path.substring(0, path.lastIndexOf("/"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function displayInfoDetails(data){
}

function displayMetadata(data){
console.log("display Metadata");
console.log("display Metadata :: " +data);
$('#table-loader').hide();
$('#table-loader').after(data);
/*$("#uploadIcon").prop("disabled", true);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<th:block th:fragment="collectionHeaderView">
<h3 id="collManagement" class="collection-header pull-left" th:text="#{collections.management.page.title}" th:data-content="#{collection.title.popover}"></h3>
<a aria-label="page help" id="collections-page-title" href="#" class="page-hint pull-left"><i class="fa fa-question-circle"></i></a>
</th:block>
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

<body>
<div aria-labelledby="collManagement" layout:fragment="content">
<h4 id="collManagement" class="collection-header pull-left" th:text="#{collections.management.page.title}" th:data-content="#{collection.title.popover}"></h4>
<a aria-label="page help" id="collections-page-title" href="#" class="page-hint pull-left"><i class="fa fa-question-circle"></i></a>
<th:block th:include="collections/collectionHeader :: collectionHeaderView"></th:block>
<ol class="breadcrumb mlx" th:if="${cameFromMetadataSearch} == true"
id="backToMetadataSearch">
<li><a href="/emc-metalnx-web/metadata/?backFromCollections=true" aria-hidden="true">Search Results</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<div class="breadcrumb-wrapper">

<ol class="breadcrumb">
<a th:href="@{${urlMap.URL_HOME_COLLECTION_USER}}"><i class="fa fa-home"></i></a>
<li>
<a th:href="@{${urlMap.URL_HOME_COLLECTION_USER}}"><i class="fa fa-home"></i></a>
</li>
<th:block th:if="${breadcrumb.items.size()} le 3" th:each="breadcrumbItem, iterStat: ${breadcrumb.items}">
<th:block th:if="${iterStat.index lt (breadcrumb.items.size()-1)}">
<li class="hidden-xs hidden-sm">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="col-md-12" th:unless="${dataProfile == null}">

<div th:unless="${dataProfile.file}" th:fragment="collectionInfoView">
<div class="panel property">
<div class="panel property collection-tabs">
<div class="row">
<h4 class="property-title" th:text="#{text.info}">
<i class="fa fa-info-circle"></i>
Expand Down
Loading

0 comments on commit 099a1c1

Please sign in to comment.