MobileBlur

Check-in [daef6c0f88]
Login
Overview
SHA1:daef6c0f8810ecabada451d831b222c4d99f84da
Date: 2011-11-22 06:01:25
User: spiffy
Comment:Added colors to the intelligencs scores in the feed list
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
13:01
[b6f01ceab0] Set the minimum page scale factor to make it big enough on my tablet (user: spiffy, tags: feature/pretty)
06:01
[daef6c0f88] Added colors to the intelligencs scores in the feed list (user: spiffy, tags: feature/pretty)
05:47
[c5a2ec2308] Story list page is styled much more nicely (user: spiffy, tags: better-story-list, feature/pretty)
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified applications/mobileblur/static/css/base.css from [20785921ab] to [bc70561535].

   547    547   
   548    548   #story-list > .story {
   549    549       padding: .5%;
   550    550       padding-top: 0;
   551    551       border-top: 1px solid black;
   552    552       margin-top: .33%;
   553    553   }
          554  +
          555  +span.ps, span.nt, span.ng {
          556  +    padding: .05em;
          557  +    border-radius: 5px;
          558  +}
          559  +span.ps {
          560  +    background-color: #35C030;
          561  +}
          562  +span.nt {
          563  +    background-color: yellow;
          564  +}
          565  +span.ng {
          566  +    background-color: red;
          567  +}
   554    568   
   555    569   footer {
   556    570       background-color: #cc0000;
   557    571       padding: 1%;
   558    572       border-top: 1px solid black;
   559    573       color: white;
   560    574   }
   561    575   footer > a {
   562    576       text-decoration: none;
   563    577       color: white;
   564    578       font-weight: bold;
   565    579   }

Modified applications/mobileblur/views/default/index.html from [cb0da83eed] to [db0910ac52].

     1      1   {{extend 'layout.html'}}
     2      2   
     3      3   {{ for feed in feeds.itervalues(): }}
     4         -    {{ if threshold == -1 and feed["ng"] > 0: }} <span class='ng'>[ {{= feed["ng"] }} ]</span> {{ pass }}
     5         -    {{ if threshold <= 0 and feed["nt"] > 0: }} <span class='nt'>[ {{= feed["nt"] }} ]</span> {{ pass }}
     6         -    {{if feed["ps"] > 0: }}<span class='ps'>[ {{= feed["ps"] }} ]</span> {{ pass }}
            4  +    {{ if threshold == -1 and feed["ng"] > 0: }} <span class='ng'>{{= feed["ng"] }}</span> {{ pass }}
            5  +    {{ if threshold <= 0 and feed["nt"] > 0: }} <span class='nt'>{{= feed["nt"] }}</span> {{ pass }}
            6  +    {{if feed["ps"] > 0: }}<span class='ps'>{{= feed["ps"] }}</span> {{ pass }}
     7      7       <a href="{{= URL(c="feeds", f="view", args=[feed["id"]]) }}">{{= feed["feed_title"] }}</a><br />
     8      8   {{ pass }}

Modified applications/mobileblur/views/stories/view.html from [63977d234b] to [4cba406852].

     1      1   {{extend 'layout.html'}}
     2      2   
     3         -<a href="{{= story["story_permalink"] }}">
     4         -    <h2>{{= story["story_title"] }}</h2>
     5         -</a>
     6         -<a href="{{= URL("mark_read", vars=dict(story_id=story["id"], feed_id=feed_id)) }}" class="button">
     7         -    Mark story as read
     8         -</a>
            3  +<section id="story">
            4  +    <header>
            5  +        <a href="{{= story["story_permalink"] }}">
            6  +            {{= story["story_title"] }}
            7  +        </a>
            8  +    </header>
            9  +    <a href="{{= URL("mark_read", vars=dict(story_id=story["id"], feed_id=feed_id)) }}" class="button">
           10  +        Mark story as read
           11  +    </a>
     9     12   
    10         -{{= XML(story["story_content"]) }}
           13  +    {{= XML(story["story_content"]) }}
           14  +</section>