MobileBlur

Check-in [7ff27f901d]
Login
Overview
SHA1:7ff27f901d4929cba906a393246d057749263737
Date: 2011-12-02 03:31:07
User: spiffy
Comment:Made feed and story list divs clickable instead of just their text
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-12-03
12:54
[bddb3e05ed] Leaf: Minor changes to the layout (user: spiffy, tags: trunk, v0.5)
2011-12-02
03:31
[7ff27f901d] Made feed and story list divs clickable instead of just their text (user: spiffy, tags: trunk)
2011-11-30
04:12
[517f4aa073] Made the app substantially prettier (user: spiffy, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified applications/mobileblur/static/css/base.css from [c4d6d0ed8b] to [535095eebd].

515
516
517
518
519
520
521




522
523
524
525
526
527
528
...
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
...
583
584
585
586
587
588
589
590
591
592
593
594
  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;
}
................................................................................
    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;
................................................................................

footer {
    background-color: #95392E;
    padding: 1%;
    border-top: 1px solid #95392E;
    color: white;
}
footer > a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}







>
>
>
>







 







|








|
<



<
>
>

>
>


>
>
>
>
>
|


|


>
>
|
>
|
>







 







|




515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
...
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
...
598
599
600
601
602
603
604
605
606
607
608
609
  h2, h3{ page-break-after: avoid; }
}

body {
/*    background-color: #f2c84b;*/
    color: #493F3E
}

a, a:hover {
    text-decoration: none;
}

header {
    background-color: #95392E;
    padding: 1%;
    border-bottom: 1px solid #95392E;
    color: white;
}
................................................................................
    font-weight: bold;
}

#story > header > a {
    color: white;
}

header h2 {
/*    border-top: 1px solid white;*/
    color: white;
}

#story-list {
/*    background-color: #f2c84b;*/
}

#story-list a, .feed {

    font-weight: bold;
    margin-top: 0;
}


.story-date {
    font-size: .75em;
    color: #493F3E;
    font-weight: normal;
}

.feed {
    color: white;
    text-decoration: none;
}

.read {
    color: #D99B48;
}
.unread, .feed .feed-title {
    color: #C57E3C;
}
.ng, .nt, .ps {
    color: #493F3E;
}

#story-list .story, .feed {
    text-decoration: none;
    padding: .5%;
    border-top: 1px solid #95392E;
    margin-top: .33%;
}

span.ps, span.nt, span.ng {
    padding: .05em;
................................................................................

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 [de8ac0789f] to [2d4e4818bd].

1
2
3

4
5
6
7
8
9

10
{{extend 'layout.html'}}

{{ for feed in feeds.itervalues(): }}

    <div class="feed">
        {{ if threshold == -1 and feed["ng"] > 0: }} <span class='ng'>{{= feed["ng"] }}</span> {{ pass }}
        {{ if threshold <= 0 and feed["nt"] > 0: }} <span class='nt'>{{= feed["nt"] }}</span> {{ pass }}
        {{if feed["ps"] > 0: }}<span class='ps'>{{= feed["ps"] }}</span> {{ pass }}
        <a href="{{= URL(c="feeds", f="view", args=[feed["id"]]) }}">{{= feed["feed_title"] }}</a><br />
    </div>

{{ pass }}



>
|
|
|
|
|
|
>

1
2
3
4
5
6
7
8
9
10
11
12
{{extend 'layout.html'}}

{{ for feed in feeds.itervalues(): }}
    <a href="{{= URL(c="feeds", f="view", args=[feed["id"]]) }}">
        <div class="feed">
            {{ if threshold == -1 and feed["ng"] > 0: }} <span class='ng'>{{= feed["ng"] }}</span> {{ pass }}
            {{ if threshold <= 0 and feed["nt"] > 0: }} <span class='nt'>{{= feed["nt"] }}</span> {{ pass }}
            {{if feed["ps"] > 0: }}<span class='ps'>{{= feed["ps"] }}</span> {{ pass }}
            <span class="feed-title">{{= feed["feed_title"] }}</span>
        </div>
    </a>
{{ pass }}

Modified applications/mobileblur/views/feeds/view.html from [6526673ca3] to [a70d7ea9da].

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

{{ block header_bonus }}
    <h2>{{= feed["feed_title"] }}</h2>
    <a href="{{= URL("mark_read", args=[feed["id"]]) }}" class="button">Mark feed as read</a>
{{ end }}

<section id="story-list">
{{
import time 
s = time.time()
}}
    {{ 
        for story in stories: 
        if sum([v for k,v in story["intelligence"].iteritems()]) < threshold:
            continue
    }}

        {{ print story["read_status"] }}
        <div class="story">
            <a href="{{= URL(c="stories", f="view", vars=dict(story=story["id"], feed_id=feed["id"])) }}" class="{{= "unread" if story["read_status"] == 0 else "read" }}">
                {{= story["story_title"] }}
            </a>
            <p>{{= story["story_date"] }}</p>
        </div>

    {{ pass }}
{{ print time.time() - s }}
</section>







<
<
<
<






|
|
|
<
<
|
|
>

<

2
3
4
5
6
7
8




9
10
11
12
13
14
15
16
17


18
19
20
21

22

{{ block header_bonus }}
    <h2>{{= feed["feed_title"] }}</h2>
    <a href="{{= URL("mark_read", args=[feed["id"]]) }}" class="button">Mark feed as read</a>
{{ end }}

<section id="story-list">




    {{ 
        for story in stories: 
        if sum([v for k,v in story["intelligence"].iteritems()]) < threshold:
            continue
    }}

        <a href="{{= URL(c="stories", f="view", vars=dict(story=story["id"], feed_id=feed["id"])) }}" }}">
            <div class="story">
                <p class="story-title {{= "unread" if story["read_status"] == 0 else "read" }}">{{= story["story_title"] }}</p>


                <p class="story-date">{{= story["story_date"] }}</p>
            </div>
        </a>
    {{ pass }}

</section>