Show the "add your link" dialog BEFORE hosted sites list
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 18 Jan 2013 09:08:20 +0000 (04:08 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 18 Jan 2013 09:08:20 +0000 (04:08 -0500)
Basically zero people realized they could add their site because it is
all the way at the end of a very long list.

link.mlt

index adfd266..d66daaf 100644 (file)
--- a/link.mlt
+++ b/link.mlt
@@ -64,18 +64,6 @@ end;
 
 if showNormal then %>
 
-<table>
-<% foreach (name, link) in Link.listLinks () do %>
-       <tr> <td><a href="<% Web.html (#url link) %>"><% Web.html (#title link) %></a></td>
-       <td><% Web.html (#descr link) %></td>
-       <td>(<a href="user?id=<% #usr link %>"><% name %></a>)</td>
-<% if (iff admin then true else you = #usr link) then %>
-       <td><a href="link?mod=<% #id link %>">[Modify]</a> <a href="link?del=<% #id link %>">[Delete]</a></td>
-<% end %>
-       </tr>
-<% end %>
-</table>
-
 <h3>Add a link to a site you host with Hcoop</h3>
 
 <form action="link" method="post">
@@ -88,6 +76,18 @@ if showNormal then %>
 </table>
 </form>
 
+<table>
+<% foreach (name, link) in Link.listLinks () do %>
+       <tr> <td><a href="<% Web.html (#url link) %>"><% Web.html (#title link) %></a></td>
+       <td><% Web.html (#descr link) %></td>
+       <td>(<a href="user?id=<% #usr link %>"><% name %></a>)</td>
+<% if (iff admin then true else you = #usr link) then %>
+       <td><a href="link?mod=<% #id link %>">[Modify]</a> <a href="link?del=<% #id link %>">[Delete]</a></td>
+<% end %>
+       </tr>
+<% end %>
+</table>
+
 <% end %>
 
 <% @footer[] %>
\ No newline at end of file