Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #2792 #2798

Merged
merged 11 commits into from Sep 25, 2016
Merged

Issue #2792 #2798

merged 11 commits into from Sep 25, 2016

Conversation

MrPetovan
Copy link
Collaborator

Fix Issue #2792

Not sure about the following condition to know if the current user is among the reactions:

if((local_user()) && (local_user() == $item['uid']) && ($item['self']))

It seems to work on as expected on my single-user instance, but I'm not exactly sure about the meaning of uid and self.

Hypolite Petovan added 4 commits September 24, 2016 11:50
- Add a condition to check if the current user is amongst the responses
- Populate the responses array with the self attribute
- Add active class when the self attribute is found
- Add CSS styling to active response links
- Move rotator from hidden block to post header
@annando
Copy link
Collaborator

annando commented Sep 25, 2016

For me the condition looks fine. The "uid" contains the user that owns the item. And "self" just tells if the item was created by the user that owns the item.

Now the nasty part: Could you add your changes to the other (maintained) themes as well?

Thanks!

Hypolite Petovan added 2 commits September 25, 2016 09:49
- Update general wall_thread.tpl
- Add specific styles for duepuntozero
- Add active classes to wall_thread.tpl
- Add styles
- Fix event icon not appearing at full opacity on hover
@MrPetovan
Copy link
Collaborator Author

Could you add your changes to the other (maintained) themes as well?

Yes but I won't accept any liability for ugly design. Also I see way more themes in the theme folder than in the active theme list in the admin, is it because they all are deprecated?

@tobiasd
Copy link
Collaborator

tobiasd commented Sep 25, 2016

Yes. The supported themes are the ones where the file unsupported is missing. They are still in the repository so users using them wont suddenly have lost their theme after an update, but new features wont arrive there.

Hypolite Petovan added 5 commits September 25, 2016 10:29
- Added active class to wall_thread.tpl
- Added styles
- Fixed background-size declarations to be able to add padding to icons
- Add active classes to wall_thread.tpl, search_item.tpl and
photo_item.tpl
- Add styles both in the master LESS file and the generated variant CSS
themes
- Added "self" class to wall_thread.tpl to avoid conflict with the
already existing "active" class
- Added style
- Add active class to wall_thread.tpl, search_item.tpl, photo_item.tpl
- Add style
Note: because of an !important in the Dark variant stylesheet, the
active links won't show up
- Added active class to search_item.tpl
@MrPetovan
Copy link
Collaborator Author

It's done. Phew!

@annando annando merged commit 29a8d2f into friendica:master Sep 25, 2016
@MrPetovan MrPetovan deleted the issue-2792 branch September 25, 2016 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants