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
/** | |
* helper for including re-usable shared partials such as degree icon, miniprofile and ads | |
* @method partial | |
* @param {Object} params a configuration object created from attributes set in the template. | |
* template param specifies the partial template to be rendered --optional | |
* key params specifies the special context for the partial tag data --optional, defaults to creating tag data in partial block | |
*/ | |
dust.helpers.partial = function( chunk, context, bodies, params ){ | |
var partial = {}; | |
if( params) { |
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
package com.linkedin.dust.renderer; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.io.Writer; | |
import org.mozilla.javascript.Context; | |
import org.mozilla.javascript.JavaScriptException; |
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
<form class="standard-form" id="{name}_id" name="{name}" method="{method}" action="{action}"> | |
<fieldset> | |
<p class="task-content">Worked from</p> | |
<ul> | |
{! showStartDate !} | |
<li class="start-date" style="display:none"> | |
{#startDateMonth choose="Choose"} | |
{>singleSelect/} | |
{/startDateMonth} | |
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
require 'rubygems' | |
require 'sass' | |
require 'compass' | |
require 'compass/exec' | |
class COMPASS_COMPILER | |
def self.compileme(filename, locale) | |
$LOAD_PATH.unshift "#{filename}.scss" |
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
require 'rubygems' | |
require 'compass' | |
require 'compass/exec' | |
## start sass css converter | |
class SASS_CSS | |
module Sass::Script::Functions | |
def user_language() | |
Sass::Script::String.new(options[:custom][:lang]) |
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
{! article dust template with partials for polling and pagination !} | |
<div id="today_feed" class="grid unit_8"> | |
<div id="today_feed-updates" class="unit_8 alpha omega"> | |
{>"Polling"/} | |
</div> | |
<div id="today_feed-articles" class="unit_8 alpha omega"> | |
<ul class="articles"> | |
{#content}{#news_container_section}{#newsList} | |
{>"Article"/} |
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
{#data} | |
<div id="connection-suggester-dialog">{! /* DIALOG WRAPPER */ !} | |
<div class="connection-suggester-picker">{! /* DIALOG PICKER WRAPPER */ !} | |
{! /* SUGGESTER TOOLS */ !} | |
<div class="connection-sugg-head"> | |
{! /* SEE ALL/SELECTED BUTTONS WITH COUNTS */ !} | |
<a href="#" class="show-selected btn-quaternary disabled"> | |
<span class="selected">{.connection_suggester__input_value__see_selected} <b></b></span> |
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="guided-edit"> | |
{>_close_action/} | |
{<closeText}{i18n_text_plain__close}{/closeText} | |
{?firstTaskTitleString} | |
<h1>{firstTaskTitleString|s}</h1> | |
{/firstTaskTitleString} | |
<form class="standard-form" id="{name}_id" name="{name}" method="{method}" action="{action}"> | |
<fieldset> | |
<legend>{i18n_text_plain__what_is_your_industry}</legend> |
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
{#profile_skill} | |
<div class="section" id="profile-skills" style="display:block"> | |
<div class="header"> | |
<h2>{@pre:i18n text="Skills"}</h2> | |
</div> | |
{?skills} {! we still want to display the Skills heading, even if the number of skills is zero !} | |
<div class="content"> | |
<ol class="skills" id="skills-list"> | |
{#skills} | |
<li class="competency show-bean"> |