Skip to content

Commit bb38633

Browse files
authored
Merge pull request #655 from aaronweaver/dev
product overview tweak
2 parents c920aac + 9250ac0 commit bb38633

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

dojo/templates/dojo/view_product_details.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h3 class="panel-title"><span class="fa fa-pie-chart" aria-hidden="true"></span>
117117
<div class="col-md-6">
118118
<div class="panel panel-default">
119119
<div class="panel-heading">
120-
<h3 class="panel-title"><span class="fa fa-bolt" aria-hidden="true"></span> Technologies</h3>
120+
<h3 class="panel-title"><span class="fa fa-bolt" aria-hidden="true"></span> Technologies {%if app_analysis%}({{ app_analysis.count }}){%endif%}</h3>
121121
</div>
122122
<ul class="list-group">
123123
{% for app in app_analysis %}
@@ -131,7 +131,7 @@ <h3 class="panel-title"><span class="fa fa-bolt" aria-hidden="true"></span> Tech
131131
<div class="col-md-6">
132132
<div class="panel panel-default">
133133
<div class="panel-heading">
134-
<h3 class="panel-title"><span class="fa fa-gavel" aria-hidden="true"></span> Regulations ({{ prod.regulations.count }})</h3>
134+
<h3 class="panel-title"><span class="fa fa-gavel" aria-hidden="true"></span> Regulations {% if prod.regulations.count > 0%}({{ prod.regulations.count }}){%endif%}</h3>
135135
</div>
136136
<ul class="list-group">
137137
{% for regulation in prod.regulations.all %}
@@ -201,7 +201,7 @@ <h3 class="panel-title"><span class="fa fa-info-circle fa-fw" aria-hidden="true"
201201
{% if languages %}
202202
<div class="panel panel-default panel-default-secondary">
203203
<div class="panel-heading">
204-
<h3 class="panel-title"><span class="fa fa-language" aria-hidden="true"></span> Languages</h3>
204+
<h3 class="panel-title"><span class="fa fa-language" aria-hidden="true"></span> Languages ({{ languages.count }})</h3>
205205
</div>
206206
<div class="panel-body">
207207
<div class="chart" id="donut-lang"></div>
@@ -264,11 +264,12 @@ <h3 class="panel-title"><span class="fa fa-users fa-fw" aria-hidden="true"></spa
264264
<td><strong>Authorized Users</strong></td>
265265
<td>
266266
{% if prod.authorized_users.all %}
267-
<ul class="no-bullets">
268267
{% for au in prod.authorized_users.all %}
269-
<li class="">{{ au }}</li>
268+
{{ au }}<br>
270269
{% endfor %}
271270
</ul>
271+
{% else %}
272+
None specified
272273
{% endif %}
273274
</td>
274275
</tr>
@@ -310,11 +311,13 @@ <h3 class="panel-title"><span class="fa fa-users fa-fw" aria-hidden="true"></spa
310311
function severity_pie() {
311312
var data = [
312313
{% for lang in languages %}
314+
{% if lang.files %}
313315
{
314316
label: "&nbsp;{{lang}}",
315317
color: "{{lang.language.color }}",
316318
data: {{lang.files}}
317319
},
320+
{% endif %}
318321
{% endfor %}
319322
];
320323

0 commit comments

Comments
 (0)