MobileBlur

Check-in [21cebdfb51]
Login
Overview
SHA1:21cebdfb51717d48ab6eef085a4c538597da46f7
Date: 2011-11-22 22:50:39
User: spiffy
Comment:Set the page title for the stories list page
Timelines: family | ancestors | descendants | both | feature/pretty
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-11-22
23:53
[3881a5300d] Leaf: Moved the 'mark feed read' button back below the feed title (user: spiffy, tags: feature/pretty)
22:50
[21cebdfb51] Set the page title for the stories list page (user: spiffy, tags: feature/pretty)
13:36
[1d6bdd2f2b] Prettied up the feed list page (user: spiffy, tags: feature/pretty)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

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

16
17
18
19
20
21
22


23
24
25
26
27
28
29
30
        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



    return dict(stories=stories, feed=feed)


def mark_read():
    if len(request.args) > 0:
        newsblur.mark_feed_as_read(request.args[0])
    redirect(URL("default", "index"))







>
>








16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
        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])
    redirect(URL("default", "index"))

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

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    <!-- 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>
    
    <!-- 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="" />







|







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    <!-- 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 }}{{= " - ".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="" />