Skip to content

Commit

Permalink
(#12639) make the templates compatible with Jinja 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cboos committed Jan 25, 2017
1 parent 76b61d9 commit e8eb6bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions trac/timeline/templates/jtimeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ <h1>${_("Timeline")}</h1>

<form id="prefs" method="get" action="">
<div>
# set fromdate
# set fromdate_input
<input type="text" id="fromdate" class="trac-datepicker" size="10"
name="from" value="${format_date(fromdate)}" />
# endset
# set daysback
# set daysback_input
<input type="text" size="3" name="daysback" value="${daysback}" />
# endset
# set authors
# set authors_input
<input type="text" size="16" name="authors" value="${authors}" />
# endset
# trans fromdate = fromdate|safe, daysback = daysback|safe, authors = authors|safe
# trans fromdate = fromdate_input|safe, daysback = daysback_input|safe, authors = authors_input|safe
<label>View changes from ${fromdate}</label> <br />
<label>going back ${daysback} days</label><br />
<label>by author ${authors}</label>
Expand Down
5 changes: 3 additions & 2 deletions trac/versioncontrol/templates/jchangeset_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ <h1>
<dd class="files">
# if filestats:
<div class="legend" id="file-legend">
# with f = filestats, added, deleted, edited, copied, moved = (
f.add, f.delete, f.edit, f['copy'], f.move)
# with f = filestats
# set added, deleted, edited, copied, moved = (
f.add, f.delete, f.edit, f['copy'], f.move)
<dl>
# if added:
<dt class="add"></dt><dd>
Expand Down

0 comments on commit e8eb6bc

Please sign in to comment.