simple http frontend
This commit is contained in:
parent
1c035761a8
commit
8ece426999
4 changed files with 108 additions and 0 deletions
21
weboob/frontends/http/templates/messages.mako
Normal file
21
weboob/frontends/http/templates/messages.mako
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
|
||||
<%inherit file="base.mako"/>
|
||||
|
||||
<%def name="title()" filter="trim">
|
||||
weboob / messages
|
||||
</%def>
|
||||
|
||||
<%def name="body()">
|
||||
% for (name, backend) in backends:
|
||||
<h1>${name}</h1>
|
||||
<ul>
|
||||
% for message in backend.iter_messages():
|
||||
<li>
|
||||
${message.get_title()}
|
||||
<p>${message.get_content()[:80]}</p>
|
||||
</li>
|
||||
% endfor
|
||||
</ul>
|
||||
% endfor
|
||||
</%def>
|
||||
Loading…
Add table
Add a link
Reference in a new issue