Skip to content

Commit 65f0fed

Browse files
committed
checkpointing some css/html noodling before tearing into models
- Legacy-Id: 9587
1 parent b0ce25a commit 65f0fed

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

ietf/meeting/helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def build_all_agenda_slices(meeting):
6666
time_slices = []
6767
date_slices = {}
6868

69-
for ts in meeting.timeslot_set.exclude(type__in=['reg','break']).order_by('time','name'):
69+
#for ts in meeting.timeslot_set.exclude(type__in=['reg','break']).order_by('time','name'):
70+
#for ts in meeting.timeslot_set.exclude(type__in=['reg','break','lead','offagenda','other']).order_by('time','name'):
71+
for ts in meeting.timeslot_set.filter(type__in=['session',]).order_by('time','name'):
7072
#for ts in meeting.timeslot_set.exclude(type__in=['reg','break','other']).order_by('time','name'):
7173
#for ts in meeting.timeslot_set.order_by('time','name'):
7274
#for ts in meeting.timeslot_set.filter(type='offagenda').order_by('time','name'):

ietf/meeting/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,9 @@ def edit_agenda(request, num=None, owner=None, name=None):
259259
meeting_base_url = request.build_absolute_uri(meeting.base_url())
260260
site_base_url = request.build_absolute_uri('/')[:-1] # skip the trailing slash
261261

262-
rooms = meeting.room_set.order_by("capacity")
263-
rooms = rooms.all()
262+
#rooms = meeting.room_set.order_by("capacity")
263+
#rooms = rooms.all()
264+
rooms = meeting.room_set.filter(timeslot__type__slug='session').distinct().order_by("capacity")
264265
saveas = SaveAsForm()
265266
saveasurl=reverse(edit_agenda,
266267
args=[meeting.number, schedule.owner_email(), schedule.name])

ietf/templates/meeting/landscape_edit.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@
110110
<p>Please save this agenda to your account first.</p>
111111
</div>
112112

113+
<div class="content"> {% comment %} For preserving styling across the facelift {% endcomment %}
114+
113115
<div class="wrapper custom_text_stuff">
114116

115117

@@ -206,10 +208,11 @@
206208
</div>
207209

208210

209-
<table id="meetings" class="ietf-navbar" style="width:100%">
211+
{%comment%}<table id="meetings" class="ietf-navbar" style="width:100%">{%endcomment%}
212+
<table id="meetings" class="ietf-navbar" >
210213
<tr>
211214
<th class="schedule_title"><div id="pageloaded" style="display:none">loaded</div><div id="spinner"><!-- spinney goes here --></div></th>
212-
<th></th>
215+
{% comment %}<th></th>{% endcomment %}
213216
{% for day in time_slices %}
214217
<th colspan="{{date_slices|colWidth:day}}" id="{{day|date:'Y-m-d'}}-btn" class=" day_{{day}} agenda_slot_title agenda_slot_unavailable">
215218
<div id="close_{{day|date:'Y-m-d'}}" class="close top_left very_small close_day">x</div>
@@ -226,7 +229,7 @@
226229

227230
<tr>
228231
<th class="th_column"><button id="show_all_button" class="styled_button">show all</button></th>
229-
<th><!-- resources --></th>
232+
{% comment %}<th><!-- resources --></th>{% endcomment %}
230233
{% for day in time_slices %}
231234
{% for slot in date_slices|lookup:day %}
232235
<th class="day_{{day}}-{{slot.0|date:'Hi'}} day_{{day}} room_title ">{{slot.0|date:'Hi'}}-{{slot.1|date:'Hi'}} </th>
@@ -246,6 +249,7 @@
246249
<div class="close very_small close_room top_left small_button" id="close_{{r.name|to_acceptable_id}}">X</div>
247250
<div class="right room_name">{{r.name}} <span class="capacity">({{r.capacity}})</span></div>
248251
</th>
252+
{% comment 'The secretariat is not using these features' %}
249253
<th class="room_features">
250254
<div class="resource_list">
251255
{% for resource in r.resources.all %}
@@ -255,6 +259,7 @@
255259
{% endfor %}
256260
</div>
257261
</th>
262+
{% endcomment %}
258263
{% for day in time_slices %}
259264
{% for slot in date_slices|lookup:day %}
260265
<td id="{{r.dom_id}}_{{day}}_{{slot.0|date:'Hi'}}" class="day_{{day}} agenda-column-{{day}}-{{slot.0|date:'Hi'}} agenda_slot agenda_slot_unavailable" capacity="{{r.capacity}}" ></td>
@@ -372,4 +377,6 @@
372377

373378
</div>
374379

380+
</div> {% comment %} End of .content div {% endcomment %}
381+
375382
{% endblock %}

static/css/agenda/agenda.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
.content table { border-collapse: separate; border-spacing: 2px; }
2020

21+
.container-fluid {padding-right: 0; padding-left:0;}
22+
2123
.ietf-navbar { background-color: #edf5ff; padding:0; border: 1px solid #89d; margin-top:4px; width: 130px; }
2224
.ietf-navbar ul { padding: 0; margin: 0; }
2325
.ietf-navbar ul li { list-style: none; padding: 0; margin: 0; font-size: 93%; padding: 2px 0px 2px 0px; }

0 commit comments

Comments
 (0)