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

« back to all changes in this revision

Viewing changes to ui/themes/funkatron/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:
57
57
        font-size: 13px;
58
58
      }
59
59
 
 
60
      .title {
 
61
        font-size: large;
 
62
        font-weight: bold;
 
63
      }
 
64
 
60
65
      .inlinenick {
61
66
        text-decoration: none;
62
67
        font-weight: bold;       
111
116
 
112
117
    <script src="jquery.js"></script>
113
118
    <script>
 
119
      // XXX: this is a twitter-specific hack currently...needs updating for other protocols
 
120
      function addUserHeader(data) {
 
121
        html = '<div id="'+ data.gId +'" class="message '+ data.username + data.protocol + ' ' + data.aId + data.bgcolor +'" title="'+ data.sender_nick +'">' +
 
122
                        '<center> \
 
123
                        <p class="content"> \
 
124
                        <span class="title">'+ data.sender +'</span><br /> \
 
125
                        <span class="text">'+ data.sender_followers_count +' followers</span><br /> \
 
126
                        <span class="text">'+ data.sender_location +'</span><br /> \
 
127
                        <span class="text"><a href="'+ data.external_profile_url  +'">'+ data.external_profile_url +'</a></span> \
 
128
                        </p> \
 
129
                        </center> \
 
130
                </div>'
 
131
                $(".header").html(html);
 
132
      }
 
133
 
114
134
      function addMessages(messages, msg) {
115
135
        clearMessages()
116
136
        $.each(messages, function() {addMessage(this, msg)});
182
202
    </script>
183
203
  </head>
184
204
  <body>
 
205
    <div class="header">
 
206
    </div>
185
207
    <div class="messages">
186
 
      <h1>Welcome to Gwibber!</h1>
187
208
    </div>
188
209
  </body>
189
210
</html>