Overview
Comment: | Set the page title for the stories list page |
---|---|
Timelines: | family | ancestors | descendants | both | feature/pretty |
Files: | files | file ages | folders |
SHA1: |
21cebdfb51717d48ab6eef085a4c5385 |
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 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="" /> |