Skip to content

Commit

Permalink
Improve schedule page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jul 2, 2018
1 parent d334d13 commit c34cdc8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion actdocs/templates/core/talk/schedule
Expand Up @@ -36,7 +36,6 @@
<form method="POST" action="[% make_uri('updatemytalks') %]" />
[% END %]
[% d = day %]
<h2>[% date_format(d.replace('$', ' 00:00:00' ), 'date_full') | ucfirst %]</h2>
<table class="table table-striped">
<thead class="thead-light">
<tr>
Expand Down
14 changes: 14 additions & 0 deletions actdocs/templates/talk/schedule
@@ -0,0 +1,14 @@
[% day = global.request.args.day;
UNLESS day AND table.$day.size; # no valid day specified
USE date; # default to today
day = date.format(date.now, "%F");
UNLESS table.$day.size; # if not valid default to first day
day = global.config.talks_schedule_default || table.keys.sort.0;
END;
END -%]
[% WRAPPER ui title = loc('Schedule') _ ': ' _ date_format(day.replace('$', ' 00:00:00' ), 'date_full') %]

<!-- The schedule table -->
[% PROCESS core/talk/schedule %]

[% END %]

0 comments on commit c34cdc8

Please sign in to comment.