add: profile and full search
This commit is contained in:
parent
b8b0ef7f21
commit
3e4ee8126a
52 changed files with 897 additions and 484 deletions
|
@ -2,7 +2,7 @@
|
|||
<title>My stacks - {{ config.name }}</title>
|
||||
{% endblock %} {% block body %} {{ macros::nav() }}
|
||||
<main class="flex flex-col gap-2">
|
||||
{{ macros::timelines_nav(selected="stacks") }} {% if user %}
|
||||
{{ macros::timelines_nav(selected="stacks") }} {% if user -%}
|
||||
<div class="card-nest">
|
||||
<div class="card small">
|
||||
<b>{{ text "stacks:label.create_new" }}</b>
|
||||
|
@ -30,7 +30,7 @@
|
|||
</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
<div class="card-nest w-full">
|
||||
<div class="card small flex items-center justify-between gap-2">
|
||||
|
|
|
@ -25,13 +25,13 @@
|
|||
<select onchange="save_privacy(event)">
|
||||
<option
|
||||
value="Private"
|
||||
selected="{% if stack.privacy == 'Private' %}true{% else %}false{% endif %}"
|
||||
selected="{% if stack.privacy == 'Private' -%}true{% else %}false{%- endif %}"
|
||||
>
|
||||
Private
|
||||
</option>
|
||||
<option
|
||||
value="Public"
|
||||
selected="{% if stack.privacy == 'Public' %}true{% else %}false{% endif %}"
|
||||
selected="{% if stack.privacy == 'Public' -%}true{% else %}false{%- endif %}"
|
||||
>
|
||||
Public
|
||||
</option>
|
||||
|
@ -48,13 +48,13 @@
|
|||
<select onchange="save_mode(event)">
|
||||
<option
|
||||
value="Include"
|
||||
selected="{% if stack.mode == 'Include' %}true{% else %}false{% endif %}"
|
||||
selected="{% if stack.mode == 'Include' -%}true{% else %}false{%- endif %}"
|
||||
>
|
||||
Include
|
||||
</option>
|
||||
<option
|
||||
value="Exclude"
|
||||
selected="{% if stack.mode == 'Exclude' %}true{% else %}false{% endif %}"
|
||||
selected="{% if stack.mode == 'Exclude' -%}true{% else %}false{%- endif %}"
|
||||
>
|
||||
Exclude
|
||||
</option>
|
||||
|
@ -71,13 +71,13 @@
|
|||
<select onchange="save_sort(event)">
|
||||
<option
|
||||
value="Created"
|
||||
selected="{% if stack.sort == 'Created' %}true{% else %}false{% endif %}"
|
||||
selected="{% if stack.sort == 'Created' -%}true{% else %}false{%- endif %}"
|
||||
>
|
||||
Created
|
||||
</option>
|
||||
<option
|
||||
value="Likes"
|
||||
selected="{% if stack.sort == 'Likes' %}true{% else %}false{% endif %}"
|
||||
selected="{% if stack.sort == 'Likes' -%}true{% else %}false{%- endif %}"
|
||||
>
|
||||
Likes
|
||||
</option>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<span>{{ stack.name }}</span>
|
||||
</div>
|
||||
|
||||
{% if user and user.id == stack.owner %}
|
||||
{% if user and user.id == stack.owner -%}
|
||||
<a
|
||||
href="/stacks/{{ stack.id }}/manage"
|
||||
class="button quaternary small"
|
||||
|
@ -18,23 +18,23 @@
|
|||
{{ icon "pencil" }}
|
||||
<span>{{ text "general:action.manage" }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
<div class="card w-full flex flex-col gap-2">
|
||||
{% if list|length == 0 %}
|
||||
{% if list|length == 0 -%}
|
||||
<p>No posts yet! Maybe <a href="/stacks/{{ stack.id }}/manage#/users">add a user to this stack</a>!</p>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
{% for post in list %}
|
||||
{% if post[2].read_access == "Everybody" %}
|
||||
{% if post[0].context.repost and post[0].context.repost.reposting %}
|
||||
{% if post[2].read_access == "Everybody" -%}
|
||||
{% if post[0].context.repost and post[0].context.repost.reposting -%}
|
||||
{{ components::repost(repost=post[3], post=post[0], owner=post[1], secondary=true, community=post[2], show_community=true) }}
|
||||
{% else %}
|
||||
{{ components::post(post=post[0], owner=post[1], question=post[4], secondary=true, community=post[2]) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{% endfor %}
|
||||
|
||||
{{ components::pagination(page=page, items=list|length) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue