Skip to content

Commit

Permalink
format text of no school/no schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Sep 12, 2015
1 parent 9a97d2a commit fa1f741
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions intranet/static/css/schedule.widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,9 @@

.schedule-admin a.button {
margin-top: 1px;
}

.bellschedule-blank-message {
margin: 5px;
text-align: center;
}
16 changes: 10 additions & 6 deletions intranet/templates/schedule/widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ <h2>
</div-->
</div>
<div class="widget-content schedule" data-endpoint="{% url 'schedule_widget' %}" data-prev-date="{{ sched_ctx.date_yesterday }}" data-next-date="{{ sched_ctx.date_tomorrow }}"{% if sched_ctx.dayobj %} data-daytype-name="{{ sched_ctx.dayobj.day_type.name }}"{% endif %}>
<h2 class="day-name {{ sched_ctx.dayobj.day_type.class_name }}">{{ sched_ctx.dayobj.day_type.name }}</h2>
{% if sched_ctx.dayobj.day_type.name %}
<h2 class="day-name {{ sched_ctx.dayobj.day_type.class_name }}">{{ sched_ctx.dayobj.day_type.name }}</h2>
{% endif %}
{% if sched_ctx.dayobj %}
<table class="bellschedule-table">
{% for block in sched_ctx.blocks %}
Expand All @@ -26,11 +28,13 @@ <h2 class="day-name {{ sched_ctx.dayobj.day_type.class_name }}">{{ sched_ctx.day
{% endfor %}
</table>
{% else %}
{% if sched_ctx.is_weekday %}
No schedule available
{% else %}
No school
{% endif %}
<div class="bellschedule-blank-message">
{% if sched_ctx.is_weekday %}
No schedule available
{% else %}
No school
{% endif %}
</div>
{% endif %}


Expand Down

0 comments on commit fa1f741

Please sign in to comment.