Skip to content

Instantly share code, notes, and snippets.

@scottbaggett
Created September 18, 2012 23:34
Show Gist options
  • Save scottbaggett/3746729 to your computer and use it in GitHub Desktop.
Save scottbaggett/3746729 to your computer and use it in GitHub Desktop.
(function() {
this.JST || (this.JST = {});
this.JST["mobile/templates/work"] = (function() {
return function(context) {
if (context == null) {
context = {};
}
return Skim.withContext.call({}, context, function() {
var project, _buf, _i, _len, _ref, _temple_coffeescript_attributeremover1;
_buf = [];
_buf.push("<div id=\"subheader\">Work</div><div id=\"wrapper\"><div class=\"work\"><div class=\"bi-subnav\"><div class=\"button latest\"><div class=\"label\">Latest</div><div class=\"icon-latest\"></div></div><div class=\"button brands\"><div class=\"label\">Brands</div><div class=\"icon-brands\"></div></div></div><div id=\"projects\"><ul>");
_ref = this.projects;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
project = _ref[_i];
_buf.push("<li><a href=\"/work/");
_buf.push(this.escape(project.slug));
_buf.push("\"><div class=\"nugget\"><div class=\"details\"><div class=\"copy1\">");
_buf.push(this.escape(project.brand.name));
_buf.push("</div><div class=\"copy2\">");
_buf.push(this.escape(project.name));
_buf.push("</div></div><img class=\"retina\" height=\"140\"");
_temple_coffeescript_attributeremover1 = [];
_temple_coffeescript_attributeremover1.push(this.escape(project.cover_image.cover_image.mobile_work_thumb.url));
_temple_coffeescript_attributeremover1.join('');
if (_temple_coffeescript_attributeremover1.length > 0) {
_buf.push(" src=\"");
_buf.push(_temple_coffeescript_attributeremover1);
_buf.push("\"");
}
_buf.push(" width=\"294\" /></div></a></li>");
}
_buf.push("</ul></div></div></div>");
return _buf.join('');
});
};
}).call(this);;
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment