How to check if node is being rendered inside view?
You can check to see if $view is set and is an object in the template file; if it does, it means the node is being rendered in a View. From there you can even check that the View is the correct one if you need to.

if (isset($view) &amp;&amp; is_object($view)) :
  // Do something
endif;