task

PAGE - view/rankings.jade

[WHAT]

  1. [ def ] this is the "view template" for the "rankings" page in the PASS app (node). it is written in the jade-lang
    1. ] rankings contains a list that displays a number of DRIVERS,
    2. ] the DRIVERS are the ENTRANTS of a GIVEN NASCAR RACE and
    3. ] the DRIVERS sorted by their RANKING SCORE
    4. ] the initial RANKING SCORE is based upon the drivers average finish at the last 10 races at the track
    5. ] the default given race is based on the current race,
    6. ] rankings will change throughought the current RACE WEEK,
    7. ] rankings will be considered FINAL after the final practice session results update
  2. [ args ] race

[WHY]

  1. ] renders the 'rankings page' for the website,
  2. ] main menu with links to ...
  3. ]

[WHERE called from]

  1. ] menuMain -
  2. ] routes/index -

[WHEN]

  1. ]

[EXAMPLE]

[HOW-TO]

  1. ]

[REFERENCE]

  1. [2015-06-dd] rankings -v-001
    1. ] # # - a static list of DRIVER rankings, ( actual for race# # )
  2. [2015-06-02] rankings -v-002
    1. ] # # - rankingsD - pull data from api, get drivers
  3. [2015-06-09] rankings -v-002
    1. ] # # - 

developer implementation

[process]

  1.  

[notes]

  1. [rankingsD.jade] - previous testing
    1. ] rankingsD.js - ] contains example script(NF) for api call to, ] NEED link rankings.jade to rankings.js, (module.exports + requires)
  2. ] routes/home.js - app.get(/rankingsD)
    1. ] previous code usede for testing rankingsD view - includes working example, request from api, piping to file

[by_date]

  1. [YYYY-mm-DD]

status

[previously]

  1. [2015-06-05] NEW task IN
    1. x] # # -
  2. [2015-06-09] NEW task
    1. ] # # - deprecate -v-001 with hardcoded data for rankings
  3. [00:00] NEW task
    1. x] # 5272 -v004-001 - UPDATE rankings view, new rankings object,

[currently]

  1. ] NEW task IN
    1. ] # 5273 -v004-002 - get rankings data from api  

[next]

  1. ]

 


 

// try a request
       p=msg.msg
      

       // PREVIOSLY - hardcoded data set
          li(class="three")
              h5=quotes[0].author
              p
                | Kyle once dominated an entire weekend here winning in races in all 3 series, this could be his best chance to get the W he needs to get into this years chase.
          li(class="three")
              h5 19 Carl Edwards
              p
                | Edwards captured the checkered flag at last weekends Coca Cola 600 and
                a(href="http://sospep.com/view/person?id=75", target="_blank") Learn more...

          li(class="three")
              h5 20 Matt Kenseth
              p
              | Matt had a good run at Charlotte last week and qualified especially well here.

          li(class="two")
              h5 42 Kyle Larson
              p
                | Larson is ...
          li(class="two")
              h5 78 Martin Truex Jr.
              p
                | Truex Jr is ...


           li(class="one")
              h5 17 Ricky Stenhouse Jr
              p
                | Ricky is 1 of our 2 value selections to fill out this weeks roster.

           li(class="four")
              h5 33 Brian Scott
              p
              | This weeks value selection, Scott qualified in 30th position

Details Photos Edit more

Details

ID: 5269

NAME: PAGE-view-rankings

DESCRIPTION: ####] - view template for "rankings" page

START DATE TIME: 2015-06-05 11:39:00

EST DURATION: 01:00:00

END DATE TIME: 2015-06-05 12:39:00

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities