Page layout thumbnails are missing in languages that have changed the layout lang strings
Bug #1461040 reported by
Peter Groißböck
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
15.04 |
Fix Released
|
High
|
Robert Lyon | ||
15.10 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In 15.04 there are noch pictures of the layouts visible anymore. The layouts are still there, but you can't see what layout it is because of the missing picture. Windows. Firefox 38.0.1.
Changed in mahara: | |
importance: | Critical → High |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Hi Peter,
In Mahara 15.04.1 the layout 'images' are not image files anymore but instead are Scalable Vector Graphics (SVG) rendered directly by the browser.
I've checked firefox 38.0.1 on windows and I can see the layout 'images'
If you do a view of the source code for the layout page do you see code similar to this: ="titlelid556e7 781ec001 desclid556e7781 ec001" height="48" width="76" role="img" xmlns="http:// www.w3. org/2000/ svg"> e7781ec001" >Layout preview image</title> 7781ec001" >67-33< /desc>
<svg aria-labelledby
<title id="titlelid556
<desc id="desclid556e
<rect class="layout1" height="48" width="48.91" y="0" x="0"/><rect class="layout1" height="48" width="24.09" y="0" x="51.91"/>
</svg>
The colours for these come from the theme/raw/ static/ style/style. css file and the .layoutthumb rect.layout0 and .layoutthumb rect.layout1 styles in particular.
Are you able to check if those styles are being applied to the <rect> tag?
Cheers
Robert