Activity variables
Variable Description
created_atWhen the activity was created e.g. {{ activity.created_at | time_ago }}
dataThe activity data e.g. {{ activity.data.donation.amount }}
is_private?Checks if the activity is private e.g.
is_public?Checks if the activity is public e.g.
type_nameThe type of item the activity is for e.g. "Donation" or "Twitter Follower"
amount_formatAmount formatted in dollars cents e.g. $100.00
amount_in_centsAmount formatted in cents e.g. 10000
broadcasterBroadcaster referenced e.g. {{ activity.author.published_name_linked }} called {{ activity.broadcaster.name }}
signupIdentity of signup involved in the activity e.g. {{ activity.signup.name_or_email }}
authorAuthor of item activity is attached to (comment, suggestion, etc.) e.g. {{ activity.author.name_or_email }}
show_page_viewExtended format for activity view (most common) e.g. {{ activity.show_page_view }}
show_oneliner_viewAbbreviated format for activity view e.g. {{ capital.activity.show_oneliner_view }}
Do you like this page?

Showing 2 reactions


Jerimee Richir commented 2012-04-19 15:04:47 -0700
This:

{% if activity.data %} yes data {% else %} NO data {% endif %}

outputs “yes data”

but I don’t know how to unpack data to see what is there. In the context of a survey does the data array have anything? How do I get in there?
Jerimee Richir commented 2012-04-19 15:03:30 -0700
test {% foo %}
Loading

Theme documentation

Object reference