title: Drupal Views: Adding Edit button and other buttons per item
body: <p>I've setup a view in drupal that lists items like this:</p>
  
  <pre><code>IMAGE 1 | IMAGE 2 | IMAGE 3 | IMAGE 4
   desc   |  desc   |   desc  |  desc
  </code></pre>
  
  <p>where "desc" is, you guessed it, a description of the node. What I need is to end up with something like this:</p>
  
  <pre><code>IMAGE 1 | IMAGE 2 | IMAGE 3 | IMAGE 4
   desc   |  desc   |   desc  |  desc
   EDIT   |  EDIT   |  EDIT   |  EDIT  
   ACTION | ACTION  | ACTION  | ACTION
  </code></pre>
  
  <p>Where EDIT goes to the edit page of the various nodes. Also, the ACTION signifies a button that I want to appear underneath the items that navigates to a page, let's call it <a href="http://www.mysite.com/action" rel="nofollow noreferrer">http://www.mysite.com/action</a> and takes the id as a parameter to end up with something like this: <a href="http://www.mysite.com/action/1" rel="nofollow noreferrer">http://www.mysite.com/action/1</a>. </p>
  
  <p>I hope this all makes sense.</p>
  
  <p>The pain in the ass way to solving this is to create a theme file views-view-NAME.tpl.php and manipulate the $rows variable. I just think there must be a better way and I'm obviously just missing something.</p>
  
  <p>So, does anybody know how to do this?</p>