Skip to content

Commit cd8db2e

Browse files
feat: show endpoint and rule count
1 parent 7edc6d7 commit cd8db2e

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

web/src/uno.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/views/endpoints.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{{template "p/header" .}}
22

33
<main class="container">
4-
<h2>Endpoints</h2>
4+
<hgroup>
5+
<h2>Endpoints</h2>
6+
<h2>Showing {{len .Endpoints}} endpoints.</h2>
7+
</hgroup>
58
{{range $val := .Endpoints}}
69
<article id="endpoint_{{$val.ID}}">
710
<h3>{{$val.Name}}</h3>

web/views/p/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="container-fluid sticky top-0 z-50 bg-pico-background">
1+
<div class="container-fluid sticky top-0 z-50 bg-pico-background shadow">
22
<nav>
33
<ul>
44
<li>

web/views/rules.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{{template "p/header" .}}
22

33
<main class="container">
4-
<h2>Rules</h2>
4+
<hgroup>
5+
<h2>Rules</h2>
6+
<h2>Showing {{len .AggregateRules}} rules.</h2>
7+
</hgroup>
8+
59
{{range $val := .AggregateRules}}
610
<article>
711
<h3>{{$val.Rule.Name}}</h3>

0 commit comments

Comments
 (0)