I was wondering if I could execute / display some stuff differently in partials depending on the context in which it appears.
For example, I have a _user_info partial that appears in a sidebar, and also in the user page, and I want to display some extra info in the second case. How can I express that kind of conditions?
What you’re asking for is something this:
However I would split the partial into two separate partials and display the distinct parts from whichever view you need.