edit-task
Home
Up
Delete
Task Name:
Task Description:
####] - view template for "rankings" page
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">PAGE - view/rankings.jade</h1> <h2>[WHAT]</h2> <ol> <li>[ def ] this is the "view template" for the "rankings" page in the PASS app (node). it is written in the jade-lang</li> <ol> <li>] rankings contains a list that displays a number of DRIVERS,</li> <li>] the DRIVERS are the ENTRANTS of a GIVEN NASCAR RACE and</li> <li>] the DRIVERS sorted by their RANKING SCORE</li> <li>] the initial RANKING SCORE is based upon the drivers average finish at the last 10 races at the track</li> <li>] the default given race is based on the current race,</li> <li>] rankings will change throughought the current RACE WEEK,</li> <li>] rankings will be considered FINAL after the final practice session results update</li> </ol> <li>[ args ] race</li> </ol> <h2>[WHY]</h2> <ol> <li>] renders the 'rankings page' for the website,</li> <li>] main menu with links to ...</li> <li>]</li> </ol> <h2>[WHERE called from]</h2> <ol> <li>] menuMain -</li> <li>] routes/index -</li> </ol> <h2>[WHEN]</h2> <ol> <li>]</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li>] </li> </ol> <h2>[HOW-TO]</h2> <ol> <li>]</li> </ol> <h2>[REFERENCE]</h2> <ol> <li><strong>[2015-06-dd] rankings -v-001</strong></li> <ol> <li>] # # - a static list of DRIVER rankings, ( actual for race# # )</li> </ol> <li><strong>[2015-06-02] rankings -v-002</strong></li> <ol> <li>] # # - rankingsD - pull data from api, get drivers</li> </ol> <li><strong>[2015-06-09] rankings -v-002</strong><ol> <li>] # # - </li> </ol></li> </ol><hr /> <h1 style="text-align: center;">developer implementation</h1> <h2>[process]</h2> <ol> <li> </li> </ol> <h2>[notes]</h2> <ol> <li><strong>[rankingsD.jade] - previous testing</strong></li> <ol> <li>] rankingsD.js - ] contains example script(NF) for api call to, ] NEED link rankings.jade to rankings.js, (module.exports + requires)</li> </ol> <li><strong>] routes/home.js - app.get(/rankingsD)</strong></li> <ol> <li>] previous code usede for testing rankingsD view - includes working example, request from api, piping to file</li> </ol></ol> <h2>[by_date]</h2> <ol> <li>[YYYY-mm-DD]</li> </ol><hr /> <h1 style="text-align: center;">status</h1> <h2>[previously]</h2> <ol> <li><strong>[2015-06-05] NEW task IN </strong></li> <ol> <li>x] # # -</li> </ol> <li><strong>[2015-06-09]</strong><strong> NEW task </strong></li> <ol> <li>] # # - deprecate -v-001 with hardcoded data for rankings</li> </ol> <li><strong>[00:00] NEW task </strong></li> <ol> <li>x] # 5272 -v004-001 - UPDATE rankings view, new rankings object,</li> </ol></ol> <h2>[currently]</h2> <ol> <li><strong>] NEW task IN </strong></li> <ol> <li>] # 5273 -v004-002 - get rankings data from api </li> </ol></ol> <h2>[next]</h2> <ol> <li>]</li> </ol> <p> </p> <hr /> <p> </p> <p>// try a request<br /> p=msg.msg<br /> </p> <p> // PREVIOSLY - hardcoded data set <br /> li(class="three")<br /> h5=quotes[0].author<br /> p <br /> | 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.<br /> li(class="three")<br /> h5 19 Carl Edwards<br /> p <br /> | Edwards captured the checkered flag at last weekends Coca Cola 600 and <br /> a(href="<a href="/view/person?id=75">http://sospep.com/view/person?id=75</a>", target="_blank") Learn more...</p> <p> li(class="three")<br /> h5 20 Matt Kenseth<br /> p <br /> | Matt had a good run at Charlotte last week and qualified especially well here.</p> <p> li(class="two")<br /> h5 42 Kyle Larson<br /> p <br /> | Larson is ...<br /> li(class="two")<br /> h5 78 Martin Truex Jr.<br /> p <br /> | Truex Jr is ...</p> <p><br /> li(class="one")<br /> h5 17 Ricky Stenhouse Jr<br /> p <br /> | Ricky is 1 of our 2 value selections to fill out this weeks roster.</p> <p> li(class="four")<br /> h5 33 Brian Scott<br /> p <br /> | This weeks value selection, Scott qualified in 30th position <br /><br /></p>