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
from django.contrib import admin | |
from django.db import models | |
from django.contrib import admin | |
from django.forms import forms | |
from django.utils.safestring import mark_safe | |
from django.contrib.admin.widgets import AdminFileWidget | |
from models import Service, Client, Proyect, Image, Country,LineAction | |
from cms.plugins.text.widgets.wymeditor_widget import WYMEditor | |
from sorl.thumbnail.admin import AdminInlineImageMixin |
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
<% @user ||= current_user %> | |
<div class="stats"> | |
<!-- | |
<a class="tiny button" href="<%= followers_user_path(@user) %>"> | |
<strong id="followers" class="WishList"> | |
<%= @user.followers.count %> | |
</strong> | |
followers | |
</a> |
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
<style> | |
.best_in_place { | |
padding: 10px 80px 0 40px; | |
background-color: #FCC; | |
border: solid 2px #C66; |
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
ActiveAdmin.register Admin do | |
end |
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
<style> | |
.blog-post-one, | |
.blog-post-two { | |
height: 206px; | |
overflow: hidden !important; | |
margin: 0px 10px 10px 10px; | |
border: #eee 1px solid; | |
} |
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
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, | |
header, | |
hgroup, | |
nav, | |
section, |
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
include OmniAuth::Strategy | |
option :fields, [:name, :email] | |
option :on_login, nil | |
option :on_registration, nil | |
option :on_failed_registration, nil | |
option :locate_conditions, lambda{|req| {model.auth_key => req['auth_key']} } | |
def request_phase | |
if options[:on_login] |
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
include OmniAuth::Strategy | |
option :fields, [:name, :email] | |
option :on_login, nil | |
option :on_registration, nil | |
option :on_failed_registration, nil | |
option :locate_conditions, lambda{|req| {model.auth_key => req['auth_key']} } | |
def request_phase | |
if options[:on_login] |
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
$(document).ready(function(){ | |
// прячем кнопку #back-top | |
$("#back-top").hide(); | |
// появление/затухание кнопки #back-top | |
$(function (){ | |
$(window).scroll(function (){ | |
if ($(this).scrollTop() > 100){ | |
$('#back-top').fadeIn(); | |
} else{ |
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
/*Back to top button */ | |
#back-top{ | |
position:fixed; | |
bottom:30px; | |
right:30px; | |
} | |
#back-top a{ | |
width:80px; | |
display:block; | |
text-align:center; |
OlderNewer