2023-03-01 13:09:15 +00:00
{% extends "base.html.j2" %}
{% import "materialize/wtf.html.j2" as wtf %}
2023-03-02 14:08:50 +00:00
{% block main_attribs %} class="social-area-color-lighten" {% endblock main_attribs %}
2023-03-01 13:09:15 +00:00
{% block page_content %}
<div class="container">
<div class="row">
<div class="col s12">
<h1 id="title">{{ title }}</h1>
</div>
<div class="col s12 m3 push-m9">
<div class="center-align">
<p class="hide-on-small-only"> </p>
<p class="hide-on-small-only"> </p>
2023-03-02 14:08:50 +00:00
<a class="btn-floating btn-large btn-scale-x2 waves-effect waves-light social-area-color-darken">
2023-03-01 13:09:15 +00:00
<i class="left material-icons">group</i>
</a>
</div>
</div>
<div class="col s12 m9 pull-m3">
2023-03-02 14:08:50 +00:00
<div class="card social-area-color-border-darken" style="border-top: 10px solid">
2023-03-01 13:09:15 +00:00
<div class="card-content">
<div class="row">
<div class="col s12">
<div class="card-panel z-depth-0">
<span class="card-title"><i class="left material-icons">layers</i>Your social area</span>
<p>Here you can network with your team and other users. You can find corpora that are public and request them or just see what other users are working on.</p>
</div>
</div>
</div>
</div>
</div>
</div>
2023-03-16 08:58:56 +00:00
<div class="col s12" id="public-users">
<h3>Public Users</h3>
2023-03-01 13:09:15 +00:00
<p>Find other users and see what corpora they have made public.</p>
<div class="card">
<div class="card-content">
2023-10-25 14:21:30 +00:00
<div id="public-user-list"></div>
2023-03-01 13:09:15 +00:00
</div>
</div>
</div>
2023-03-16 08:58:56 +00:00
<div class="col s12" id="public-corpora">
2023-03-01 13:09:15 +00:00
<h3>Public Corpora</h3>
<p>Find public corpora.</p>
<div class="card">
<div class="card-content">
<span class="card-title">Public Corpora</span>
2023-10-25 14:21:30 +00:00
<div id="public-corpus-list"></div>
2023-03-01 13:09:15 +00:00
</div>
</div>
</div>
</div>
</div>
{% endblock page_content %}
{% block scripts %}
{{ super() }}
<script>
2023-10-25 14:21:30 +00:00
let publicUserListElement = document.querySelector('#public-user-list');
let publicUserList = new ResourceLists.PublicUserList(publicUserListElement);
publicUserList.add(
2023-03-28 12:11:46 +00:00
[
{% for user in users %}
{{ user.to_json_serializeable(relationships=True, filter_by_privacy_settings=True)|tojson }},
{% endfor %}
]
);
2023-10-25 14:21:30 +00:00
let publicCorpusListElement = document.querySelector('#public-corpus-list');
let publicCorpusList = new ResourceLists.PublicCorpusList(publicCorpusListElement);
2023-03-28 12:11:46 +00:00
publicCorpusList.add(
[
{% for corpus in corpora %}
2023-06-06 13:39:47 +00:00
{{ corpus.to_json_serializeable(backrefs=True, relationships=True)|tojson }},
2023-03-28 12:11:46 +00:00
{% endfor %}
]
);
2023-03-01 13:09:15 +00:00
</script>
{% endblock scripts %}