Skip to content

Admin status module updates#10918

Merged
rdeutz merged 10 commits intojoomla:stagingfrom
C-Lodder:adminstatus
Aug 13, 2016
Merged

Admin status module updates#10918
rdeutz merged 10 commits intojoomla:stagingfrom
C-Lodder:adminstatus

Conversation

@C-Lodder
Copy link
Copy Markdown
Member

@C-Lodder C-Lodder commented Jun 23, 2016

Pull Request for Issue #10910

Summary of Changes

  • Removes "envelope" icon
  • Adds "Message(s)" label after the count badge
  • Adds separators in between each button group

Testing Instructions

Very simple. Apply the patch and match again the screenshots below:

Before:
before

After:
after

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-staging labels Jun 23, 2016
@MATsxm
Copy link
Copy Markdown

MATsxm commented Jun 23, 2016

I have tested this item ✅ successfully on d5320ba

👍

I love this way. Thanks


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

@MATsxm
Copy link
Copy Markdown

MATsxm commented Jun 23, 2016

Side note, see with Multilingual Sites...
Is there a way for a "conditional" separator?
89c104d074f864ad3b6624fa5a3c5439

@joomla-cms-bot
Copy link
Copy Markdown

This PR has received new commits.

CC: @MATsxm


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

@C-Lodder
Copy link
Copy Markdown
Member Author

@MATsxm - done ;)

@andrepereiradasilva
Copy link
Copy Markdown
Contributor

I have tested this item 🔴 unsuccessfully on 73aff5a

doesn't work on RTL languages (Arabic for instance).

also it seems generatecss.php has not run to generate the css from less files.


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

. '<span class="icon-envelope"></span>'
. '<span class="badge' . $active . '">' . $unread . '</span>'
. '<span class="badge' . $active . '">' . $unread . '</span> '
. JText::plural('MOD_STATUS_MESSAGES_LABEL', $unread)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you look at removing the space please so that the link is not " messages" but "messages"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will see the logout link is ok

@brianteeman
Copy link
Copy Markdown
Contributor

After applying the PR my site doesnt look exactly the same as your screenshot. The separator is not evenly spaced

@MATsxm
Copy link
Copy Markdown

MATsxm commented Jun 23, 2016

I have tested this item ✅ successfully on 73aff5a

Works fine here with the multilingual mod_ enabled.

Didn't test on RTL


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

@brianteeman
Copy link
Copy Markdown
Contributor

When you only have multilingual mod enabled you have a seperator hanging on
its own

On 23 June 2016 at 17:21, Marc-Antoine Thevenet notifications@github.com
wrote:

I have tested this item ✅ successfully on 73aff5a
73aff5a

Works fine here with the multilingual mod_ enabled.

Didn't test on RTL

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/10918
https://issues.joomla.org/tracker/joomla-cms/10918.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#10918 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABPH8YbIJMts9eGDNSuxuRHY9O3dZQZDks5qOrKdgaJpZM4I87vN
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

@ggppdk
Copy link
Copy Markdown
Contributor

ggppdk commented Jun 23, 2016

When you only have multilingual mod enabled you have a seperator hanging on its own

Yes, because it is a different module maybe better remove it from this module

About RTL it works, if you copy new CSS into the RTL css file (or into the less files),

About extra spacing in seperators it is because of isis CSS rule:

.btn-group + .btn-group {
    margin-left: 5px;
}

And in RTL same effect with extra spacing seperators is because of isis CSS rule:

 .btn-group + .btn-group {
    margin-right: 5px;
    margin-left: 0px;
}

we could add this to fix it:

#status .btn-group + .btn-group {
    margin: 0px;
}


But it seems like and unneeded hack to do this, because the seperator is inside the btn-group, i have tested moving the separator out of the btn-group:

//...  Remove seperator from all $output[] and then:

// Output the items.
/*foreach ($output as $item)
{
    echo $item;
}*/

echo implode('<span class="btn-group separator"></span>', $output);

and the result is proper in both cases (RTL, non-RTL)

@infograf768
Copy link
Copy Markdown
Member

Concerning Messages, I guess the tooltip is no more necessary.

@C-Lodder
Copy link
Copy Markdown
Member Author

@infograf768 - I used new language strings bacause the ones already provided add a number to the beginning of the string, hence the %d. The number is already shown in the badge so no need to show it again.

I'll double check on RTL....always forget this

@infograf768
Copy link
Copy Markdown
Member

@C-Lodder
Yep, saw that and deleted my post. ;)
but I still think the tooltip is now useless.

@joomla-cms-bot
Copy link
Copy Markdown

This PR has received new commits.

CC: @andrepereiradasilva, @MATsxm


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

@C-Lodder
Copy link
Copy Markdown
Member Author

