Skip to content

Commit

Permalink
merges master and fixes conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Aug 18, 2015
2 parents cf4495e + 1f5f6d2 commit b28f63b
Show file tree
Hide file tree
Showing 80 changed files with 18,568 additions and 131 deletions.
1 change: 1 addition & 0 deletions .rspec
@@ -1 +1,2 @@
--color

2 changes: 2 additions & 0 deletions .travis.yml
@@ -1,4 +1,6 @@
language: ruby
addons:
postgresql: "9.4"
rvm:
- "2.2.2"
cache: bundler
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -36,6 +36,9 @@ gem 'initialjs-rails'
gem 'unicorn'
gem 'paranoia'

gem 'ahoy_matey', '~> 1.2.1'
gem 'groupdate' # group temporary data

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
Expand All @@ -46,6 +49,7 @@ group :development, :test do
gem 'rspec-rails', '~> 3.0'
gem 'capybara'
gem 'factory_girl_rails'
gem 'fuubar'
gem 'launchy'
gem 'quiet_assets'
gem 'letter_opener_web', '~> 1.2.0'
Expand Down
30 changes: 30 additions & 0 deletions Gemfile.lock
Expand Up @@ -44,12 +44,23 @@ GEM
awesome_nested_set (>= 3.0)
acts_as_votable (0.10.0)
addressable (2.3.8)
ahoy_matey (1.2.1)
addressable
browser (>= 0.4.0)
errbase
geocoder
rails
referer-parser (>= 0.3.0)
request_store
user_agent_parser
uuidtools
arel (6.0.3)
awesome_nested_set (3.0.2)
activerecord (>= 4.0.0, < 5)
bcrypt (3.1.10)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
browser (0.9.1)
builder (3.2.2)
byebug (5.0.0)
columnize (= 0.9.0)
Expand Down Expand Up @@ -116,6 +127,7 @@ GEM
email_spec (1.6.0)
launchy (~> 2.1)
mail (~> 2.2)
errbase (0.0.3)
erubis (2.7.0)
execjs (2.5.2)
factory_girl (4.5.0)
Expand All @@ -132,8 +144,14 @@ GEM
activesupport (~> 4.1, >= 4.1.1)
railties (~> 4.1, >= 4.1.1)
tzinfo (~> 1.2, >= 1.2.2)
fuubar (2.0.0)
rspec (~> 3.0)
ruby-progressbar (~> 1.4)
geocoder (1.2.9)
globalid (0.3.6)
activesupport (>= 4.1.0)
groupdate (2.4.0)
activesupport (>= 3)
highline (1.7.3)
http-cookie (1.0.2)
domain_name (~> 0.5)
Expand Down Expand Up @@ -218,12 +236,18 @@ GEM
thor (>= 0.18.1, < 2.0)
raindrops (0.15.0)
rake (10.4.2)
referer-parser (0.3.0)
request_store (1.2.0)
responders (2.1.0)
railties (>= 4.2.0, < 5)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
rspec (3.3.0)
rspec-core (~> 3.3.0)
rspec-expectations (~> 3.3.0)
rspec-mocks (~> 3.3.0)
rspec-core (3.3.2)
rspec-support (~> 3.3.0)
rspec-expectations (3.3.1)
Expand All @@ -241,6 +265,7 @@ GEM
rspec-mocks (~> 3.3.0)
rspec-support (~> 3.3.0)
rspec-support (3.3.0)
ruby-progressbar (1.7.5)
sass (3.4.16)
sass-rails (5.0.3)
railties (>= 4.0.0, < 5.0)
Expand Down Expand Up @@ -291,6 +316,8 @@ GEM
kgio (~> 2.6)
rack
raindrops (~> 0.7)
user_agent_parser (2.2.0)
uuidtools (2.1.5)
warden (1.2.3)
rack (>= 1.0)
web-console (2.2.1)
Expand All @@ -311,6 +338,7 @@ DEPENDENCIES
acts-as-taggable-on
acts_as_commentable_with_threading
acts_as_votable
ahoy_matey (~> 1.2.1)
byebug
cancancan
capistrano (= 3.4.0)
Expand All @@ -327,6 +355,8 @@ DEPENDENCIES
factory_girl_rails
foundation-rails
foundation_rails_helper
fuubar
groupdate
i18n-tasks
initialjs-rails
jquery-rails
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ Las herramientas utilizadas para el frontend no están cerradas aún. Los estilo

## Configuración para desarrollo y tests

Prerequisitos: tener instalado git, ImageMagick, Ruby 2.2.2, la gema `bundler`, y una librería moderna de PostgreSQL.
Prerequisitos: tener instalado git, ImageMagick, Ruby 2.2.2, la gema `bundler`, y PostgreSQL (9.4 o superior).

