Skip to content

Commit

Permalink
Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Subiron committed Dec 2, 2019
1 parent a85fd1d commit 1d3b11d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def get_timeperiod_html(self, tp):
return ''

# Build a definition list ...
content = '''<dl>'''
content = '''<dl class="dl-horizontal">'''
for dr in sorted(tp.dateranges, key=operator.methodcaller("get_start_and_end_time")):
(dr_start, dr_end) = dr.get_start_and_end_time()
dr_start = time.strftime("%d %b %Y", time.localtime(dr_start))
Expand All @@ -783,7 +783,7 @@ def get_timeperiod_html(self, tp):

# Build a definition list ...
if tp.exclude:
content += '''<dl> Excluded: '''
content += '''<dl class="dl-horizontal"> Excluded: '''
for excl in tp.exclude:
content += self.get_timeperiod_html(excl)
content += '''</dl>'''
Expand Down

0 comments on commit 1d3b11d

Please sign in to comment.