~0x44/nova/extdoc

« back to all changes in this revision

Viewing changes to vendor/tornado/demos/facebook/templates/modules/post.html

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<div class="post">
 
2
  <div class="picture">
 
3
    <a href="{{ actor["url"] }}"><img src="{{ actor["pic_square"] }}"/></a>
 
4
  </div>
 
5
  <div class="body">
 
6
    <a href="{{ actor["url"] }}" class="actor">{{ escape(actor["name"]) }}</a>
 
7
    {% if post["message"] %}
 
8
      <span class="message">{{ escape(post["message"]) }}</span>
 
9
    {% end %}
 
10
    {% if post["attachment"] %}
 
11
      <div class="attachment">
 
12
        {% if post["attachment"].get("name") %}
 
13
          <div class="name"><a href="{{ post["attachment"]["href"] }}">{{ escape(post["attachment"]["name"]) }}</a></div>
 
14
        {% end %}
 
15
        {% if post["attachment"].get("description") %}
 
16
          <div class="description">{{ post["attachment"]["description"] }}</div>
 
17
        {% end %}
 
18
        {% for media in filter(lambda m: m.get("src") and m["type"] in ("photo", "link"), post["attachment"].get("media", [])) %}
 
19
          <span class="media">
 
20
            <a href="{{ media["href"] }}"><img src="{{ media["src"] }}" alt="{{ escape(media.get("alt", "")) }}"/></a>
 
21
          </span>
 
22
        {% end %}
 
23
      </div>
 
24
    {% end %}
 
25
    <div class="meta">
 
26
      <a href="{{ post["permalink"] }}" class="permalink">{{ locale.format_date(post["created_time"]) }}</a>
 
27
    </div>
 
28
  </div>
 
29
</div>