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
//xmlns:interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" | |
//xmlns:toolkit="clr-namespace:Xceed.Wpf.Toolkit;assembly=WPFToolkit.Extended" | |
<toolkit:WatermarkTextBox Padding="6,4" | |
TextOptions.TextRenderingMode="Aliased" Watermark="Введите что нибудь для поиска" > | |
<toolkit:WatermarkTextBox.BorderBrush> | |
<SolidColorBrush Color="#DDD"/> | |
</toolkit:WatermarkTextBox.BorderBrush> | |
<interactivity:Interaction.Triggers> | |
<interactivity:EventTrigger EventName="TextChanged"> |
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
namespace :erb do | |
namespace :to do | |
desc 'Converts all .html.erb files to .html.haml' | |
task :haml do | |
print "looking for erb views..\n" | |
files = `find ./app/views -name *.html.erb` | |
files.each_line do |file| | |
file.strip! | |
print "parsing file: #{file}\n" | |
`bundle exec html2haml #{file} | cat > #{file.gsub(/\.erb$/, ".haml")}` |
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
ru: | |
ransack: | |
search: "Поиск" | |
predicate: "основное" | |
and: "и" | |
or: "или" | |
any: "любое" | |
all: "все" | |
combinator: "комбинатор" | |
attribute: "аттрибут" |
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).on('click', '.fancybox', (e)-> | |
$.fancybox.showLoading() | |
$.ajax | |
url: $(this).attr('href') + type, | |
success: (data)-> | |
$.fancybox.hideLoading() | |
$.fancybox(data, { | |
overlay : | |
locked : true |
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
filepicker.on 'change', 'input[type=file]', ()-> | |
$picker=$(this) | |
$picker.closest('.filename').html($picker.val().replace(/C:\\fakepath\\/i, '')) |
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
helpers ||= {} | |
helpers.showMessage = (title, content)-> | |
$.fancybox(['<div class="auth"><div class="block">', | |
'<h2>',title,'<a href="#" class="btn-close"><i class="icon-remove"></i></a></h2>', | |
'<div>',content,'</div>', | |
'</div></div>'].join(''),{ | |
wrapCSS: 'modal' | |
closeBtn : false | |
}) |
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
helpers._plural = (n, forms)-> | |
forms[if n%10==1 && n%100!=11 then 0 else if n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) then 1 else 2] |
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
.avatar-picker | |
.header | |
%span.descr | |
Загрузить фото | |
%span.radio | |
= radio_button_tag :option, :file, checked: true | |
= label_tag :option_file, 'Как файл' | |
%span.radio | |
= radio_button_tag :option, :link | |
= label_tag :option_link, 'Как ссылку' |
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
x.select('moderator, COUNT(*) count').group('moderator').inject({}){|h, o| h[o.moderator=="t"] = o; h } |
OlderNewer