~fabrixxm/activist

cae2c58292d123a9db2927d6ef014a477b4ebb4c — fabrixxm a month ago da4d155
ui: show reply button only to logged in user
1 files changed, 5 insertions(+), 5 deletions(-)

M activist/templates/f/actions.tpl.j2
M activist/templates/f/actions.tpl.j2 => activist/templates/f/actions.tpl.j2 +5 -5
@@ 24,10 24,6 @@
        class="{{ class('btn btn-link', { 'bg-secondary': liked }) }}">
            {{ likes if likes else "" }} <i class="icon i-star"></i>
    </button>
{% else %}
    <small title="Reshares">{{ reshares if reshares else ""  }} <i class="icon i-rotate-ccw-square"></i></small>
    <small title="Likes">{{ likes if reshares else "" }} <i class="icon i-star"></i></small>
{% endif %}
    <a href="{{ url_for('new', uri=obj.id|urlsafe) }}" title="Reply" class="btn-btn-link" 
            hx-get="{{ url_for('new', uri=obj.id|urlsafe) }}"
            hx-on::after-request="location.hash = '#new-modal'"


@@ 35,9 31,13 @@
        <i class="icon i-reply"></i>
    </a>

{% else %}
    <small title="Reshares">{{ reshares if reshares else ""  }} <i class="icon i-rotate-ccw-square"></i></small>
    <small title="Likes">{{ likes if reshares else "" }} <i class="icon i-star"></i></small>
{% endif %}

    <a href="{{ url_for('thread', uri=obj.id|urlsafe) }}"  title="Comments" class="btn  btn-link">
        {{ conversation - 1 if conversation > 1 else "" }} <i class="icon i-message-circle"></i>
    </a>

    
</form>
\ No newline at end of file