Actions
Patch #26125
closedUnify form#query_form on calendar/gantt views with issues/spent time views
Patch #26125:
Unify form#query_form on calendar/gantt views with issues/spent time views
Description
I noticed a difference between the rendering of the query filter forms on the issues & spent time views and the query filter forms on the calendar and gantt views. I fixed it with the following changes:
- 1. Fix HTML structure of form#query_form on calendar/gantt views.
This unifies the HTML structure of the query form on the calendars/show
and gantts/show views to be the same as it is currently for the issues
and spent time views, which were themself unified into the new
queries/_query_form partial in r15649. - 2. Fix source indentation and newline usage.
This unifies the source layout of the query form on the calendars/show
and the gantts/show views with the queries/_query_form partial. - 3. Unify form#query_form structure on calendar/gantt views.
This:- moves the p with inline style on the calendar view (which
wraps the navigation buttons) out of div#query_form_content
and adds the contextual class to the element to unify this
with the gantt view (and to remove the inline style from
the element now that it's styled through a stylesheets'
style [.contextual in fact]); - restores the 12px font-size of the calendar navigation
buttons; - increases the font-size of the gantt zoom buttons to 12px;
- increases the margin of the calendar navigation and gantt
zoom buttons to 12px 0px.
- moves the p with inline style on the calendar view (which
- 4. Add test assertions to the four controller test cases.
To make the changes a bit more visual, here some ASCII and image graphics:
| view | was | becomes |
|---|---|---|
| issues | ||
|
|
|
| spenttime | ||
|
|
|
| calendar | ||
|
|
|
| gantt | ||
|
|
I'll attach four patches implementing these changes. This patch serial, against current source:/trunk@16643, is produced using git format-patch which makes the individual patches apply-able using "patch -p1 < 0001-...".
Environment:
Files
Actions