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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
function superprompt { | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" | |
export PS1="\[\e]2;\u@\h\a[\[\e[37;1m\]\t\[\e[0m\]]$RED\$(parse_git_branch) \[\e[35m\]\W\[\e[0m\] \$ " | |
PS2='> ' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>com.adobe.AAM.Scheduler-1.0</key> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
</dict> | |
<key>com.mysql.mysqld</key> |
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
if row[ProdFields::FOTO].to_s.downcase == 'ok' | |
# Assign product marketplaces | |
{ | |
'EU' => [ | |
[ProdFields::EU_MARKET, ProdFields::EU_SELECTION, ProdFields::EU_STOCK], | |
ProdFields::EU_PRODUCT_ORDER | |
], | |
'US' => [ | |
[ProdFields::US_MARKET, ProdFields::US_SELECTION, ProdFields::US_STOCK], | |
ProdFields::US_PRODUCT_ORDER |
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
@@ -8,10 +8,16 @@ | |
<div id="zoom-close"> | |
<%=t "navigation.button_close" %> | |
</div> | |
- <div id="zoom-views"></div> | |
+ <ul id="zoom-views"> | |
+ <% product.thumbs.times do |i| -%> | |
+ <li> | |
+ <a href="#" class="product-zoom" data-status="" data-zoom="/assets/images/products/zooms/<%=product.stylegroup%>-<%=i+1%>.jpg"> | |
+ <img src="/assets/images/products/views/<%=product.stylegroup%>-<%=i+1%>.jpg" /> |
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
if @related_products | |
# delete related not in the current marketplace | |
@related_products.delete_if do |p| | |
p.nil? || !p.marketplace_ids.include?(@marketplace.id) | |
end | |
# delete related not in order | |
@related_products.delete_if do |p| | |
p.marketplaces_products.find_by_product_id(p, :conditions => [ "product_order < 0" ]) ? true : false | |
end | |
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
5N1557_X72_F0002 1 | |
5ARD24_X72_F0203 1 | |
5N1557_X72_F0016 2 | |
5ARD24_X72_F010F 2 | |
5N1557_X72_F0028 3 | |
5ARD24_X72_F0028 3 | |
5N1557_X72_F010F 4 | |
RN0647_X72_F0002 9 | |
RN0647_X72_F0505 10 | |
RN0647_X72_F010F 11 |
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
.availability { | |
padding: 0 0 15px 0; | |
border-bottom: none; | |
li { | |
float: left; | |
width: 30px; | |
height: 32px; | |
background: transparent url("/assets/store_locator/images/store-departments-icons.png") 0 -32px no-repeat; |
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
@mixin icon_sprite($name, $xpos) { | |
&.icon_#{$name} { | |
background-position: $xpos -32px; | |
&:hover { | |
background-position: $xpos 0; | |
} | |
} | |
} |
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
available_languages: | |
en: "english" | |
it: "italiano" | |
ja: "日本語" | |
hans: "简体中文" | |
hant: "繁體中文" |
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
initPlayer: (tagId, args) => | |
if args.controls is 'hide' | |
$("##{tagId}").parent().addClass('controls_hidden').find('.overlay'). | |
mouseover(-> $("##{tagId} .vjs-controls").addClass 'force_show'). | |
mouseout(-> $("##{tagId} .vjs-controls").removeClass 'force_show') | |
@player = _V_(tagId); | |
@player.tag.pause() | |
@playTimeout = setTimeout @play, 500 |
OlderNewer