Skip to content

Commit

Permalink
Display private lock icon in the search results too
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenwalker committed May 2, 2016
1 parent 2afb16e commit 3c4b30d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metacatui/src/main/webapp/css/metacatui-common.css
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ img.icon{
}
.info-icons .icon.private{
font-size: 1.5em;
color: #FF7600;
}
.result-row .info-icons .label{
background-color: #5E8497;
Expand Down Expand Up @@ -1204,7 +1205,6 @@ img.icon{
.metadata-controls-container .info-icons{
display: inline-block;
padding-left: 20px;
color: #FF7600;
font-size: 1.2em;
top: 5px;
position: relative;
Expand Down
3 changes: 3 additions & 0 deletions metacatui/src/main/webapp/js/templates/resultsItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
</div>
<div class="clear"></div>
<div class="info-icons stop-route">
<% if(!isPublic){ %>
<div class="private icons stop-route"><i class="icon icon-lock tooltip-this private stop-route" data-container="#results-container" data-toggle="tooltip" data-placement="right" title="This is private content."></i></div>
<% } %>
<div class="icons stop-route">
<%
if ((resourceMap && (typeof resourceMap != "undefined")) && (resourceMap.length > 1)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
</div>
<div class="clear"></div>
<div class="info-icons stop-route">
<% if(!isPublic){ %>
<div class="private icons stop-route"><i class="icon icon-lock tooltip-this private stop-route" data-container="#results-container" data-toggle="tooltip" data-placement="right" title="This is private content."></i></div>
<% } %>
<div class="icons stop-route">
<%
if ((resourceMap && (typeof resourceMap != "undefined")) && (resourceMap.length > 1)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="info-icons stop-route">

<% if(!isPublic){ %>
<div class="private icons stop-route"><i class="icon icon-lock tooltip-this private stop-route" data-toggle="tooltip" data-placement="right" title="Your private content."></i></div>
<div class="private icons stop-route"><i class="icon icon-lock tooltip-this private stop-route" data-container="#results-container" data-toggle="tooltip" data-placement="right" title="This is private content."></i></div>
<% } %>
<% if(typeof abstract != "undefined"){ %>
<div class="abstract icons stop-route"><i class="icon icon-info-sign popover-this abstract stop-route"></i></div>
Expand Down

0 comments on commit 3c4b30d

Please sign in to comment.