diff --git a/core/static/core/img/sas.jpg b/core/static/core/img/sas.jpg new file mode 100644 index 00000000..b1990154 Binary files /dev/null and b/core/static/core/img/sas.jpg differ diff --git a/core/static/core/style.css b/core/static/core/style.css index 4c67f11d..e09009c0 100644 --- a/core/static/core/style.css +++ b/core/static/core/style.css @@ -307,6 +307,42 @@ textarea { display: inline; } +/*------------------------------SAS------------------------------------*/ +.album { + display: inline-block; + border: solid 1px black; + text-align: center; + padding: 5px; + width: 200px; + height: 133px; + background: #eee; + box-shadow: black 2px 2px 10px; + margin: 10px; +} + +.album img { + max-height: 100px; +} + +.picture { + display: inline-block; + border: solid 1px black; + width: 150px; + height: 100px; + margin: 5px; + background: #eee; + box-shadow: grey 2px 2px 5px; + padding: 2px; + vertical-align: middle; +} + +.picture img { + max-width: 100%; + max-height: 100px; + display: block; + margin: auto; +} + /*--------------------------------FOOTER-------------------------------*/ footer{ text-align: center; @@ -366,3 +402,5 @@ label { height: 100%; vertical-align: middle; } + + diff --git a/core/templates/core/user_pictures.jinja b/core/templates/core/user_pictures.jinja index 268edaed..df54dd0c 100644 --- a/core/templates/core/user_pictures.jinja +++ b/core/templates/core/user_pictures.jinja @@ -7,15 +7,18 @@ {% block content %} {% for r in user.pictures.exclude(picture=None).values('user__pictures__picture__parent').distinct() %} -{% set album = user.pictures.filter(picture__parent=r['user__pictures__picture__parent']).first().picture.parent %} -