~gmb/gwibber/use-dates-for-indexes

« back to all changes in this revision

Viewing changes to ui/themes/default/theme.html

Support showing twitter user's timeline in a new tab. Clicking on @username or
avatars will open a new tab with that user's timeline. The external profile can
then be opened in an external browser by using the link at the top of this
new tab.

TODO: identi.ca/laconi.ca not yet done but support will come in a branch _very_
soon.

Merge from lp:~oldman/gwibber/twitter-user-messages-tab

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
 
118
118
    <script src="jquery.js"></script>
119
119
    <script>
 
120
      // XXX: this is a twitter-specific hack currently...needs updating for other protocols
 
121
      function addUserHeader(data) {
 
122
        html = '<div id="'+ data.gId +'" class="message '+ data.username + data.protocol + ' ' + data.aId + data.bgcolor +'" title="'+ data.sender_nick +'">' +
 
123
                        '<center> \
 
124
                        <p class="content"> \
 
125
                        <span class="title">'+ data.sender +'</span><br /> \
 
126
                        <span class="text">'+ data.sender_followers_count +' followers</span><br /> \
 
127
                        <span class="text">'+ data.sender_location +'</span><br /> \
 
128
                        <span class="text"><a href="'+ data.external_profile_url  +'">'+ data.external_profile_url +'</a></span> \
 
129
                        </p> \
 
130
                        </center> \
 
131
                </div>'
 
132
                $(".header").html(html);
 
133
      }
 
134
 
120
135
      function addMessages(messages, msg) {
121
136
        clearMessages()
122
137
        $.each(messages, function() {addMessage(this, msg)});
123
138
      }
124
 
      
 
139
 
125
140
      function clearMessages() {
126
141
        $(".messages").html("");
127
142
      }
201
216
    </script>
202
217
  </head>
203
218
  <body>
 
219
    <div class="header">
 
220
    </div>
204
221
    <div class="messages">
205
222
    </div>
206
223
  </body>