|
63 | 63 | {{ 'that interest'|trans }} {{ userMacro.render(search.interestedBy, 1) }}
|
64 | 64 | {% endif %}
|
65 | 65 | {% if search.visibleBy %}
|
66 |
| - {{ 'visible by'|trans }} <a href="{{ path('userclass_show', {id: search.visibleBy.id}) }}" class="badge badge-primary">{{ search.visibleBy }}</a> |
| 66 | + {{ 'visible by'|trans }} <a href="{{ path('userclass_show', {id: search.visibleBy.id}) }}" class="badge bg-primary">{{ search.visibleBy }}</a> |
67 | 67 | {% endif %}
|
68 | 68 | {% if search.disabled %}
|
69 |
| - {{ 'including'|trans }} <span class="badge badge-danger"><i class="fas fa-ban"></i> {{ 'disabled'|trans }}</span> |
| 69 | + {{ 'including'|trans }} <span class="badge bg-danger"><i class="fas fa-ban"></i> {{ 'disabled'|trans }}</span> |
70 | 70 | {% endif %}
|
71 | 71 | </div>
|
72 | 72 |
|
73 | 73 | {% if not app.user.userclass.access %}
|
74 | 74 | <div class="alert alert-warning">
|
75 | 75 | {{ 'Your user class:'|trans }}
|
76 |
| - <a class="badge badge-primary" href="{{ path('userclass_show', {id: app.user.userClass.id}) }}"> |
| 76 | + <a class="badge bg-primary" href="{{ path('userclass_show', {id: app.user.userClass.id}) }}"> |
77 | 77 | {{ app.user.userClass.name }}
|
78 | 78 | </a>
|
79 | 79 | {{ 'cannot access sharable'|trans }}.
|
|
128 | 128 | {{ contact_method.render(sharable.interestedMethod) }}
|
129 | 129 |
|
130 | 130 | {% if sharable.interesteds|length > 0 %}
|
131 |
| - <span title="{{ sharable.interesteds|length }} user(s) are insterested in this sharable" class="badge badge-warning"> |
| 131 | + <span title="{{ sharable.interesteds|length }} user(s) are insterested in this sharable" class="badge bg-warning"> |
132 | 132 | {{ sharable.interesteds|length }}
|
133 | 133 | <i class="fas fa-question-circle"></i>
|
134 | 134 | </span>
|
135 | 135 | {% endif %}
|
136 | 136 | {% if sharable.validations|length > 0 %}
|
137 |
| - <span title="{{ sharable.validations|length }} user(s) have validated this sharable" class="badge badge-success"> |
| 137 | + <span title="{{ sharable.validations|length }} user(s) have validated this sharable" class="badge bg-success"> |
138 | 138 | {{ sharable.validations|length }}
|
139 | 139 | <i class="fas fa-check-circle"></i></span>
|
140 | 140 | {% endif %}
|
141 | 141 | {% if sharable.questions|length > 0 %}
|
142 |
| - <span class="badge badge-light"> |
| 142 | + <span class="badge bg-light"> |
143 | 143 | {{ sharable.questions|length }}
|
144 | 144 | <i class="fas fa-comment"></i>
|
145 | 145 | </span>
|
146 | 146 | {% endif %}
|
147 | 147 | {% if sharable.visibleBy %}
|
148 |
| - <span title="accessible from {{ sharable.visibleBy.name }}" class="badge badge-primary"> |
| 148 | + <span title="accessible from {{ sharable.visibleBy.name }}" class="badge bg-primary"> |
149 | 149 | ≥ {{ sharable.visibleBy.name }}
|
150 | 150 | </span>
|
151 | 151 | {% endif %}
|
152 | 152 | {% if sharable.disabled or not sharable.isAccessible %}
|
153 |
| - <span class="badge badge-danger" title="This sharable is disabled"><i class="fas fa-ban"></i></span> |
| 153 | + <span class="badge bg-danger" title="This sharable is disabled"><i class="fas fa-ban"></i></span> |
154 | 154 | {% endif %}
|
155 | 155 | {% if sharable.reports|length > 0 and is_granted('view_reports', sharable) %}
|
156 | 156 | <span
|
|
225 | 225 | {{ sharable.description }}
|
226 | 226 | </span>
|
227 | 227 | {% for tag in sharable.tags %}
|
228 |
| - <a class="badge badge-pill badge-secondary" href="{{ path('sharable', {'tags[]': tag.id}) }}">{{ tag.name }}</a> |
| 228 | + <a class="badge rounded-pill bg-secondary" href="{{ path('sharable', {'tags[]': tag.id}) }}">{{ tag.name }}</a> |
229 | 229 | {% endfor %}
|
230 | 230 | </br>
|
231 | 231 | {{ 'managed by'|trans|capitalize }}
|
|
0 commit comments