Skip to content

Commit

Permalink
[feat #56] Add image and tags count
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Dec 21, 2018
1 parent 1e185b4 commit d599c1c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ h2 {
overflow: hidden;
}

.material-card-title-action h2 .item-count {
font-size: 0.7em;
margin-left: 1em;
}

.list {
display: block;
padding: 8px 0;
Expand Down
5 changes: 4 additions & 1 deletion src/tags/catalog.tag
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<!-- Begin of tag -->
<material-card ref="catalog-tag" class="catalog">
<div class="material-card-title-action">
<h2>Repositories of { registryUI.name() }</h2>
<h2>
Repositories of { registryUI.name() }
<div class="item-count">{ registryUI.catalog.repositories.length } images</div>
</h2>
</div>
<div hide="{ registryUI.catalog.loadend }" class="spinner-wrapper">
<material-spinner></material-spinner>
Expand Down
5 changes: 4 additions & 1 deletion src/tags/taglist.tag
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<a href="#!" onclick="registryUI.home();">
<i class="material-icons">arrow_back</i>
</a>
<h2>Tags of { registryUI.name() + '/' + registryUI.taglist.name }</h2>
<h2>
Tags of { registryUI.name() + '/' + registryUI.taglist.name }
<div class="item-count">{ registryUI.taglist.tags.length } tags</div>
</h2>
</div>
<div hide="{ registryUI.taglist.loadend }" class="spinner-wrapper">
<material-spinner></material-spinner>
Expand Down

0 comments on commit d599c1c

Please sign in to comment.