Donis WebPage Approximate Estimation
Approximate Requirements collected from wireframes: 130723_websitedraft and e-mail conversations.
Main parts of the webpage:
- Grid DB model [1d]
- Project DB model [1d]
- Viewing project API [0.5d]
Game.select('games.*, SUM(CASE WHEN votes.weight > 0 THEN votes.weight ELSE 0 END) as positive, SUM(CASE WHEN votes.weight < 0 THEN votes.weight ELSE 0 END) as negative').joins(:votes).group('games.id') |
<div style="position: fixed;width: 100px;background: #000;position: absolute;top: 0;bottom: 0;"> |
class GithubWebhooksController | |
def payload | |
case event | |
when 'push' then handle_push | |
when 'delete' then handle_delete | |
end | |
end | |
private |
<div class="box center"> | |
<img class="box-top" src="images/content-right-box-top2.png" alt=""/> | |
<a style="display:block; padding-top:1px" href='http://www.siepomaga.pl/' onclick='window.open(this.href);return false'><img src='http://www.siepomaga.pl/b/zmieniaj_swiat/300x50.png' alt='300x50' /></a> | |
<img class="box-bottom" src="images/content-right-box-bottom2.png" alt=""/> | |
</div> |
<div class="box center"> | |
<img class="box-top" src="images/content-right-box-top2.png" alt=""/> | |
TRESC | |
<img class="box-bottom" src="images/content-right-box-bottom2.png" alt=""/> | |
</div> |
.favorites-mobile { | |
.contestant-list { | |
margin: 0; | |
padding: 0; | |
} | |
.contestant-item { | |
position: relative; | |
background: rgba(white, 0.6); | |
border-radius: 4px; |
construtor: -> | |
@api = GRG.api | |
getCardsFromChecklists: -> | |
@api.getCardChecklists @, @convertChecklistToCards | |
convertTasksChecklistToCards: (checklists) => | |
# use underscore.js bitch! | |
unless list = _(checklists).findWhere(name: GRG.Trello.Checklist.tasks.name) | |
console.log("Tasks checklist not found.") |
class AssetsController < ApplicationController | |
def bookmarklet | |
redirect_to view_context.javascript_path('bookmarklet-bootstrap.js') | |
end | |
def reel_deal | |
respond_to do |format| | |
format.js { redirect_to view_context.javascript_path('reel_deal_application.js') } | |
format.css { redirect_to view_context.stylesheet_path('reel_deal_application.css') } | |
end |