MobileBlur

Check-in [21cebdfb51]
Login

Check-in [21cebdfb51]

Overview
Comment:Set the page title for the stories list page
Timelines: family | ancestors | descendants | both | feature/pretty
Files: files | file ages | folders
SHA1: 21cebdfb51717d48ab6eef085a4c538597da46f7
User & Date: spiffy on 2011-11-22 22:50:39
Other Links: branch diff | manifest | tags
References
2011-11-22
23:17 Ticket [c925c221ac] Add feed/story title to page title status still Open with 3 other changes artifact: 931c11f9f8 user: spiffytech
Context
2011-11-22
23:53
Moved the 'mark feed read' button back below the feed title Leaf check-in: 3881a5300d user: spiffy tags: feature/pretty
22:50
Set the page title for the stories list page check-in: 21cebdfb51 user: spiffy tags: feature/pretty
13:36
Prettied up the feed list page check-in: 1d6bdd2f2b user: spiffy tags: feature/pretty
Changes

Modified applications/mobileblur/controllers/feeds.py from [1863aef141] to [30c965b149].

16
17
18
19
20
21
22


23
24
25
26
27
28
29
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31







+
+







        s = time.time()
        feeds = newsblur.feeds(flat=True)["feeds"]
        print time.time() - s

        s = time.time()
        feed = [feed for feed in feeds.itervalues() if feed["id"]==int(request.args[0])][0]
        print time.time() - s

    response.title = feed["feed_title"]

    return dict(stories=stories, feed=feed)


def mark_read():
    if len(request.args) > 0:
        newsblur.mark_feed_as_read(request.args[0])

Modified applications/mobileblur/views/layout.html from [216939df9a] to [431c1d6f9e].

1
2
3
4
5
6
7
8
9
10
11
12
13

14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12

13
14
15
16
17
18
19
20












-
+







<!DOCTYPE html>
<html lang="{{=T.accepted_language or 'en'}}" class="no-js"><!-- no-js need it for modernzr -->
  <head>
    
    <meta charset="utf-8" />	  	
    <!-- www.phpied.com/conditional-comments-block-downloads/ -->
    <!--[if IE]><![endif]-->    
    <!-- Always force latest IE rendering engine 
	 (even in intranet) & Chrome Frame 
	 Remove this if you use the .htaccess -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <title>{{ block title }}{{=response.title or request.application}}{{ end }}</title>
    <title>{{ block title }}{{= " - ".join([response.title, request.application]) }}{{ end }}</title>
    
    <!-- http://dev.w3.org/html5/markup/meta.name.html -->
    <meta name="application-name" content="{{=request.application}}" />	
    
    <!-- Speaking of Google, don't forget to set your site up: 
	 http://google.com/webmasters -->
    <meta name="google-site-verification" content="" />