<html>
  <head>
    <title>#randonom links</title>
    <style>
      td {
        background-color: #DDD;
      }
    </style>
  </head>
  <body>
    <h1>#randonom links</h1>
    <h3>courtesy of slurp</h3>
    <% unless @links %>
      Currently no links, you should post some in the chat.
    <% end %>
    <table>
    <% @links.each do |link| %>
      <tr><td><%= link.user %></td><td><a href="<%= link.url %>"><%= link.title %></a></td><td><%= link.message %></td><td> <%= link.date_added %></td></tr>
    <% end %>
    </table>
  </body>
</html>

<html>
  <head>
    <title>#randonom links</title>
    <style>
      td {
        background-color: #DDD;
      }
    </style>
  </head>
  <body>
    <h1>#randonom links</h1>
    <h3>courtesy of slurp</h3>
    <% unless @links %>
      Currently no links, you should post some in the chat.
    <% end %>
    <table>
    <% @links.each do |link| %>
      <tr><td><%= link.user %></td><td><a href="<%= link.url %>"><%= link.title || "Link" %></a></td><td><%= link.message %></td><td> <%= link.date_added %></td></tr>
    <% end %>
    </table>
  </body>
</html>

Handle when the url has no link title
Handle when the url has no link title
