Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
concrexit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
thalia
concrexit
Commits
5ef05612
Commit
5ef05612
authored
Feb 27, 2019
by
Luko van der Maas
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/merchandise-thumbnails' into 'master'
Thumbnail the merchandise images See merge request
!1178
parents
3579225e
d6b3b1fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
website/merchandise/templates/merchandise/index.html
website/merchandise/templates/merchandise/index.html
+2
-3
No files found.
website/merchandise/templates/merchandise/index.html
View file @
5ef05612
{% extends 'base.html' %}
{% load staticfiles %}
{% load i18n %}
{% load staticfiles i18n thumbnail %}
{% block title %}{% trans "Merchandise" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Merchandise" %} — {{ block.super }}{% endblock %}
...
...
@@ -17,7 +16,7 @@
<div
class=
"row"
>
<div
class=
"col-12 col-md-3"
>
<img
src=
"{
{ item.image.url }}"
alt=
"{{ item.name }}"
id=
"image"
>
<img
src=
"{
% thumbnail item.image THUMBNAIL_SIZE_MEDIUM fit=False %}"
id=
"image"
alt=
"{{ item.name }}"
/
>
</div>
<div
class=
"col-12 col-md-9 pt-4 pt-md-0"
>
<h2>
{{ item.name }}
</h2>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment