Skip to content

Commit 530443c

Browse files
committed
Made links from agenda room names to floorplans conditional on the room having a floor plan set.
- Legacy-Id: 17435
1 parent 53de504 commit 530443c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

ietf/templates/meeting/agenda.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,10 @@ <h2>
203203
{% if item.timeslot.show_location and item.timeslot.get_location %}
204204
{% if schedule.meeting.number|add:"0" < 96 %}
205205
<a href="https://tools.ietf.org/agenda/{{schedule.meeting.number}}/venue/?room={{ item.timeslot.get_location|xslugify }}">{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}</a>
206-
{% else %}
206+
{% elif item.timeslot.location.floorplan %}
207207
<a href="{% url 'ietf.meeting.views.floor_plan' num=schedule.meeting.number %}?room={{ item.timeslot.get_location|xslugify }}">{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}</a>
208+
{% else %}
209+
{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}
208210
{% endif %}
209211
{% with item.timeslot.location.floorplan as floor %}
210212
{% if item.timeslot.location.floorplan %}
@@ -263,8 +265,10 @@ <h2>
263265
{% if item.timeslot.show_location and item.timeslot.get_location %}
264266
{% if schedule.meeting.number|add:"0" < 96 %}
265267
<a href="https://tools.ietf.org/agenda/{{schedule.meeting.number}}/venue/?room={{ item.timeslot.get_location|xslugify }}">{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}</a>
266-
{% else %}
268+
{% elif item.timeslot.location.floorplan %}
267269
<a href="{% url 'ietf.meeting.views.floor_plan' num=schedule.meeting.number %}?room={{ item.timeslot.get_location|xslugify }}">{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}</a>
270+
{% else %}
271+
{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}
268272
{% endif %}
269273
{% endif %}
270274
</td>
@@ -282,8 +286,10 @@ <h2>
282286
{% if item.timeslot.show_location and item.timeslot.get_location %}
283287
{% if schedule.meeting.number|add:"0" < 96 %}
284288
<a href="https://tools.ietf.org/agenda/{{schedule.meeting.number}}/venue/?room={{ item.timeslot.get_location|xslugify }}">{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}</a>
285-
{% else %}
289+
{% elif item.timeslot.location.floorplan %}
286290
<a href="{% url 'ietf.meeting.views.floor_plan' num=schedule.meeting.number %}?room={{ item.timeslot.get_location|xslugify }}">{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}</a>
291+
{% else %}
292+
{{item.timeslot.get_location|split:"/"|join:"/<wbr>"}}
287293
{% endif %}
288294
{% endif %}
289295
</td>

0 commit comments

Comments
 (0)