Comment: | Made the app substantially prettier |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
517f4aa073cf39995af8c701e95bf906 |
User & Date: | spiffy on 2011-11-30 04:12:13 |
Other Links: | manifest | tags |
2011-12-02
| ||
03:31 | Made feed and story list divs clickable instead of just their text check-in: 7ff27f901d user: spiffy tags: trunk | |
2011-11-30
| ||
04:12 | Made the app substantially prettier check-in: 517f4aa073 user: spiffy tags: trunk | |
02:49 | Made the story title in the story view nicely styled. Put the 'mark story read' button inside the header check-in: dea6297b3d user: spiffy tags: develop, v0.4 | |
2011-11-20
| ||
21:41 | Added support for multiple users to use the site simultaneously check-in: 2ac904a27b user: spiffy tags: trunk, v0.2 | |
Modified applications/mobileblur/controllers/default.py from [4edf6967cb] to [cdfea9e32e].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | - + + + + + + + + | Field("password", "password", requires=IS_NOT_EMPTY()) ) if login_form.accepts(request): try: results = newsblur.login(login_form.vars["username"], login_form.vars["password"]) response.cookies["nb_cookie"] = newsblur.cookies["newsblur_sessionid"] response.cookies["nb_cookie"]["path"] = "/" |
Modified applications/mobileblur/controllers/feeds.py from [b47f0eada4] to [30c965b149].
1 2 3 4 5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + - - - + + + + + + + + + + + + + + + + + + + - + | # -*- coding: utf-8 -*- from pprint import pprint import time def view(): print "" s = time.time() |
Modified applications/mobileblur/controllers/stories.py from [59984e848a] to [fbf9de8ba7].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + + + + + | # -*- coding: utf-8 -*- from pprint import pprint def view(): stories = newsblur.feed(request.vars["feed_id"])["stories"] story = [story for story in stories if story["id"]==request.vars["story"]][0] |
Modified applications/mobileblur/models/0_helpers.py from [c67dbf684a] to [8ed26c507d].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 | - | newsblur = local_import("newsblur") newsblur = newsblur.NewsBlur() threshold = 0 thresholds = ["nt", "ps", "ng"] # indices -1, 0, 1 for negative, neutral, and positive intelligence filters |
Modified applications/mobileblur/modules/newsblur.py from [a487a766ef] to [df40c3d1a1].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | - - | Login as an existing user. If a user has no password set, you cannot just send any old password. Required parameters, username and password, must be of string type. ''' url = nb_url + 'api/login' results = requests.post(url, data={"username": username, "password": password}) |
︙ |
Modified applications/mobileblur/static/css/base.css from [0353986da0] to [c4d6d0ed8b].
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | - + - + | - always indent the first line and add space below paragraphs - bullets and numbers style and indent - form and table padding - code blocks - left and right padding to quoted text - page layout alignment, width and padding (change this for spaces) - column widths (change this to use left_sidebar and right_sidebar) |
︙ | |||
141 142 143 144 145 146 147 | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | - + + | h1,h2,h3,h4,h5,h6 { font-weight: bold; } /* always force a scrollbar in non-IE */ html { overflow-y: scroll; } /* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */ a:hover, a:active { outline: none; } |
︙ | |||
325 326 327 328 329 330 331 | 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | } fieldset { border: 1px solid #dedede; padding: 6px; } legend { font-weight: bold; } input:focus, textarea:focus { background: #fafafa; } |
︙ | |||
531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 | 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you j.mp/textsizeadjust html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */ } @media handheld { body { } } /* * print styles * inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/ */ @media print { * { background: transparent !important; color: #444 !important; text-shadow: none !important; } a, a:visited { color: #444 !important; text-decoration: underline; } a:after { content: " (" attr(href) ")"; } abbr:after { content: " (" attr(title) ")"; } .ir a:after { content: ""; } /* Don't show links for images */ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */ tr, img { page-break-inside: avoid; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3{ page-break-after: avoid; } } body { /* background-color: #f2c84b;*/ color: #493F3E } header { background-color: #95392E; padding: 1%; border-bottom: 1px solid #95392E; color: white; } header > h1 > a { text-decoration: none; color: white; font-weight: bold; } #story > header > a { color: white; } header > a> h2 { /* border-top: 1px solid white;*/ color: white; } #story-list { /* background-color: #f2c84b;*/ } #story-list > .story > a, .feed > a { text-decoration: none; font-weight: bold; margin-top: 0; } #story-list > .story > p { font-size: .75em; } #story-list > .story > .read { color: #D99B48; } #story-list > .story > .unread, .feed > a { color: #C57E3C; } #story-list > .story, .feed { padding: .5%; border-top: 1px solid #95392E; margin-top: .33%; } span.ps, span.nt, span.ng { padding: .05em; border-radius: 5px; } span.ps { background-color: #ABAA7A; } span.nt { background-color: #D99B48; } span.ng { background-color: red; } footer { background-color: #95392E; padding: 1%; border-top: 1px solid #95392E; color: white; } footer > a { text-decoration: none; color: white; font-weight: bold; } |
Modified applications/mobileblur/views/default/index.html from [1ac89d52bc] to [de8ac0789f].
| 1 2 3 4 5 6 7 8 9 10 | - + - - - - + + + + + - - - |
|
Modified applications/mobileblur/views/feeds/view.html from [3646a45d79] to [6526673ca3].
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | - + - - + + + + + + + + + - - - - + + + + + + + + + + + + + + - - + |
|
Modified applications/mobileblur/views/layout.html from [78b7d8a5ef] to [2dc8430c3d].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | - + - + | <!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"> |
︙ | |||
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | + + - - + - - - - - - - - - + - - - - - - - - - - + - - + - - + - - - - - - - - + - - - + + - - - + - - - - - - - - - - - - - + - - - - - - - - - + + - - - - + - | else: width_content='100%' if left_sidebar_enabled: left_sidebar_style = 'style="display: block;"' else: left_sidebar_style = 'style="display: none;"' if right_sidebar_enabled: right_sidebar_style = 'style="display: block;"' else: right_sidebar_style = 'style="display: none;"' style_content = 'style="width: %s"' % width_content }} <!-- <link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css">--> <link rel="stylesheet" href="{{= URL("static", "css/1140.css") }}"> </head> <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!--[if lt IE 7 ]> <body class="ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie7"> <![endif]--> <!--[if IE 8 ]> <body class="ie8"> <![endif]--> <!--[if IE 9 ]> <body class="ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]--> <div class="flash">{{=response.flash or ''}}</div> <!-- notification div --> |
Modified applications/mobileblur/views/stories/view.html from [859afcf521] to [bcfec0acca].
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | - + - - - - + + + + + + + + + + - - |
|
Added routes.py version [b42c3be42e].