Skip to content

Instantly share code, notes, and snippets.

@francois
Created March 2, 2010 03:16
Show Gist options
  • Select an option

  • Save francois/319083 to your computer and use it in GitHub Desktop.

Select an option

Save francois/319083 to your computer and use it in GitHub Desktop.
<table-plus with="&@companies" fields="&@fields">
<event-kind-1-heading-link:>
<%=h @event_kinds.detect {|ek| ek.id == 1}.name %>
</event-kind-1-heading-link:>
<event-kind-1-view:>
<a if="&this" with="&@events[this.to_i]"><%= this ? this.created_at.to_date.to_s(:short) : nil %></a>
</event-kind-1-view:>
<event-kind-2-heading-link:>
<%=h @event_kinds.detect {|ek| ek.id == 2}.name %>
</event-kind-2-heading-link:>
<event-kind-2-view:>
<a if="&this" with="&@events[this.to_i]"><%= this ? this.created_at.to_date.to_s(:short) : nil %></a>
</event-kind-2-view:>
</table-plus>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment