applications/luci-olsr: Add Hostnames, show v6 infos. Most parts of this are from...
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / hna.htm
index 0e153bb..a7a14e4 100644 (file)
@@ -24,7 +24,12 @@ $Id$
 <% for k, route in ipairs(routes) do %>
 <tr>
 <td><%=route.Destination%></td>
-<td><a href="http://<%=route.Gateway%>"><%=route.Gateway%></a></td>
+<td>
+<a href="http://<%=route.Gateway%>/cgi-bin-status.html"><%=route.Gateway%></a>
+<% if route.Hostname then %>
+        / <a href="http://<%=route.Hostname%>/cgi-bin-status.html"><%=route.Hostname%></a>
+<% end %>
+</td>
 </tr>
 <% end %>
 </table>