~seif/gwibber/zg

« back to all changes in this revision

Viewing changes to ui/templates/targetbar.mako

  • Committer: Ryan Paul
  • Date: 2010-04-10 05:19:32 UTC
  • Revision ID: segphault@arstechnica.com-20100410051932-1ew2l94b8hoztu6f
Make the frontend use streams and accounts from SQLite

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
<%def name="user(target)" buffered="True">
21
21
  <div class="account" style="${accountcss(target["account_data"])}">
22
 
    <img style="padding:0px; margin:0px;" src="${breakdance(target["protocol"], 16)}" />
 
22
    <img style="padding:0px; margin:0px;" src="${breakdance(target["service"], 16)}" />
23
23
    ${target["account_data"]["username"]}
24
24
    <img class="closebutton" src="${resources.icon('gtk-close')}" />
25
25
  </div>
93
93
          % for account in accounts:
94
94
            <div class="account"
95
95
                 bgcolor="${account['color']}"
96
 
                 id="${account['_id']}"
 
96
                 id="${account['id']}"
97
97
                 style="${accountcss(account)}"
98
98
                 enabled="${str(account['send_enabled']).lower()}">
99
99
              % if account["send_enabled"]:
100
 
                <img class="icon" title="${account['protocol']} (${account['username']})" src="${breakdance(account['protocol'])}" />
 
100
                <img class="icon" title="${account['service']} (${account['username']})" src="${breakdance(account['service'])}" />
101
101
              % else:
102
 
                <img class="icon" title="${account['protocol']} (${account['username']}) - Disabled" src="${breakdance(account['protocol'])}" />
 
102
                <img class="icon" title="${account['service']} (${account['username']}) - Disabled" src="${breakdance(account['service'])}" />
103
103
              % endif
104
104
            </div>
105
105
          % endfor