? Success

User tests: Successful: Unsuccessful:

avatar matrikular
matrikular
14 Feb 2016

While this PR doen't really fix an issue with the current implementation it aims to add minor improvements to the layout.

Speaking of which

  • removing obsolete whitespace
  • using JHtml::image so that in theory if one overrides that method e.g. via a plugin the menu item image will be affected as well
  • getting rid of the else block

Test Instructions

  • Create a menu item of the type *System Links - Menu Heading" in a menu of your choice.
  • Give it a descriptive title e.g. Shenanigans
  • Inspect the sites HTML Markup for that link within your prefered browser.

Before the patch you should see something like (Protostar Template without overrides):
<span class="nav-header" >Shenanigans</span>

After the patch it should read:
<span class="nav-header">Shenanigans</span>

To really make sure that everything works as before, one could play arround with different options from that menu item e.g. Link Title Attribute, Link CSS Style, Link Image or Add Menu Title.

Given that a comment in the default_separator.php file reads:
"Note. It is important to remove spaces between elements"

I figured now might be a good idea to change that layout as well. So, instead of the class attribute "nav-header" one would expect "separator".

Edit: I've added the whitespace between the css class and the suffix to keep this PR b/c (thx @bembelimen)

It seems that the method of how to handle suffixes needs to be re-evaluated in general. Maybe in a different PR.

avatar matrikular matrikular - open - 14 Feb 2016
avatar matrikular matrikular - change - 14 Feb 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2016
Labels Added: ?
avatar brianteeman
brianteeman - comment - 17 Feb 2016

If you want people to test this it really will help if you at least tell them where they should be lookign to see that nothing has changed


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9122.

avatar matrikular matrikular - change - 17 Feb 2016
Title
Remove obsolete whitespace and minor refactoring
Remove obsolete whitespace and minor refactoring in mod_menu layouts
avatar matrikular matrikular - change - 17 Feb 2016
Title
Remove obsolete whitespace and minor refactoring
Remove obsolete whitespace and minor refactoring in mod_menu layouts
avatar bembelimen
bembelimen - comment - 18 Feb 2016

@test works as described

avatar renekorss renekorss - test_item - 18 Feb 2016 - Tested successfully
avatar renekorss
renekorss - comment - 18 Feb 2016

I have tested this item :white_check_mark: successfully on 036110f

Testted with link title attribute, css style, image and menu title.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9122.

avatar chmst
chmst - comment - 18 Feb 2016

@test works as described

avatar renekorss
renekorss - comment - 18 Feb 2016

@chmst You should mark your test result in J!Tracker.

avatar brianteeman brianteeman - alter_testresult - 18 Feb 2016 - chmst: Tested successfully
avatar brianteeman brianteeman - change - 18 Feb 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 18 Feb 2016

I updated the test results and have now set this to RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9122.

avatar joomla-cms-bot joomla-cms-bot - change - 18 Feb 2016
Labels Added: ?
avatar chmst
chmst - comment - 18 Feb 2016

thank you ;)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9122.

avatar wilsonge wilsonge - close - 18 Feb 2016
avatar joomla-cms-bot joomla-cms-bot - close - 18 Feb 2016
avatar wilsonge wilsonge - reference | f30ce73 - 18 Feb 16
avatar wilsonge wilsonge - merge - 18 Feb 2016
avatar wilsonge wilsonge - close - 18 Feb 2016
avatar wilsonge wilsonge - change - 18 Feb 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-02-18 19:43:24
Closed_By wilsonge
avatar wilsonge wilsonge - change - 18 Feb 2016
Milestone Added:
avatar joomla-cms-bot joomla-cms-bot - change - 18 Feb 2016
Labels Removed: ?
avatar wilsonge
wilsonge - comment - 18 Feb 2016

Merged - thanks guys :)

Add a Comment

Login with GitHub to post a comment