equal
deleted
inserted
replaced
83 channel = channel, |
83 channel = channel, |
84 count = count, |
84 count = count, |
85 lines = lines, |
85 lines = lines, |
86 ) |
86 ) |
87 |
87 |
|
88 @preferences.handler(prefs.formatter, prefs.timezone) |
|
89 def channel_link (request, channel, timestamp, formatter, timezone) : |
|
90 """ |
|
91 Display channel_date for specific UTC timestamp |
|
92 """ |
|
93 |
|
94 # convert timestamp to user's timezone |
|
95 timestamp = timestamp.astimezone(timezone) |
|
96 |
|
97 # get latest events |
|
98 lines = channel.source.get_date(timestamp) |
|
99 |
|
100 # lines |
|
101 lines = formatter.format_html(lines) |
|
102 |
|
103 # render |
|
104 return templates.render_to_response("channel_date", |
|
105 req = request, |
|
106 prefs = request.prefs, |
|
107 channel = channel, |
|
108 date = timestamp, |
|
109 lines = lines, |
|
110 ) |
|
111 |
88 @preferences.handler(prefs.timezone) |
112 @preferences.handler(prefs.timezone) |
89 def channel_calendar (request, channel, year, month, timezone) : |
113 def channel_calendar (request, channel, year, month, timezone) : |
90 """ |
114 """ |
91 Display a list of avilable logs for some month |
115 Display a list of avilable logs for some month |
92 """ |
116 """ |