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 Side-by-Side Diffs Ignore Whitespace Patch

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

    16     16           s = time.time()
    17     17           feeds = newsblur.feeds(flat=True)["feeds"]
    18     18           print time.time() - s
    19     19   
    20     20           s = time.time()
    21     21           feed = [feed for feed in feeds.itervalues() if feed["id"]==int(request.args[0])][0]
    22     22           print time.time() - s
           23  +
           24  +    response.title = feed["feed_title"]
    23     25   
    24     26       return dict(stories=stories, feed=feed)
    25     27   
    26     28   
    27     29   def mark_read():
    28     30       if len(request.args) > 0:
    29     31           newsblur.mark_feed_as_read(request.args[0])
    30     32       redirect(URL("default", "index"))

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

     6      6       <!-- www.phpied.com/conditional-comments-block-downloads/ -->
     7      7       <!--[if IE]><![endif]-->    
     8      8       <!-- Always force latest IE rendering engine 
     9      9   	 (even in intranet) & Chrome Frame 
    10     10   	 Remove this if you use the .htaccess -->
    11     11       <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    12     12       
    13         -    <title>{{ block title }}{{=response.title or request.application}}{{ end }}</title>
           13  +    <title>{{ block title }}{{= " - ".join([response.title, request.application]) }}{{ end }}</title>
    14     14       
    15     15       <!-- http://dev.w3.org/html5/markup/meta.name.html -->
    16     16       <meta name="application-name" content="{{=request.application}}" />	
    17     17       
    18     18       <!-- Speaking of Google, don't forget to set your site up: 
    19     19   	 http://google.com/webmasters -->
    20     20       <meta name="google-site-verification" content="" />