diff options
Diffstat (limited to 'projects/devdashboard/app/views/developers/list.rhtml')
-rw-r--r-- | projects/devdashboard/app/views/developers/list.rhtml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/projects/devdashboard/app/views/developers/list.rhtml b/projects/devdashboard/app/views/developers/list.rhtml new file mode 100644 index 0000000..3385d2b --- /dev/null +++ b/projects/devdashboard/app/views/developers/list.rhtml @@ -0,0 +1,25 @@ +<h1>Listing developers</h1> + +<table> + <tr> + <th></th> + <th>Nickname</th> + </tr> + +<% for developer in @developers %> + <tr> + <td height="100"><%= image_tag developer.hackergotchi.nil? ? '/images/default-user.png' : developer.hackergotchi %></td> + <td><%=h developer.nickname %></td> + <td><%= link_to 'Show', :action => 'show', :id => developer %></td> + </tr> +<% end %> +</table> + +<%= link_to 'Previous page', { :page => @developer_pages.current.previous } if @developer_pages.current.previous %> +<%= link_to 'Next page', { :page => @developer_pages.current.next } if @developer_pages.current.next %> + +<br /> + +<%= link_to 'Load from userinfo.xml', :action => 'load_from_userinfo' %> | +<%= link_to 'Update from planet.ini', :action => 'load_from_planet' %> + |