Skip to content

Commit 028a9a4

Browse files
committed
More space for certnames
1 parent 69993a2 commit 028a9a4

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
lines changed

puppetboard/static/css/puppetboard.css

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ h1.ui.header.no-margin-bottom {
2323
display: block;
2424
}
2525

26+
td.reports_links {
27+
display: flex;
28+
justify-content: space-between;
29+
}
30+
2631
.ui.table[class*="very compact"] td {
2732
padding: 0.15em 0.1em;
2833
max-width: 320px;

puppetboard/templates/index.html

+5-10
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ <h2>Nodes, except with status unchanged ({{nodes|length}})</h2>
8787
<table class='ui sortable very compact very basic table'>
8888
<thead>
8989
<tr>
90-
<th class="five wide">Status</th>
91-
<th class="five wide">Certname</th>
92-
<th class="date five wide default-sort">Report</th>
93-
<th class="one wide"></th>
90+
<th class="four wide">Status</th>
91+
<th class="eight wide">Certname</th>
92+
<th class="four wide default-sort">Report (last / all)</th>
9493
</tr>
9594
</thead>
9695
<tbody>
@@ -107,18 +106,14 @@ <h2>Nodes, except with status unchanged ({{nodes|length}})</h2>
107106
<td>
108107
<a href="{{url_for('node', env=current_env, node_name=node.name)}}">{{ node.name }}</a>
109108
</td>
110-
<td>
109+
<td class="reports_links">
111110
{% if node.report_timestamp %}
112111
<a href="{{url_for('report', env=current_env, node_name=node.name, report_id=node.latest_report_hash)}}" rel='utctimestamp'>{{ node.report_timestamp }}</a>
112+
<a title='Reports' href="{{url_for('reports', env=current_env, node_name=node.name)}}"><i class='large darkblue book icon'></i></a>
113113
{% else %}
114114
<i class="large ban icon"></i>
115115
{% endif %}
116116
</td>
117-
<td>
118-
{% if node.report_timestamp %}
119-
<a title='Reports' href="{{url_for('reports', env=current_env, node_name=node.name)}}"><i class='large darkblue book icon'></i></a>
120-
{% endif %}
121-
</td>
122117
</tr>
123118
{% endif %}
124119
{% endfor %}

puppetboard/templates/nodes.html

+6-11
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
<table class='ui very compact very basic sortable table'>
88
<thead>
99
<tr>
10-
<th>Status</th>
11-
<th class="default">Certname</th>
12-
<th class="date default-sort">Catalog</th>
13-
<th class="date">Report</th>
14-
<th>&nbsp;</th>
10+
<th class="four wide">Status</th>
11+
<th class="eight wide">Certname</th>
12+
<th class="two wide date default-sort">Catalog</th>
13+
<th class="two wide date">Report (last / all)</th>
1514
</tr>
1615
</thead>
1716
<tbody class="searchable">
@@ -26,18 +25,14 @@
2625
</td>
2726
<td><a href="{{url_for('node', env=current_env, node_name=node.name)}}">{{node.name}}</a></td>
2827
<td><a rel="utctimestamp" href="{{url_for('catalog_node', env=current_env, node_name=node.name)}}">{{node.catalog_timestamp}}</a></td>
29-
<td>
28+
<td class="reports_links">
3029
{% if node.report_timestamp %}
3130
<a href="{{url_for('report', env=current_env, node_name=node.name, report_id=node.latest_report_hash)}}" rel='utctimestamp'>{{ node.report_timestamp }}</a>
31+
<a title='Reports' href="{{url_for('reports', env=current_env, node_name=node.name)}}"><i class='large darkblue book icon'></i></a>
3232
{% else %}
3333
<i class="large darkblue ban icon"></i>
3434
{% endif %}
3535
</td>
36-
<td>
37-
{% if node.report_timestamp %}
38-
<a title='Reports' href="{{url_for('reports', env=current_env, node_name=node.name)}}"><i class='large darkblue book icon'></i></a>
39-
{% endif %}
40-
</td>
4136
</tr>
4237
{% endfor %}
4338
</tbody>

0 commit comments

Comments
 (0)