Skip to content

Commit

Permalink
templates: makes labels clickable
Browse files Browse the repository at this point in the history
 * Closes cernopendata#1916.

Signed-off-by: Ioannis Tsanaktsidis <ioannis.tsanaktsidis@cern.ch>
  • Loading branch information
ioannistsanaktsidis committed Nov 29, 2017
1 parent 7b7aefb commit 27456e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -20,10 +20,10 @@ <h3 class="d-inline">
<div class="row">
<div class="col-md-12">
{% if record.type %}
<span class="badge badge-success">{{record.type.primary}}</span>
<a class="badge badge-success" href="/search?type={{record.type.primary}}">{{record.type.primary}}</a>
{% if record.type.secondary %}
{% for type in record.type.secondary%}
<span class="badge badge-success">{{type}}</span>
<a class="badge badge-success" href="/search?type={{record.type.primary}}&subtype={{type}}">{{type}}</a>
{% endfor %}
{% endif %}
{% endif %}
Expand Down
Expand Up @@ -63,10 +63,10 @@ <h6 class="card-title">
<div class="row">
<div class="col-md-12">
{% if record.type %}
<span class="badge badge-secondary">{{record.type.primary}}</span>
<a class="badge badge-secondary" href="/search?type={{record.type.primary}}">{{record.type.primary}}</a>
{% if record.type.secondary %}
{% for type in record.type.secondary%}
<span class="badge badge-secondary">{{type}}</span>
<a class="badge badge-secondary" href="/search?type={{record.type.primary}}&subtype={{type}}">{{type}}</a>
{% endfor %}
{% endif %}
{% endif %}
Expand Down

0 comments on commit 27456e5

Please sign in to comment.