Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forum - user image displayed #1113

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 3 additions & 54 deletions src/static/riot/profiles/profile_detail.tag
Original file line number Diff line number Diff line change
@@ -1,62 +1,11 @@
<profile-detail>
<!-- ---------------------------------------- HTML ---------------------------------------- -->
<!-- HTML -->
<div class="background">
<div id="profile_wrapper" class="ui two column doubling stackable grid container">
<div class="column">
<div if="{!selected_user.photo}"><img id="avatar" class="ui centered small rounded image" src="/static/img/user-avatar.png"></div>
<div if="{selected_user.photo}"><img id="avatar" class="ui centered small rounded image" src="{selected_user.photo}"></div>

<!-- &lt;!&ndash; Competition Divider &ndash;&gt;-->
<!-- <div class="ui horizontal divider">Competitions</div>-->

<!-- &lt;!&ndash; Competition Cards &ndash;&gt;-->
<!-- <div class="ui fluid card">-->
<!-- <div class="comp_card center aligned image">-->
<!-- <div class="comp_header center aligned header content">-->
<!-- <div class="comp_name">Competition Name</div>-->
<!-- <img class="ui centered circular image"-->
<!-- src="http://via.placeholder.com/50x50">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="content">-->
<!-- <div class="description">-->
<!-- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci asperiores atque-->
<!-- distinct...</p>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="right aligned extra content">-->
<!-- <a class="status">-->
<!-- <i class="exchange icon"></i>-->
<!-- In Progress-->
<!-- </a>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="ui fluid card">-->
<!-- <div class="comp_card center aligned image">-->
<!-- <div class="comp_header center aligned header content">-->
<!-- <div class="comp_name">Competition Name</div>-->
<!-- <img class="ui centered circular image"-->
<!-- src="http://via.placeholder.com/50x50">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="content">-->
<!-- <div class="description">-->
<!-- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci asperiores atque-->
<!-- distinct...</p>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="right aligned extra content">-->
<!-- <a class="status">-->
<!-- <i class="exchange icon"></i>-->
<!-- In Progress-->
<!-- </a>-->
<!-- </div>-->
<!-- </div>-->
<!-- <button class="ui basic fluid button">-->
<!-- See More Competitions...-->
<!-- </button>-->
<!-- </div>-->

<!-- Competition Divider -->
<div class="ui horizontal divider">Organizations</div>

Expand Down Expand Up @@ -131,9 +80,9 @@
</div>
<script>
self.selected_user = selected_user
console.log('orgs', self.selected_user.organizations)
</script>
<!------------------------------------------ CSS Styling ------------------------------------>

<!-- CSS Styling -->
<style type="text/stylus">
:scope
margin-top 20px
Expand Down
5 changes: 2 additions & 3 deletions src/templates/forums/thread_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
<div class="post-header">
<div class="post-user">
{% if post.posted_by.photo %}
<img class="post-user-img" src="/static/img/user-avatar.png">
<!-- <img class="post-user-img" src="{{ post.posted_by.photo }}"> -->
<img class="post-user-img" src="{{ post.posted_by.photo.url }}">
{% else %}
<img class="post-user-img" src="/static/img/user-avatar.png">
{% endif %}
</div>
<div class="post-user-name-date">
<div class="poster-name">{{ post.posted_by }}</div>
<div class="poster-name"><a href="/profiles/user/{{ post.posted_by }}" target="_blank">{{ post.posted_by }}</a></div>
<div class="posted-date">{{ post.date_created }}</div>
</div>
<div class="post-actions">
Expand Down