Skip to content

Instantly share code, notes, and snippets.

<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>
# Basic Settings
#
fontName = "Menlo"
fontSize = 13
# Extra files to include
#
myExtraIncludes = ".tm_properties,.htaccess,.gitignore"
fileBrowserGlob = "{*,$myExtraIncludes}"
include = "{$include,$myExtraIncludes}"
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
/* Blueprint Liquid Configuration */
$blueprint-liquid-grid-columns : 24;
$blueprint-liquid-grid-width : 3.167%;
$blueprint-liquid-grid-margin : 1.042%;
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
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
$('.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)
#Dismiss sign-up message, for now
$(".dismiss-sign-up").click (e) ->
e.preventDefault()
console.log($(this).parent().parent())
$(this).fadeOut
<section class="messageFooter">
<% if touchpoint.updated_at != touchpoint.created_at %>
Updated by <%= touchpoint.updated_by %> at <time datetime="<%= touchpoint.updated_at.to_formatted_s(:dashy_format_verbose) %>"><%= touchpoint.updated_at.to_formatted_s(:human_readable_verbose) %></time>
<% else %>
Created by <%= touchpoint.created_by %> at <time datetime="<%= touchpoint.created_at.to_formatted_s(:dashy_format_verbose) %>"><%= touchpoint.created_at.to_formatted_s(:human_readable_verbose) %></time>
<% end %>
</section>
#glances {
@include prepend(1);
@include column(7, last);
background: #ebebeb;
border-right: 1px solid #cfcfcf;
padding-top: 24px;
font-family: $secondary-font-family;
> section {
@include append(.5);
> header {