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
<div class="navbar navbar-inverse"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</a> | |
<div class="nav-collapse collapse"> | |
<ul class="nav"> |
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
%select{:name => "tags", :id=>"tags"} | |
- @tags.each do |tag| | |
%option{:value => "ha"} tag |
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
$(document).ready( function () { | |
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw ) | |
{ | |
if ( typeof sNewSource != 'undefined' && sNewSource != null ) { | |
oSettings.sAjaxSource = sNewSource; | |
} | |
// Server-side processing should just call fnDraw | |
if ( oSettings.oFeatures.bServerSide ) { |
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 update | |
@style = Style.find(params[:id]) | |
if @style.update_attributes(params[:style]) | |
redirect_to add_path | |
else | |
respond_to do |format| | |
format.html { render action: "edit" } | |
format.json { render json: @style.errors, status: :unprocessable_entity } | |
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 trunk(input, length, path=nil) | |
shorten = truncate(input, :length => length) | |
return link_to shorten, path, :rel=>"tooltip", :title=>input if path | |
content_tag(:span, shorten, :rel=>"tooltip", :title=>input) | |
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 trunk(input, length, *path) | |
shorten = truncate(input, :length => length) | |
if path.empty? | |
return content_tag(:span, shorten, :rel=>"tooltip", :title=>input) | |
else | |
return link_to shorten, path[0], :rel=>"tooltip", :title=>input | |
end | |
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
/* line 26, ../../../../.rvm/gems/ruby-1.9.3-p286@goodsounds/gems/bootstrap-sass-2.1.1.0/vendor/assets/stylesheets/bootstrap/_mixins.scss */ | |
.clearfix { | |
*zoom: 1; | |
} | |
/* line 15, ../../../../.rvm/gems/ruby-1.9.3-p286@goodsounds/gems/bootstrap-sass-2.1.1.0/vendor/assets/stylesheets/bootstrap/_mixins.scss */ | |
.clearfix:before, .clearfix:after { | |
display: table; | |
content: ""; | |
line-height: 0; | |
} |
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
<script type="text/javascript"> | |
(function() { | |
var onload = window.onload; | |
window.onload = function(){ | |
if (typeof onload == "function") onload(); | |
var options, chart; | |
options = { "title": { "text": "Top Brands by Score" },"legend": { "layout": "vertical","style": { },"enabled": false },"xAxis": { "categories": ["x","y","z"] },"yAxis": { "title": { "text": null },"labels": { } },"tooltip": { "enabled": true,"formatter": function() { return '<b>'+ this.x +'</b>: '+ this.y.toFixed(1) +' %'; } },"credits": { "enabled": false },"plotOptions": { "areaspline": { } },"chart": { "defaultSeriesType": "column","renderTo": "my_id","height": 230,"width": 200,"backgroundColor": "#F0F0F0" },"subtitle": { },"series": [{"data":[77.5,67.0,55.0],"dataLabels":{"formatter":"function() { return this.x; }","enabled":true,"rotation":90,"x":-3,"y":15,"color":"#FFFFFF"},"name":null}] }; | |
chart = new Highcharts.Chart(options); | |
}; |
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
(function(){function E(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function ja(){for(var a=0,b=arguments,c=b.length,d={};a<c;a++)d[b[a++]]=b[a];return d}function N(a,b){return parseInt(a,b||10)}function zb(a){return typeof a==="string"}function rb(a){return typeof a==="object"}function ic(a){return Object.prototype.toString.call(a)==="[object Array]"}function Sb(a){return typeof a==="number"}function Eb(a){return sa.log(a)/sa.LN10}function rc(a){return sa.pow(10,a)}function Fb(a,b){for(var c= | |
a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function A(a){return a!==G&&a!==null}function R(a,b,c){var d,e;if(zb(b))A(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(A(b)&&rb(b))for(d in b)a.setAttribute(d,b[d]);return e}function sb(a){return ic(a)?a:[a]}function r(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],typeof c!=="undefined"&&c!==null)return c}function J(a,b){if(Tb&&b&&b.opacity!==G)b.filter="alpha(opacity="+b.opacity*100+")";E(a.style,b)}function na(a, | |
b,c,d,e){a=S |
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
f.series(:data => @values, :dataLabels => { :formatter => %|function() { return this.x; }|.js_code, :enabled => true, :rotation => 90, :x=>-3, :y=>15, :color=>"#FFFFFF" } ) |