From 6a8851996ca82c8a5d7a277259405ffd40176423 Mon Sep 17 00:00:00 2001 From: Brian Wood <legion.the.unforgiven@gmail.com> Date: Tue, 22 Apr 2014 00:54:58 -0600 Subject: [PATCH] Updated responsiveness and libItem --- project/static/css/style.css | 2 +- project/templates/library/libraryItem.html | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/project/static/css/style.css b/project/static/css/style.css index 3ddc812..6565986 100644 --- a/project/static/css/style.css +++ b/project/static/css/style.css @@ -94,7 +94,7 @@ span.vert{ font-size: 22px; } -@media (max-width: 480px) { +@media (max-width: 568px) { span.vert { display: inline-block; } diff --git a/project/templates/library/libraryItem.html b/project/templates/library/libraryItem.html index 0e58385..306f754 100644 --- a/project/templates/library/libraryItem.html +++ b/project/templates/library/libraryItem.html @@ -6,15 +6,18 @@ <div class="col-xs-12 col-sm-3 col-md-2"> <img src="{{ item.poster }}" style="max-width: 180px;" alt="{{ item.title }}"> <h3>{{ item.title }}</h3> + {% if loan != None %} + Loaned to: {{ loan.borrower_email }}<br/> + Due back: {{ loan.expected_return_date.strftime('%m-%d-%Y') }} + {% endif %} <div class="btn-group"> {% if loan == None %} <button type="button" class="btn btn-default btn-small lend-movie" data-toggle="modal" data-target="#loan-form" data-id='{{ item.id }}'>Lend</button> {% else %} - Loaned to: {{ loan.borrower_email }}<br/> - Due back: {{ loan.expected_return_date.strftime('%m-%d-%Y') }} <button type="button" class="btn btn-default btn-small return-movie" data-toggle="modal" data-target="#return-form" data-id='{{ item.id }}'>Return</button> <button type="button" class="btn btn-default btn-small reminder" data-toggle="modal" data-target="#reminder-form" data-id='{{ item.id }}'>Reminder</button> {% endif %} + {% if library.name != "Master" or loan == None %} <button type="button" class="btn btn-default btn-small remove-movie" data-id='{{ index }}'>Remove</button> {% endif %} -- GitLab