Skip to content

Commit f865a70

Browse files
- fixed layout of front page photo list
- added FILE_UPLOAD_PERMISSIONS setting to avoid inconsistent permissions when large photos are uploaded
1 parent 4a19596 commit f865a70

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Diff for: media/css/layout-3.css renamed to media/css/layout-4.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,13 @@ font-color:green;
377377

378378
.recent_photos li {
379379
height: 100px;
380-
display: block !important;
380+
display: inline !important;
381381
margin: 2px !important;
382382
padding: 0 !important;
383383
list-item-type: none;
384+
display: inline;
384385
}
385386

387+
.recent_photos li a { text-decoration: none; }
388+
389+

Diff for: settings.py

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
# trailing slash.
4141
# Examples: "http://foo.com/media/", "/media/".
4242
ADMIN_MEDIA_PREFIX = '/admin_media/'
43+
44+
# ensure large uploaded files end up with correct permissions. See
45+
# http://docs.djangoproject.com/en/dev/ref/settings/#file-upload-permissions
46+
47+
FILE_UPLOAD_PERMISSIONS = 0644
48+
4349

4450
# List of callables that know how to import templates from various sources.
4551
TEMPLATE_LOADERS = (

Diff for: templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>{% trans "FixMyStreet Canada" %} - {% block title %}{% trans "Home" %}{% endblock %}</title>
66
<link rel="stylesheet" type="text/css" href="/media/css/global.css" />
77
<link rel="stylesheet" type="text/css" href="/media/css/typography.css" />
8-
<link rel="stylesheet" type="text/css" href="/media/css/layout-3.css" />
8+
<link rel="stylesheet" type="text/css" href="/media/css/layout-4.css" />
99
<link rel="stylesheet" type="text/css" href="/media/css/colors.css" />
1010
{% block css %}{% endblock %}
1111
{% block script %}{% endblock %}

0 commit comments

Comments
 (0)