|
Involver Developer Network : response
This page last changed on May 26, 2011 by steve.hull@involver.com.
responseThis is a response to a topic. It comes from the Get Satisfaction API. Attributes
Examples
{% capture employee_class %}
{% if response.employee %}
employee
{% endif %}
{% endcapture %}
<div class="reply {{ employee_class | strip }}">
{% if response.author.facebook_id %}
<!-- Author is Facebook user -->
<fb:profile-pic uid="{{ response.author.facebook_id }}" size="q" width="30" height="30" style="float: left;"></fb:profile-pic>
<p>
<span class="fb_name_wrapper"><fb:name uid="{{ response.author.facebook_id }}" useyou="false"></fb:name></span>
<span class="employee_label"> (Employee) </span>
{{ response.content }}<br />
<span>{{ response.created_at | time_ago_in_words }} ago</span>
{% if response.company_promoted %}
<span class="official_response">Official Response</span>
{% endif %}
</p>
{% else %}
<!-- Author is not Facebook user -->
<a class="thumb" href="{{ response.author.at_sfn }}"><img src="{{ response.author.avatar_url_small }}" border="0" /></a>
<p>
<a href="{{ response.author.at_sfn }}">{{ response.author.name }}</a>
<span class="employee_label"> (Employee) </span>
{{ response.content }}<br />
<span>{{ response.created_at | time_ago_in_words }} ago</span>
{% if response.company_promoted %}
<span class="official_response">Official Response</span>
{% endif %}
</p>
{% endif %}
</div>
|
| Document generated by Confluence on Feb 12, 2013 09:09 |