I had a great relationship with my long term now-ex. He had a lot of male friends we both liked to hang out with, and we just fell into this system whereby when my partner was THERE I'd be more flirty with his friends if that was the common mood, and when he WASN'T there I'd be more restrained and circumspect. We trained our friends into knowing they could have a little fun and closeness with me, but it definitely wasn't going to go anywhere, and there was just no point making the slightest move on me when my partner wasn't there.
The group was very emotionally close, so when the emotional undercurrents became more overt they'd come out a little physically. Looking back, in a weird way my male partner kind of expressed affection to his hetero male friends by loaning me out for fairly innocent cuddles and massages, and not-quite-as-innocent playing with each other's fingers and toes on the living room couch or floor. Early on my partner tried massaging one of his close male friends one day when he was stressed, and that didn't go down too well. Country background people just didn't like male-on-male touching. So massage duties for overworked or stressed friends fell to me.
When my partner WASN'T there, I'd be way more circumspect, and restrict myself and our male friends to talking, no touchie touchie at all.
So: partner there, I'd spoon on couches, give and receive massages and flirt with his friends.
Partner not there, no touching, the very very lightest of verbal flirts if it came up, usually more serious conversations.
None of that group were big dancers, so I usually went out dancing alone or with gay friends. I've always been happy to dance sensuously just to myself. If I had my gay friends in a club, I'd link pelvises on the dance floor with them for some songs. But that never worked out with straight males friends, they were just no good at synchronising hip movements. Probably because they felt self-conscious about it.
The one time my partner came out with me to a dance club with his straight friends none of them got up and danced. They drank beer and watched the floor. My partner reported later one of them said: "She's put on a lot of weight since you started going out. But look at her. She could have any man in the room."
Basically my partner, while loving my mind, I think in hindsight got a kick out of his friends liking or admiring his girlfriend. He was secure that I'd stick to our arrangement of "no other men", so he didn't mind what I guess amounted to "showing me off", and what was a very very mild, subtexted form of polyamoury.