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

« back to all changes in this revision

Viewing changes to ui/themes/shine/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:
86
86
    </style>
87
87
    <script src="jquery.js"></script>
88
88
    <script>
 
89
      // XXX: this is a twitter-specific hack currently...needs updating for other protocols
 
90
      function addUserHeader(data) {
 
91
        html = '<div id="'+ data.gId +'" class="message '+ data.username + data.protocol + ' ' + data.aId + data.bgcolor +'" title="'+ data.sender_nick +'">' +
 
92
            '<div class="heading '+ data.aId + data.bgcolor +'"> \
 
93
                        <center> \
 
94
                        <p class="content"> \
 
95
                        <span class="title">'+ data.sender +'</span><br /> \
 
96
                        <span class="text">'+ data.sender_followers_count +' followers</span><br /> \
 
97
                        <span class="text">'+ data.sender_location +'</span><br /> \
 
98
                        <span class="time"><a href="'+ data.external_profile_url +'">'+ data.external_profile_url +'</a></span> \
 
99
                        </p> \
 
100
                        </center> \
 
101
                    </div> \
 
102
                </div>'
 
103
                $(".header").html(html);
 
104
      }
 
105
 
89
106
      function addMessages(messages, msg) {
90
107
        clearMessages()
91
108
        $.each(messages, function() {addMessage(this, msg)});
161
178
    </script>
162
179
  </head>
163
180
  <body>
 
181
    <div class="header">
 
182
    </div>
164
183
    <div class="messages">
165
184
    </div>
166
185
  </body>