~seif/gwibber/zg

« back to all changes in this revision

Viewing changes to ui/templates/base.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:
5
5
</%def>
6
6
 
7
7
<%def name="profile_url(data)" filter="trim">
8
 
  % if "user_messages" in services[data["protocol"]]["features"]:
 
8
  % if "user_messages" in services[data["service"]]["features"]:
9
9
    gwibber:/user?acct=${data["account"]}&amp;name=${data["sender"]["nick"]}
10
10
  % else:
11
11
    ${data['sender']['url']}
71
71
 
72
72
<%def name="buttons(data)">
73
73
  <div class="buttonitem">
74
 
    <a href="gwibber:/menu?msg=${data['_id']}"><img width="16px" src="${resources.icon('system-run')}" /></a> 
 
74
    <a href="gwibber:/menu?msg=${data['id']}"><img width="16px" src="${resources.icon('system-run')}" /></a> 
75
75
  </div>
76
76
  <div class="buttonitem">
77
 
    <a href="gwibber:/reply?msg=${data['_id']}"><img width="16px" src="${resources.icon('mail-reply-sender')}" /></a>
 
77
    <a href="gwibber:/reply?msg=${data['id']}"><img width="16px" src="${resources.icon('mail-reply-sender')}" /></a>
78
78
  </div>
79
79
</%def>
80
80
 
93
93
</%def>
94
94
  
95
95
<%def name="timestring(data)" filter="trim">
96
 
  <a href="gwibber:/read?msg=${data['_id']}">${data['time_string']}</a>
 
96
  <a href="gwibber:/read?msg=${data['id']}">${data['time_string']}</a>
97
97
  % if data.get("source", 0):
98
98
    <a>${_("from")} ${data["source"]}</a>
99
99
  % endif
116
116
 
117
117
<%def name="sigil(data)">
118
118
  <span class="sigil">
119
 
    <img src="${resources.get_ui_asset('icons/breakdance/16x16/%s.png' % data['protocol'])}" />
 
119
    <img src="${resources.get_ui_asset('icons/breakdance/16x16/%s.png' % data['service'])}" />
120
120
  % if data.get("sigil", 0):
121
121
    <img src="${data['sigil']}" />
122
122
  % endif
147
147
</%def>
148
148
 
149
149
<%def name="messagebox(data)">
150
 
  <div id="${data["_id"]}" style="${self.msgstyle(data)}" class="message ${self.msgclass(data)}">
 
150
  <div id="${data["id"]}" style="${self.msgstyle(data)}" class="message ${self.msgclass(data)}">
151
151
    ${caller.body()}
152
152
  </div>
153
153
</%def>
223
223
      <tr>
224
224
        <td>${a["username"]}</td>
225
225
        <td>
226
 
          <img src="${resources.get_ui_asset('icons/breakdance/16x16/%s.png' % a['protocol'])}" />
227
 
          ${protocols[a["protocol"]]["name"]}
 
226
          <img src="${resources.get_ui_asset('icons/breakdance/16x16/%s.png' % a['service'])}" />
 
227
          ${protocols[a["service"]]["name"]}
228
228
        </td>
229
229
        <td>
230
230
          <a href="gwibber:/account?id=${a['id']}"><img src="${resources.icon('gtk-edit')}" /></a>
272
272
        <div class="toggledupe"><img src="${resources.icon('list-add')}" /></div>
273
273
      </div>
274
274
      <div class="box_content">
275
 
        <code>${e['op']['opname']}</code> failed with <code>${e['type']}</code> on ${e['op']['protocol']} ${e['time_string']}
 
275
        <code>${e['op']['opname']}</code> failed with <code>${e['type']}</code> on ${e['op']['service']} ${e['time_string']}
276
276
        <div class="dupes">
277
277
          <pre style="font-size: small">
278
278
            ${e["traceback"]}