This file contains hidden or 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
$('.new_reply').live "ajax:success", (event, data, status, xhr) -> | |
form = $('#' + BB.previously_submitted_request_form) | |
form.find('input[type=text]').val('') | |
BB.previously_submitted_request_form = $(this).attr('id') | |
button = $(this).find('button div') | |
button.hide() | |
form.parent().parent().before(data) |
This file contains hidden or 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
class DropEventsTable < ActiveRecord::Migration | |
def up | |
create_table :meetups_planners, :id => false do |t| | |
t.references :meetup, :null => false | |
t.references :planner, :null => false | |
end | |
add_index(:meetups_planners, [:meetup_id, :planner_id], :unique => true) | |
end |
This file contains hidden or 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
def create | |
@user = current_user | |
event = Event.find(params[:event_id]) | |
if @user.events.find_by_id(event) | |
redirect_to event, notice: 'You can\'t enroll to the same event twice. Duh.' | |
return | |
else | |
@enrollment = @user.enrollments.build(event: event) | |
end | |
This file contains hidden or 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
/* Blueprint Liquid Configuration */ | |
$blueprint-liquid-grid-columns : 24; | |
$blueprint-liquid-grid-width : 3.167%; | |
$blueprint-liquid-grid-margin : 1.042%; |
This file contains hidden or 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
should 'be able to send a message to all users' do | |
within('.sectionSidebar') do | |
assert page.has_content?('Send to All Users') | |
assert page.has_content?('Targeted Users') | |
end | |
check 'Send to All Users' | |
visit edit_admin_message_path(@message) | |
within('.sectionSidebar') do | |
assert page.find(".send-to-all").checked? | |
end |
This file contains hidden or 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
# Basic Settings | |
# | |
fontName = "Menlo" | |
fontSize = 13 | |
# Extra files to include | |
# | |
myExtraIncludes = ".tm_properties,.htaccess,.gitignore" | |
fileBrowserGlob = "{*,$myExtraIncludes}" | |
include = "{$include,$myExtraIncludes}" |
This file contains hidden or 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
<section class="problem-solution row"> | |
<div class="span19"> | |
<div class="well clearfix"> | |
<div class="problem span7"> | |
<h4>Problem</h4> | |
<h3>Suspendisse vestibulum elit quis</h3> | |
<p>Suspendisse vestibulum elit quis metus suscipit rhoncus. Proin volutpat, justo ut varius luctus, nisi elit varius orci, eget varius quam urna nec velit. Curabitur vitae scelerisque augue.</p> | |
<ul> | |
<li>Proin volutpat nisi elit varius orci</li> | |
<li>Justo ut varius luctus</li> |
This file contains hidden or 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
# Customize the content that's coming out when hovering over a vcard | |
vcardContent = (element) -> | |
content = $(element).children('.additional-details').clone().remove().html(); | |
return content | |
$('.vcard').popover({ | |
trigger : 'hover', | |
title : $(this).attr('title'), | |
content : vcardContent($('.vcard')) | |
}) |
This file contains hidden or 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
.plan-type { | |
font-size: calc-em(16px, $baseFontSize); | |
line-height: calc-em(18px, 16px); | |
color: #FFF; | |
font-weight: 100; | |
background: #146AA8; | |
&:nth-of-type(2) { | |
@include border-radius(4px 0 0 0); | |
} | |
&:last-of-type { |
This file contains hidden or 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
@mixin grid-background( $total-columns: $gridColumns, | |
$grid-column-width: $gridColumnWidth, | |
$grid-gutter-width: $gridGutterWidth, | |
//$offset: $grid-background-offset, | |
$column-color: rgba(255,0,255,.05)) | |
{ | |
//Always transparent white for gutters | |
$transparent-color: rgba(255,255,255,0); |