Only show the git version in case it is different
In the common case it is the same, so avoid showing it twice
This commit is contained in:
@@ -65,16 +65,7 @@
|
||||
</dd>
|
||||
|
||||
<dt class="col-sm-3 text-sm-end">Version:</dt>
|
||||
<dd class="col-sm-9">{{ s.version }}</dd>
|
||||
|
||||
<dt class="col-sm-3 text-sm-end">GIT Version:</dt>
|
||||
<dd class="col-sm-9">
|
||||
{% if s.git_version %}
|
||||
<a href="{{ s.source_url }}">{{ s.git_version }}</a>
|
||||
{% else %}
|
||||
-
|
||||
{% endif%}
|
||||
</dd>
|
||||
<dd class="col-sm-9">{{ s.version }}{% if s.version != s.git_version %} <span class="text-muted small align-text-bottom ps-1">(<a href="{{ s.source_url }}">{{ s.git_version }}</a> in git)</span>{% endif %}</dd>
|
||||
|
||||
<dt class="col-sm-3 text-sm-end mb-2">External:</dt>
|
||||
<dd class="col-sm-9">
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
</template>
|
||||
</td>
|
||||
<td><a href="{{ url_for('base', base_name=s.name) }}">{{ s.name }}</a></td>
|
||||
<td class="text-version">{{ myver }}{% if gitver %} <span class="text-muted small px-2">({{ gitver }} in git)</span>{% endif %}</td>
|
||||
<td class="text-version">{{ myver }}{% if gitver %} <span class="text-muted small align-text-bottom ps-1">({{ gitver }} in git)</span>{% endif %}</td>
|
||||
<td>→</td>
|
||||
<td class="text-version"><a href="{{ url }}">{{ ver }}</a></td>
|
||||
{% if s.active_vulnerabilities %}
|
||||
|
||||
@@ -59,16 +59,7 @@
|
||||
<dd class="col-sm-9">{{ licenses_to_html(p.licenses)|safe }}</dd>
|
||||
|
||||
<dt class="col-sm-3 text-sm-end">Version:</dt>
|
||||
<dd class="col-sm-9">{{ p.version }}</dd>
|
||||
|
||||
<dt class="col-sm-3 text-sm-end">GIT Version:</dt>
|
||||
<dd class="col-sm-9">
|
||||
{% if s.git_version %}
|
||||
<a href="{{ s.source_url }}">{{ s.git_version }}</a>
|
||||
{% else %}
|
||||
-
|
||||
{% endif%}
|
||||
</dd>
|
||||
<dd class="col-sm-9">{{ p.version }}{% if p.version != s.git_version %} <span class="text-muted small align-text-bottom ps-1">(<a href="{{ s.source_url }}">{{ s.git_version }}</a> in git)</span>{% endif %}</dd>
|
||||
|
||||
<dt class="col-sm-3 text-sm-end mb-2">External:</dt>
|
||||
<dd class="col-sm-9">
|
||||
|
||||
Reference in New Issue
Block a user