[4.0] Correct hits count icon in article info#21018
Conversation
|
Just a thought. Wouldn't it better to use generic |
|
Sure, but that should be subject of another PR. This one here just corrects it consistently with other icons in current 4.0-dev. |
|
There is a major problem here, you are using a class of font awesome but the layout is not including the dependency (eg the css that loads the font awesome). So you re expecting that font awesome is already loaded, which bring us to: Obviously we need a better way to deal with the icons and this has been already discussed: joomla/40-backend-template#441 (comment) |
|
Sure, but that's as I said not subject of this PR. It changes nothing on using or not using font awesome, it just corrects the used class name in the same way as it is already used in other code. |
|
As it stands right now, this PR is correct. |
|
I have tested this item ✅ successfully on cf5a6c6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21018. |
|
@wilsonge Please review this PR here and close it if necessary. |
|
@dgrammatiko Well as I said, for current 4.0-dev code it is correct, it makes the icon be shown while currently it is not show. But you may be right that this PR is useless because things will be changed anyway. So I leave it up to George to decide. |
|
@dgrammatiko this PR is fine as it just fixes currently existing issue. Changing the way icons are used is a different topic and out of scope of this PR. |
|
So we will have to come back and redo this... Anyways obviously the class is wrong but would be great if instead of the |
|
@dgrammatiko The screenshots of my findstr commands in the description of this PR shows that this has to be changed on other places, too. All the found usages of |
|
instead of silly little arguments the time could have been spent getting a pr with working svg |
|
I have tested this item ✅ successfully on cf5a6c6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21018. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21018. |
Pull Request for new issue.
Summary of Changes
In article info no eye icon is shown left beside the hits counter. See screenshot in section "Actual result" below.
The reason is that in file
layouts/joomla/content/info_block/hits.phpthe wrong classfa-eye-ois used.Correct would be
fa-eye, see screenshot in section "Expected result" below.The following screenshot of
findstrcommands issued in a Windows command shell shows following:fa-eye-oislayouts/joomla/content/info_block/hits.php, see 1st findstr command.fa-eyeis used without anything appended to the end, see 2nd command.Testing Instructions
Reviev by a maintainer should be enough, but if not:
Use current 4.0-dev with Casiopeia template and no overrides for com_content or layouts/joomla/content.
Show article info including the hits counter in some article.
Check icon beside hits counter and inspect html.
Expected result
Actual result
Documentation Changes Required
No.