home » zplus/freepost.git
ID: 25f188ef0d22cb1a24143ef5aa5dd0a943c99ff4
99 lines — 3K — View raw


{% include 'header.twig' %}

{% if profile == 'private' %}

    <form action="" method="post">
        <table class="user">
            <tr>
                <td>
                    User
                </td>
                <td>
                    {{ user.name }}
                    
                    <div><a href="{{ 'user_activity/posts'|docroot }}">Your posts</a></div>
                    <div><a href="{{ 'user_activity/comments'|docroot }}">Your comments</a></div>
                    <div><a href="{{ 'user_activity/replies'|docroot }}">Replies to your comments</a></div>
                </td>
            </tr>
            
            <tr>
                <td>
                    Since
                </td>
                <td>
                {{ user.registered|date("F, jS Y H:i") }} ({{ user.registered|ago }})
                </td>
            </tr>
                
            <tr>
                <td>
                    About
                </td>
                <td>
                    <textarea name="about" class="form-control">{{ user.about }}</textarea>
                </td>
            </tr>
            
            <tr>
                <td>
                    Email
                </td>
                <td>
                    <input type="text" name="email" class="form-control" value="{{ user.email }}" />
                    <em>Required if you wish to change your password</em>
                    {#
                    <p>
                        <label>
                            <input type="checkbox" name="email_notifications" {{ user.email_notifications ? 'checked="checked"' }} />
                            Send notifications via email
                        </label>
                    </p>
                    #}
                </td>
            </tr>
            
            <tr>
                <td>
                </td>
                <td>
                    <input type="submit" name="update" value="Update" class="button button_info" />
                </td>
            </tr>
        </table>
    </form>
    
{% else %}

    <table class="user">
        <tr>
            <td>
                User
            </td>
            <td>
                {{ other_user.username }}
            </td>
        </tr>

        <tr>
            <td>
                Since
            </td>
            <td>
                {{ other_user.registered|date("F, jS Y H:i") }} ({{ other_user.registered|ago }})
            </td>
        </tr>

        <tr>
            <td>
                About
            </td>
            <td>
                {{ other_user.about|markdown|raw }}
            </td>
        </tr>
    </table>

{% endif %}

{% include 'footer.twig' %}