home.html 4.03 KB
{% extends 'base.html'%}
{% load staticfiles %}
{% block content %}
    <div class="frame">
        <!-- //header -->
        <div class="container">
            <!-- //nav -->
            <div class="content">
                <h2>즐겨찾기</h2>
                <table cellspacing=1 width=700 border=1>
                    <tr>
                        <td width=300><p align=center>제목</p></td>
                        <td width=350><p align=center>등록 시간</p></td>
                        <td width=350><p align=center>최근 열람 시간</p></td>
                        <td width=200><p align=center>즐겨찾기</p></td>
                        <td width=200><p align=center>파일 크기</p></td>
                        <td width=200><p align=center>파일 삭제</p></td>
                    </tr>
                    {% if favorList %}
                        <ul>
                            {% for fileRow in favorList %}
                                <tr>
                                    <td width=50><a href="/download/{{ fileRow.bucketPath }}{{ fileRow.title }}//{{ fileRow.title }}//{{ fileRow.bucketPath }}" align=center>{{ fileRow.title }}</a></td>
                                    <td width=100><p href="", align=center>{{ fileRow.uploaded_TM }}</p></td>
                                    <td width=100><p  href="", align=center>{{ fileRow.last_view_TM }}</p></td>
                                    <td width=100><a  href="/changeFavor/{{ fileRow.bucketPath }}/{{ fileRow.title }}" align=center>{{ fileRow.isFavor }}</a></td>
                                    <td width=100><p  href="", align=center>{{ fileRow.fileSize }}</p></td>
                                    <td width=100><a  href="/delete/{{ fileRow.bucketPath }}{{ fileRow.title }}//{{ fileRow.title }}//{{ fileRow.bucketPath }}" align=center>파일 삭제</a></td>

                                </tr>
                            {% endfor %}
                        </ul>
                    {% else %}
                        <p>No File.</p>
                    {% endif %}
                </table>

                <h2>최근 항목</h2>
                <table cellspacing=1 width=700 border=1>
                    <tr>
                        <td width=300><p align=center>제목</p></td>
                        <td width=350><p align=center>등록 시간</p></td>
                        <td width=350><p align=center>최근 열람 시간</p></td>
                        <td width=100><p align=center>즐겨찾기</p></td>
                        <td width=100><p align=center>파일 크기</p></td>
                        <td width=100><p align=center>파일 삭제</p></td>
                    </tr>
                    {% if recentList %}
                        <ul>
                            {% for fileRow in recentList %}
                                <tr>
                                    <td width=50><a href="/download/{{ fileRow.bucketPath }}{{ fileRow.title }}//{{ fileRow.title }}//{{ fileRow.bucketPath }}" align=center>{{ fileRow.title }}</a></td>
                                    <td width=100><p href="", align=center>{{ fileRow.uploaded_TM }}</p></td>
                                    <td width=100><p  href="", align=center>{{ fileRow.last_view_TM }}</p></td>
                                    <td width=100><a  href="/changeFavor/{{ fileRow.bucketPath }}/{{ fileRow.title }}" align=center>{{ fileRow.isFavor }}</a></td>
                                    <td width=100><p  href="", align=center>{{ fileRow.fileSize }}</p></td>
                                    <td width=100><a  href="/delete/{{ fileRow.bucketPath }}{{ fileRow.title }}//{{ fileRow.title }}//{{ fileRow.bucketPath }}" align=center>파일 삭제</a></td>

                                </tr>
                            {% endfor %}
                        </ul>
                    {% else %}
                        <p>No File.</p>
                    {% endif %}
                </table>
            </div>
        </div>
        <!-- //container -->
    </div>
    <!-- //frame -->
{% endblock %}