```
cd participacion
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Expand Up @@ -21,7 +21,7 @@ Frontend tools used include [SCSS](http://sass-lang.com/) over [Foundation](http

## Configuration for development and test environments

Prerequisites: install git, ImageMagick, Ruby 2.2.2, bundler gem and PostgreSQL.
Prerequisites: install git, ImageMagick, Ruby 2.2.2, bundler gem and PostgreSQL (>=9.4).

```
cd participacion
Expand Down
Binary file modified app/assets/fonts/icons.eot
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/fonts/icons.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/fonts/icons.ttf
Binary file not shown.
Binary file modified app/assets/fonts/icons.woff
Binary file not shown.
5 changes: 5 additions & 0 deletions app/assets/javascripts/application.js
Expand Up @@ -17,6 +17,10 @@
//= require ckeditor/init
//= require social-share-button
//= require initial
//= require ahoy
//= require d3
//= require c3
//= require c3ext
//= require app
//= require_tree .

Expand All @@ -25,6 +29,7 @@ var initialize_modules = function() {
App.Users.initialize();
App.Votes.initialize();
App.Tags.initialize();
App.Stats.initialize();
};

$(function(){
Expand Down
11 changes: 11 additions & 0 deletions app/assets/javascripts/stats.js.coffee
@@ -0,0 +1,11 @@
# Helper for generate C3.js graphs
#----------------------------------------------------------------------

buildGraph = (el) ->
url = $(el).data 'graph'
conf = bindto: el, data: {x: 'x', url: url, mimeType: 'json'}, axis: { x: {type: 'timeseries',tick: { format: '%Y-%m-%d' } }}
graph = c3.generate conf

App.Stats =
initialize: ->
buildGraph(g) for g in $("[data-graph]")
153 changes: 153 additions & 0 deletions app/assets/stylesheets/admin.scss
@@ -0,0 +1,153 @@
// Table of Contents
//
// 01. Global styles
// 02. Sidebar
// 03. List elements
//

// 01. Global styles
// - - - - - - - - - - - - - - - - - - - - - - - - -

body.admin {
background: white;

h2 {
font-size: rem-calc(24);
font-weight: bold;
}

form {
.button {
margin-top: 0;
}
}

.button.secondary {
margin-right: rem-calc(12);
}

.button.create {
background: #EFD90C;
color: $text;

&:hover {
background: #BDAB09;
}
}

.admin-content {
margin-top: rem-calc(24);
}

.is-featured {
margin-top: rem-calc(36);
}
}

// 02. Sidebar
// - - - - - - - - - - - - - - - - - - - - - - - - -

.admin-sidebar {
margin-left: rem-calc(-15);
margin-top: rem-calc(-48);

ul {
list-style-type: none;
margin-left: 0;
padding: 0;

[class^="icon-"] {
display: inline-block;
font-size: rem-calc(24);
padding-right: rem-calc(24);
padding-top: rem-calc(4);
}

li {
background: #2E343F;
border-bottom: 1px solid #292f39;
border-top: 1px solid #353c49;
margin: 0;
outline: 0;

&:first-child {
background: #2B3139;
color: rgba(255,255,255,0.3);
padding: rem-calc(24) rem-calc(12);
text-transform: uppercase;
}

&.active{
background: #373D47;

a:not(.button) {
color: white;
}
}
}

li a:not(.button) {
color: rgba(255,255,255,0.3);
line-height: rem-calc(48);
padding-left: rem-calc(12);
vertical-align: top;

&:hover {
color: white;
}
}
}
}

// 03. List elements
// - - - - - - - - - - - - - - - - - - - - - - - - -

.admin-list {
list-style-type: none;
margin: 0;

form {
clear: both;

.checkbox {
font-size: rem-calc(12);
}
}

li {
border-bottom: 1px solid #E7E9EC;
font-size: rem-calc(14);
min-height: rem-calc(72);
padding: rem-calc(12);

&:first-child {
border-top: 1px solid #E7E9EC;
}

&:nth-child(odd) {
background: #F0F2F6;
}
}

.tag {
float: left;
font-size: rem-calc(18);
padding: 0;
}

.button {
margin: 0;
}
}

.delete {
border-bottom: 1px dotted #CF2A0E;
color: #F04124;
font-size: rem-calc(11);
margin-right: rem-calc(12);

&:hover, &:active, &:focus {
border: 0;
color: #cf2a0e;
}
}
2 changes: 2 additions & 0 deletions app/assets/stylesheets/application.scss
Expand Up @@ -6,5 +6,7 @@
@import "fonts";
@import "icons";
@import "variables";
@import "admin";
@import "participacion";
@import "debates";
@import "c3";
5 changes: 0 additions & 5 deletions app/assets/stylesheets/debates.scss
Expand Up @@ -138,10 +138,6 @@
// 02. Index
// - - - - - - - - - - - - - - - - - - - - - - - - -

.featured-debates {
margin-top: rem-calc(23);
}

.debate-featured {

.panel {
Expand Down Expand Up @@ -244,7 +240,6 @@

.debates-list {
margin-bottom: rem-calc(48);
margin-top: rem-calc(24);
}

.debate {
Expand Down
3 changes: 3 additions & 0 deletions app/assets/stylesheets/icons.scss
Expand Up @@ -79,3 +79,6 @@
.icon-star:before {
content: "n";
}
.icon-eye:before {
content: "p";
}

0 comments on commit b28f63b

Please sign in to comment.