C-Lodder commented Jun 24, 2016

I've now applied the change to RTL languages and also fixed the whitespace issue as mentioned by @brianteeman

Oh and removed the tooltip

@joomla-cms-bot
Copy link
Copy Markdown

This PR has received new commits.

CC: @andrepereiradasilva, @MATsxm


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

@brianteeman
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 6d6544e


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

@brianteeman
Copy link
Copy Markdown
Contributor

Sorry to be a pain but because of some stupid rules we dont remove unused strings

@joomla-cms-bot
Copy link
Copy Markdown

This PR has received new commits.

CC: @andrepereiradasilva, @brianteeman, @MATsxm


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

@C-Lodder
Copy link
Copy Markdown
Member Author

Added them back in.

Why on earth are language strings that are no longer used not removed?

@joomla-cms-bot
Copy link
Copy Markdown

This PR has received new commits.

CC: @andrepereiradasilva, @brianteeman, @MATsxm


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

@C-Lodder
Copy link
Copy Markdown
Member Author

@infograf768 - alpha ordered the language strings. No idea what you mean by the generatecss.php. I didn't touch this at all. I simply forked the latest, made my changes, then compiled the LESS using the button in the Isis toolbar

@infograf768
Copy link
Copy Markdown
Member

When you modify a .less file you have to run a CLI called generatecss.php, NOT use the Isis compilation.
I.e. cd to your local repository (on Mac it is called Terminal) and enter
php build/generatecss.php
It will do the job for you on the .css files.

@C-Lodder
Copy link
Copy Markdown
Member Author

C-Lodder commented Jun 28, 2016

@infograf768 - Erm ok, never heard about this before, nor have I ever done it. Is there some sort of "Contributing guidelines" wiki that I can refer to for future reference?

@infograf768
Copy link
Copy Markdown
Member

@C-Lodder
Copy link
Copy Markdown
Member Author

C-Lodder commented Jun 28, 2016

I don't mean that. I mean a guideline as to what steps to take when contributing to Joomla. Where does it say that people need to build the generatecss.php?

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Jun 28, 2016

It doesn't say it explicitly anywhere but if you make a change to any LESS file in core you should run the generatecss.php script to ensure all resources are correctly updated. Since your changes only affect Isis it probably isn't a major issue this time but if you changed something in the media directory as an example it would affect multiple templates.

@wilsonge
Copy link
Copy Markdown
Contributor

wilsonge commented Jul 21, 2016

@C-Lodder I can't merge this until you run the generatecss.php stuff. I can run you through it if it helps?

@wilsonge
Copy link
Copy Markdown
Contributor

I'm removing the RTC label for now

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jul 21, 2016
@wilsonge wilsonge removed this from the Joomla 3.6.1 milestone Jul 21, 2016
@C-Lodder
Copy link
Copy Markdown
Member Author

C-Lodder commented Jul 21, 2016

@wilsonge I'll run it tomorrow

@C-Lodder
Copy link
Copy Markdown
Member Author

@wilsonge - all done

@wilsonge wilsonge added this to the Joomla 3.6.2 milestone Jul 25, 2016
@wilsonge wilsonge added the RTC This Pull Request is Ready To Commit label Jul 25, 2016
@wilsonge
Copy link
Copy Markdown
Contributor

RTC

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jul 25, 2016
@joomla-cms-bot joomla-cms-bot removed this from the Joomla 3.6.2 milestone Jul 25, 2016
@wilsonge wilsonge added the RTC This Pull Request is Ready To Commit label Jul 25, 2016
@wilsonge wilsonge added this to the Joomla 3.6.2 milestone Jul 25, 2016
@wilsonge
Copy link
Copy Markdown
Contributor

Bad bot

@rdeutz rdeutz merged commit 1ede964 into joomla:staging Aug 13, 2016
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Aug 13, 2016

Come on @joomla-cms-bot

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Aug 13, 2016
@C-Lodder C-Lodder deleted the adminstatus branch August 14, 2016 10:06
ggppdk pushed a commit to ggppdk/joomla-cms that referenced this pull request Aug 19, 2016
* Admin status module updates

* Added separator + removed class for multilingual status label

* Moved separator element inside button group container

* Removed tooltip

* Fixed on RTL + removed whitespace

* Removed old language strings for tooltip

* Re-added tooltip language strings

* order language strings alphabetically

* Build generatecss.php
roland-d pushed a commit to roland-d/joomla-cms that referenced this pull request Sep 11, 2016
* Admin status module updates

* Added separator + removed class for multilingual status label

* Moved separator element inside button group container

* Removed tooltip

* Fixed on RTL + removed whitespace

* Removed old language strings for tooltip

* Re-added tooltip language strings

* order language strings alphabetically

* Build generatecss.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.