Moodle

<br /> between times in upcoming events block makes styling difficult.

Details

  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE

Description

The block places a <br /> between the start and finish times of the event. This makes theming this block using CSS difficult. For example, left justifying the text and right justifying the times is currently impossible, as is putting the whole event on one line if desired.

Activity

Hide
Martin Dougiamas added a comment -

I'm assigning this bug to moodle.com. We are using it as a test bug for a couple of potential new developers.

Here's the procedure:

1) Install Moodle 1.9.6 locally (http://download.moodle.org)
2) "turn editing on" on the home page for Moodle
3) Add the "Calendar" and "Upcoming events" blocks there.
4) Go into the calendar and add some events in the next week or so.
5) In the "Upcoming events" block you should see those events.
6) Examine the HTML - you should see naughty little <br /> as described above.
7) Find the code where they are produced and replace with better HTML
8) Add CSS to the standard theme to make the layout look exactly like before (if necessary).
9) Email a diff for the lot to support@moodle.com! Ask questions if you need to! Cheers!

Show
Martin Dougiamas added a comment - I'm assigning this bug to moodle.com. We are using it as a test bug for a couple of potential new developers. Here's the procedure: 1) Install Moodle 1.9.6 locally (http://download.moodle.org) 2) "turn editing on" on the home page for Moodle 3) Add the "Calendar" and "Upcoming events" blocks there. 4) Go into the calendar and add some events in the next week or so. 5) In the "Upcoming events" block you should see those events. 6) Examine the HTML - you should see naughty little <br /> as described above. 7) Find the code where they are produced and replace with better HTML 8) Add CSS to the standard theme to make the layout look exactly like before (if necessary). 9) Email a diff for the lot to support@moodle.com! Ask questions if you need to! Cheers!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: