Merge pull request #4046 from okriuchykhin/ok_SCI_6722

Add results counter to second navigation [SCI-6722]
This commit is contained in:
Alex Kriuchykhin 2022-04-25 13:16:18 +02:00 committed by GitHub
commit 5d0fb932e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -34,6 +34,14 @@
margin-top: 20px;
}
.navigation-results-counter {
background-color: $color-concrete;
border-radius: $border-radius-circle;
color: $color-volcano;
font-weight: bold;
padding: .1em .5em;
}
.btn-colorselector{
background-color: transparent;
}

View file

@ -3,6 +3,7 @@
$border-radius-default: 4px;
$border-radius-modal: 6px;
$border-radius-tag: 2px;
$border-radius-circle: 100px;
$border-default: 1px solid $color-alto;
$border-secondary: 1px solid $color-silver-chalice;

View file

@ -71,6 +71,9 @@
<li id="results-nav-tab" class="<%= "active" if is_module_results? %>">
<a href="<%= results_my_module_url(@my_module) %>" title="<%=t "nav2.modules.results" %>">
<span class="hidden-xs"><%=t "nav2.modules.results" %></span>
<% if @my_module.results.size.positive? %>
<sup class="navigation-results-counter"><%= @my_module.results.size %></sup>
<% end %>
<span class="hidden-xs hidden-lg fas fa-columns"></span>
</a>
</li>