123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <div class="user w-100" style="border: 1px solid black; background-color: white; margin: 6px 0; padding: 4px;">
-
- <div style="float: right; margin-top: 0; text-align: right">
- {% if user.profile_image_url %}
- <img style="float: right; margin-left: 4px;" src="{{ user.profile_image_url }}">
- {% endif %}
- {% if user.username %}
- <pre style="display: inline; color: #0f0f0f; font-weight: bold; ">@{{ user.username }}</pre>
- <br>
- {% endif %}
- <span><pre style="display: inline; color: #0f0f0f;">{{ user.id }}</pre></span>
-
- </div>
-
- <p style="margin-top: 0">
-
-
- {% if user.actions and user.actions.view_profile %}
- {% with view_profile=user.actions.view_profile %}
- <a href="{{ url_for( view_profile.route, **view_profile.route_params ) }}">
- {% endwith %}
- {% elif user.url %}
- <a href="{{ user.url }}">
- {% else %}
- <a href="{{ url_for('twitter_v2_facade.get_profile_html', user_id=user.id) }}">
- {% endif %}
- <strong>{{ user.name }}</strong></a>
-
- {% if user.verified %}
- <small>[verified]</small>
- {% endif %}
-
- {% if user.protected %}
- <small>[protected]</small>
- {% endif %}
- </p>
-
-
- {% if user.description %}
- <div>
-
- {{ user.description }}
- </div>
- {% endif %}
-
- {% if user.total_count %}
- {# this is getting into the new Collection territory, which mirrored User #}
- <p>
- {{ user.total_count }} items.
- </p>
- {% endif %}
-
-
- {% if user.pinned_tweet_id %}
- <div>
- <p>Pinned tweet:</p>
- <div style="border: 1px solid black">{{ user.pinned_tweet_id }}</div>
- </div>
- {% endif %}
-
- <dl>
- {% if user.created_at %}
- <dt>Member since</dt>
- <dd>{{ user.created_at }}</dd>
- {% endif %}
-
- {% if user.website %}
- <dt>Website</dt>
- <dd><a href="{{ user.website }}">{{ user.website }}</a></dd>
- {% endif %}
-
- {% if user.location %}
- <dt>Location</dt>
- <dd>{{ user.location }}</dd>
- {% endif %}
-
- {% if user.public_metrics %}
-
- {% if user.public_metrics.tweet_count %}
- <dt>Tweets</dt>
- <dd>{{ user.public_metrics.tweet_count }}</dd>
- {% endif %}
-
- {% if user.public_metrics.followers_count %}
- <dt>Followers</dt>
- <dd>{{ user.public_metrics.followers_count }}</dd>
- {% endif %}
-
- {% if user.public_metrics.following_count %}
- <dt>Following</dt>
- <dd>{{ user.public_metrics.following_count }}</dd>
- {% endif %}
-
- {% if user.public_metrics.listed_count %}
- <dt>Listed</dt>
- <dd>{{ user.public_metrics.listed_count }}</dd>
- {% endif %}
-
- {% endif %}
- </dl>
-
- </div>
|