-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add model Tasks * add tasks#index, close #1 * add devise * add ru locale * add models: role, user_role * configure devise registrations * add header * changed models users, del user_roles * add custom user controllers * refactoring user controller and role model, close #2 * test for logout, close #3 * add gem cancancan * add task views, locale activerecord, close #4 * add author in model tasks * add method author_of to users * add author in controller tasks, close #5 * fix number validation in task model * update controller with ability, close #7 * add model comment * add controller comments, close #6 * add 'user can update comment, if 5 min not left', close #8
- Loading branch information
Showing
89 changed files
with
5,217 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
--require spec_helper | ||
--format doc |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$(document).on('turbolinks:load', function () { | ||
$('.comments-area.comments').on('click', '.edit-comment-link', function (e) { | ||
e.preventDefault(); | ||
$(this).hide(); | ||
var commentId = $(this).data('commentId'); | ||
$('div#edit-comment-' + commentId).show(); | ||
}) | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
$(function() { | ||
"use strict"; | ||
|
||
var nav_offset_top = $('header').height() + 50; | ||
/*------------------------------------------------------------------------------- | ||
Navbar | ||
-------------------------------------------------------------------------------*/ | ||
|
||
//* Navbar Fixed | ||
function navbarFixed(){ | ||
if ( $('.header_area').length ){ | ||
$(window).scroll(function() { | ||
var scroll = $(window).scrollTop(); | ||
if (scroll >= nav_offset_top ) { | ||
$(".header_area").addClass("navbar_fixed"); | ||
} else { | ||
$(".header_area").removeClass("navbar_fixed"); | ||
} | ||
}); | ||
}; | ||
}; | ||
navbarFixed(); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://coffeescript.org/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ | |
*/ | ||
|
||
@import "bootstrap"; | ||
@import "style"; | ||
@import "custom"; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the comments controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ul.blog-info-link { | ||
list-style-type: none; | ||
} | ||
|
||
.hide { | ||
display: none; | ||
} |
Oops, something went wrong.