This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SquerbWeb.views.Tooltip extends Backbone.View | |
template: HandlebarsTemplates['new/tooltip'] | |
className: 'tooltip' | |
constructor: (options) -> | |
@$parent = options.parent | |
@html = options.html | |
super(options) | |
render: => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/assets/javascripts/new/controllers/home_page.coffee b/app/assets/javascripts/new/controllers/home_page.coffee | |
index a217063..ed53bc0 100644 | |
--- a/app/assets/javascripts/new/controllers/home_page.coffee | |
+++ b/app/assets/javascripts/new/controllers/home_page.coffee | |
@@ -1,13 +1,17 @@ | |
class SquerbWeb.controllers.HomePage | |
- constructor: (@router, @top, @contentRegion, @topicsController) -> | |
+ _.extend(@::, Backbone.Events) | |
+ | |
+ constructor: (@router, @top, @contentRegion, @topicsController, @streamsController) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From d02dd19687fef34e31813139ba81f355d8fdfac5 Mon Sep 17 00:00:00 2001 | |
From: Jan Dudek <[email protected]> | |
Date: Sun, 5 May 2013 21:27:26 +0200 | |
Subject: [PATCH 01/21] Fixed incorrect namespaces, moved files in wrong | |
locations, added explicit require | |
--- | |
src/app.coffee | 117 ++++++ | |
src/app/plugin/PullRefresh.js | 405 --------------------- | |
src/app/templates/opinionListTemplate.coffee | 17 - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="images\/(.*.jpg)" width="(\d*)" height="(\d*)" alt="(.*)"> | |
<%= image_tag '$1', size: '$2x$3', alt: '$4' %> |
NewerOlder