title: how to convert this ruby on rails code to include html as well
body: <p>How can I take this..</p>
  
  <pre><code>  &lt;li&gt;
    &lt;%= link_to image_tag(product.photo.url(:small)), product_path(product.id, :forum_id =&gt; params[:forum_id]) %&gt; 
  &lt;% if params[:forum_id] %&gt;
    &lt;%= link_to "Add", addtoforum_user_path(:products =&gt; [product.id],:forum_id =&gt; params[:forum_id], tp: "add") %&gt;
    &lt;/li&gt;
  </code></pre>
  
  <p>to be like this.. (right now it is only inlcluding the image)</p>
  
  <pre><code>&lt;li&gt;
     &lt;a href=""&gt;
         &lt;figure&gt;
         &lt;img src="image-url...."&gt;
         &lt;/figure&gt;
         &lt;span&gt;product name&lt;/span&gt;
     &lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Thanks</p>