Merge branch 'master' into improving_debates

Conflicts:
	app/assets/stylesheets/debates.scss
	app/assets/stylesheets/participacion.scss
This commit is contained in:
Alberto Garcia Cabeza
2015-08-15 01:45:56 +02:00
17 changed files with 43 additions and 27 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -16,17 +16,20 @@
//= require turbolinks
//= require ckeditor/init
//= require social-share-button
//= require initial
//= require app
//= require_tree .
var initialize_modules = function() {
App.Comments.initialize();
App.Users.initialize();
App.Votes.initialize();
};
$(function(){
$(document).foundation();
$(document).ready(initialize_modules)
$(document).on('page:load', initialize_modules)
$(document).ready(initialize_modules);
$(document).on('page:load', initialize_modules);
$(document).on('ajax:complete', initialize_modules);
});

View File

@@ -17,7 +17,12 @@ App.Comments =
$("#js-comment-form-#{id}").toggle()
initialize: ->
$('body').on 'click', '.js-add-comment-link', ->
id = $(this).data().id
App.Comments.toggle_form(id)
false
$('body .js-add-comment-link').each ->
$this = $(this)
unless $this.data('initialized') is 'yes'
$this.on('click', ->
id = $(this).data().id
App.Comments.toggle_form(id)
false
).data 'initialized', 'yes'

View File

@@ -0,0 +1,5 @@
App.Users =
initialize: ->
$('.initialjs-avatar').initial();
false

View File

@@ -383,9 +383,6 @@
}
.author-photo {
border-radius: 2px;
display: inline-block;
height: 32px;
line-height: $line-height*2;
margin-right: rem-calc(6);
vertical-align: middle;
@@ -539,16 +536,6 @@
}
}
.user-photo {
border-radius: 2px;
display: inline-block;
height: 32px;
line-height: $line-height*2;
margin-right: rem-calc(6);
vertical-align: top;
width: 32px;
}
.comment-body {
margin-left: rem-calc(36);

View File

@@ -517,6 +517,10 @@ form {
margin-bottom: rem-calc(24);
}
.initialjs-avatar {
margin-bottom: $line-height;
}
h2 {
clear: both;
font-size: rem-calc(30);