From e3d1f93ca8cb528a72e1e48043b2b0e30d72e3a6 Mon Sep 17 00:00:00 2001 From: Lessica Date: Fri, 6 Apr 2018 14:53:17 +0800 Subject: [PATCH] History mode for package detail page --- .../styles/DefaultStyle/static/css/style.css | 9 +- .../templates/package/history.html | 2 +- .../templates/package/package.html | 87 +++++++++++++------ 3 files changed, 68 insertions(+), 30 deletions(-) diff --git a/WEIPDCRM/styles/DefaultStyle/static/css/style.css b/WEIPDCRM/styles/DefaultStyle/static/css/style.css index cdc90c2..7dde2c2 100644 --- a/WEIPDCRM/styles/DefaultStyle/static/css/style.css +++ b/WEIPDCRM/styles/DefaultStyle/static/css/style.css @@ -323,7 +323,8 @@ body { } .container .content .list .chart-item .download { - float: right + float: right; + user-select: none; } .container .content .list .chart-item .download a { @@ -449,7 +450,8 @@ body { .container .content .article .download { float: right; - text-align: center + text-align: center; + user-select: none; } .container .content .article .download a { @@ -1089,7 +1091,7 @@ body { margin: 30px auto -30px; width: 960px; min-height: 10px; - text-align: center + text-align: center; } .container .content .contact .card .card-wrapper { @@ -1097,6 +1099,7 @@ body { width: 100%; overflow: auto; overflow-y: hidden; + user-select: none; -webkit-overflow-scrolling: touch; } diff --git a/WEIPDCRM/styles/DefaultStyle/templates/package/history.html b/WEIPDCRM/styles/DefaultStyle/templates/package/history.html index 96d8a53..cb1c8f3 100644 --- a/WEIPDCRM/styles/DefaultStyle/templates/package/history.html +++ b/WEIPDCRM/styles/DefaultStyle/templates/package/history.html @@ -12,7 +12,7 @@

{{ version.update_logs | linebreaksbr }}

- + {% trans "View this version" %} diff --git a/WEIPDCRM/styles/DefaultStyle/templates/package/package.html b/WEIPDCRM/styles/DefaultStyle/templates/package/package.html index f0611ae..037d312 100644 --- a/WEIPDCRM/styles/DefaultStyle/templates/package/package.html +++ b/WEIPDCRM/styles/DefaultStyle/templates/package/package.html @@ -14,7 +14,8 @@ {{ package_info.c_section }} {% endif %} - {{ package_info.c_name | default:_("Untitled Package") }} + + {{ package_info.c_name | default:_("Untitled Package") }} {% endblock %} {% block content %}
@@ -37,7 +38,9 @@ {% endif %}
  • {% trans "Size" %}: {{ package_info.c_size|filesizeformat }}
  • {% if package_info.author_name %} -
  • {% trans "Author" %}: {{ package_info.author_name }}
  • +
  • {% trans "Author" %}: {{ package_info.author_name }} +
  • {% endif %}
    @@ -62,10 +65,10 @@

    @@ -83,12 +86,13 @@

    {% trans "Description" %}

    -

    {% trans "Version" %}: {{ package_info.c_version }}

    {{ package_info.created_at | date:"Y-m-d H:i" }}
    +

    {% trans "Version" %}: {{ package_info.c_version }}

    + {{ package_info.created_at | date:"Y-m-d H:i" }}

    {{ package_info.update_logs | linebreaksbr }}

    @@ -106,7 +110,9 @@

    {% trans "Screenshot" %}

      {% for photo in gallery.public %}
    • - + {{ photo.title }}
    • @@ -142,7 +148,7 @@

      {% trans "Comments" %}