Skip to content

Commit 63b9260

Browse files
committed
Tweak design
1 parent 9f9aca2 commit 63b9260

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/_layouts/base.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<a class="nav-link{% if '/modules/' === page.url %} active{% endif %}" href="{{ "/modules/" | url }}">Modules</a>
2424
</li>
2525
<li class="nav-item">
26-
<a class="nav-link" href="https://github.com/seproDev/depctrl-browser">Github</a>
26+
<a class="nav-link" href="https://github.com/seproDev/depctrl-browser">GitHub</a>
2727
</li>
2828
</ul>
2929
</div>

src/index.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ layout: base.njk
1212
macros and modules. This site allows browsing of those macros and modules.
1313
</p>
1414
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
15-
<a href="{{ "/feeds/" | url }}" role="button" class="btn btn-primary btn-lg px-4 gap-3">
15+
<a href="{{ "/feeds/" | url }}" role="button" class="btn btn-outline-dark btn-lg px-4 gap-3">
1616
Feeds <span class="badge text-bg-secondary">{{ feeds | length }}</span>
1717
</a>
18-
<a href="{{ "/macros/" | url }}" role="button" class="btn btn-primary btn-lg px-4 gap-3">
18+
<a href="{{ "/macros/" | url }}" role="button" class="btn btn-outline-dark btn-lg px-4 gap-3">
1919
Macros <span class="badge text-bg-secondary">{{ macros | length }}</span>
2020
</a>
21-
<a href="{{ "/modules/" | url }}" role="button" class="btn btn-primary btn-lg px-4 gap-3">
21+
<a href="{{ "/modules/" | url }}" role="button" class="btn btn-outline-dark btn-lg px-4 gap-3">
2222
Modules <span class="badge text-bg-secondary">{{ modules | length }}</span>
2323
</a>
2424
</div>

src/pages/feeds-list.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permalink: "feeds/"
1313
<th scope="col">Macros</th>
1414
<th scope="col">Modules</th>
1515
<th scope="col">File Hash</th>
16-
<th scope="col">Notes</th>
16+
<th scope="col">Issues</th>
1717
</tr>
1818
</thead>
1919
<tbody>
@@ -25,16 +25,16 @@ permalink: "feeds/"
2525
<td></td>
2626
<td></td>
2727
<td></td>
28-
<td>JSON could not be parsed</td>
28+
<td>⚠️ JSON could not be parsed</td>
2929
</tr>
3030
{% else %}
31-
<tr {% if feed._defective or not feed._validHash %} class="table-warning"{% endif %}>
31+
<tr>
3232
<th><a href="{{ ["/feeds/" , feed._identifier, "/"] | join | url }}">{{ feed.name }}</a> <a role="button" class="badge btn btn-secondary" href="{{ ["/feeds/" , feed._identifier, "/"] | join | url }}">{{ feed._identifier}}</a></th>
3333
<td>{{ feed.maintainer }}</td>
3434
<td>{{ feed.macros | length }}</td>
3535
<td>{{ feed.modules | length }}</td>
3636
<td>{% if feed._validHash %}{% else %}{% endif %}</td>
37-
<td>{{ feed._defective}}</td>
37+
<td>{% if feed._defective %}⚠️ {{ feed._defective}}{% endif %}</td>
3838
</tr>
3939
{% endif %}
4040
{% endfor %}

src/pages/feeds-pages.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Feed may not be JSON compliant due to {{ feed._defective }}
3939
</thead>
4040
<tbody>
4141
{% for macroNamespace, macro in feed.macros %}
42-
<tr {% if not macro._validHash %} class="table-warning"{% endif %}>
42+
<tr>
4343
<th><a href="{{ ["/macros/" , macroNamespace, "/"] | join | url }}">{{ macro.name }}</a></th>
4444
<td>{{ macroNamespace }}</td>
4545
<td>{{ macro.author }}</td>
@@ -68,7 +68,7 @@ Feed may not be JSON compliant due to {{ feed._defective }}
6868
</thead>
6969
<tbody>
7070
{% for modulesNamespace, module in feed.modules %}
71-
<tr {% if not module._validHash %} class="table-warning"{% endif %}>
71+
<tr>
7272
<th><a href="{{ ["/modules/" , modulesNamespace, "/"] | join | url }}">{{ module.name }}</a></th>
7373
<td>{{ modulesNamespace }}</td>
7474
<td>{{ module.author }}</td>

src/pages/macros-list.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permalink: "macros/"
1919
{% for macroList in macros | automationListSort %}
2020
{% if (macroList | length) === 1 %}
2121
{% set macro = macroList | first %}
22-
<tr {% if not macro._validHash %} class="table-warning"{% endif %}>
22+
<tr {% if not macro._validHash %}class="table-danger"{% endif %}>
2323
<th><a href="{{ ["/macros/" , macro._namespace, "/"] | join | url }}">{{ macro.name }}</a></th>
2424
<td>{{ macro._namespace }}</td>
2525
<td>{{ macro.author }}</td>
@@ -28,7 +28,7 @@ permalink: "macros/"
2828
</tr>
2929
{% else %}
3030
{% set firstMacro = macroList | first %}
31-
<tr class="table-warning">
31+
<tr {% if (macroList | singleValue("_validHash") === false ) and not firstMacro._validHash %}class="table-danger"{% endif %}>
3232
<th><a href="{{ ["/macros/" , firstMacro._namespace, "/"] | join | url }}">{{ macroList | singleValue("name") }}</a></th>
3333
<td>{{ firstMacro._namespace }}</td>
3434
<td>{{ macroList | singleValue("author") }}</td>

src/pages/modules-list.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permalink: "modules/"
1919
{% for moduleList in modules | automationListSort %}
2020
{% if (moduleList | length) === 1 %}
2121
{% set module = moduleList | first %}
22-
<tr {% if not module._validHash %} class="table-warning"{% endif %}>
22+
<tr {% if not module._validHash %} class="table-danger"{% endif %}>
2323
<th><a href="{{ ["/modules/" , module._namespace, "/"] | join | url }}">{{ module.name }}</a></th>
2424
<td>{{ module._namespace }}</td>
2525
<td>{{ module.author }}</td>
@@ -28,7 +28,7 @@ permalink: "modules/"
2828
</tr>
2929
{% else %}
3030
{% set firstModule = moduleList | first %}
31-
<tr class="table-warning">
31+
<tr {% if (moduleList | singleValue("_validHash") === false ) and not firstModule._validHash %}class="table-danger"{% endif %}>
3232
<th><a href="{{ ["/modules/" , firstModule._namespace, "/"] | join | url }}">{{ moduleList | singleValue("name") }}</a></th>
3333
<td>{{ firstModule._namespace }}</td>
3434
<td>{{ moduleList | singleValue("author") }}</td>

0 commit comments

Comments
 (0)