Skip to content

Commit

Permalink
made it look better
Browse files Browse the repository at this point in the history
  • Loading branch information
alyxbb committed May 27, 2024
1 parent 8ee7b56 commit 21450a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
2 changes: 1 addition & 1 deletion utils/date.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
//

// StartHour is the hour of the day (local time) at which the scheduled day begins.
var StartHour = 16
var StartHour = 6

// StartOfDayOn gets the schedule start-of-day on a given date.
// This is in terms of StartHour.
Expand Down
31 changes: 8 additions & 23 deletions views/schedule_week.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,6 @@
<h1 class="display-4 mobile-hide">Schedule <a class="fa fa-key schedule-key-icon" href="#key"></a></h1>
<h2 class="text-muted mobile-hide">{{week (index .Schedule.Dates 0)}}</h2>
</div>
<div class="col-12">
<div class="row justify-content-center">
{{with $weekName := week (index .Schedule.Dates 0)}}
{{if eq $weekName "this week"}}
<button class="btn btn-secondary mobile-only inline" id="jumpToNow" type="button" onclick="jumpToNow()">Jump to the current show</button>
{{end}}
{{end}}
<h1 class="mobile-only inline"><a class="fa fa-key schedule-key-icon" data-toggle="collapse" data-target=".schedule-keys" aria-expanded="false" aria-controls="schedule-keys"></a></h1>
</div>
<div class="schedule-keys collapse">
<div class="key-row">
{{ range .Subtypes }}
<span class="schedule-block-{{.Class}}">{{.Name}}</span>
{{end}}
</div>
</div>
</div>
</div>

<nav aria-label="Related Schedules" class="row nav justify-content-between">
Expand All @@ -59,8 +42,8 @@
</div>

<!-- schedule body -->
<div class="container-fluid bg-off-white container-padded">
<div class="container sched-table">
<div class="container-fluid bg-off-white container-padded mobile-hide">
<div class="container">
{{with .Schedule}}
{{if .Table}}
<div class="tables-container table">
Expand Down Expand Up @@ -124,15 +107,17 @@
</div>
</div>
</div>
</div>






<div class="container sched-list">
<div class="bg-off-white mobile-only">
{{with .Schedule}}
{{if .List}}
<div class="container-fluid container">
<ul class="nav nav-tabs" id="schedule-tab" role="tablist">
{{range .List}}
<li class="nav-item" role="presentation">
Expand All @@ -146,18 +131,19 @@
</li>
{{end}}
</ul>
</div>
<div class="tab-content mt-2" id="schedule-tabContent">
{{range .List}}
{{if .Current}}
<div class="tab-pane show active" id="{{.Day.Weekday}}" role="tabpanel" aria-labelledby="{{.Day.Weekday}}-tab">
{{else}}
<div class="tab-pane" id="{{.Day.Weekday}}" role="tabpanel" aria-labelledby="{{.Day.Weekday}}-tab">
{{end}}
<ul>
<ul class="p-0">
{{range .Shows}}
<li class="schedule-card">
<img src="https://ury.org.uk{{.ShowArtURL}}" width="128" height="128">
<div class="card-details">
<div class="card-details pb-0">
<h3>
{{if .PageURL}}
<a href="{{.PageURL}}">{{.Name}}</a>
Expand All @@ -182,7 +168,6 @@
</div>
{{end}}
{{end}}
</div>
</div>
{{end}}
{{end}}
Expand Down

0 comments on commit 21450a2

Please sign in to comment.