Skip to content

Commit 874e59b

Browse files
committed
Closes #4060: Move secrets panel on home page to righthand column
1 parent 0c89534 commit 874e59b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

netbox/templates/home.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -127,23 +127,6 @@ <h4 class="list-group-item-heading">Power Panels</h4>
127127
</div>
128128
</div>
129129
</div>
130-
<div class="panel panel-default">
131-
<div class="panel-heading">
132-
<strong>Secrets</strong>
133-
</div>
134-
<div class="list-group">
135-
<div class="list-group-item">
136-
{% if perms.secrets.view_secret %}
137-
<span class="badge pull-right">{{ stats.secret_count }}</span>
138-
<h4 class="list-group-item-heading"><a href="{% url 'secrets:secret_list' %}">Secrets</a></h4>
139-
{% else %}
140-
<span class="badge pull-right"><i class="fa fa-lock"></i></span>
141-
<h4 class="list-group-item-heading">Secrets</h4>
142-
{% endif %}
143-
<p class="list-group-item-text text-muted">Cryptographically secured secret data</p>
144-
</div>
145-
</div>
146-
</div>
147130
</div>
148131
<div class="col-sm-6 col-md-4">
149132
<div class="panel panel-default">
@@ -259,6 +242,23 @@ <h4 class="list-group-item-heading">Virtual Machines</h4>
259242
</div>
260243
</div>
261244
<div class="col-sm-6 col-md-4">
245+
<div class="panel panel-default">
246+
<div class="panel-heading">
247+
<strong>Secrets</strong>
248+
</div>
249+
<div class="list-group">
250+
<div class="list-group-item">
251+
{% if perms.secrets.view_secret %}
252+
<span class="badge pull-right">{{ stats.secret_count }}</span>
253+
<h4 class="list-group-item-heading"><a href="{% url 'secrets:secret_list' %}">Secrets</a></h4>
254+
{% else %}
255+
<span class="badge pull-right"><i class="fa fa-lock"></i></span>
256+
<h4 class="list-group-item-heading">Secrets</h4>
257+
{% endif %}
258+
<p class="list-group-item-text text-muted">Cryptographically secured secret data</p>
259+
</div>
260+
</div>
261+
</div>
262262
<div class="panel panel-default">
263263
<div class="panel-heading">
264264
<strong>Reports</strong>

0 commit comments

Comments
 (0)