small fix

This commit is contained in:
Harry Bomrah 2015-07-27 17:56:53 +08:00
parent 807b7cef84
commit 94d91a4956
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@
<% else %> <% else %>
<td width="20%"><%= rm.category.title %></td> <td width="20%"><%= rm.category.title %></td>
<% end %> <% end %>
<% user = User.find(rm.create_user_id) rescue "" %> <% user = User.find(rm.create_user_id) rescue nil %>
<td width="20%"><%= user.name rescue user.user_name %></td> <td width="20%"><%= user.name if !user.nil? rescue user.user_name %></td>
<% if rm.approved %> <% if rm.approved %>
<td> <td>
<a class="btn btn-small btn-info action-btns" data-id="<%= rm.id.to_s %>" href="/admin/admin_modules/install_site_list?id=<%= rm.id.to_s %>" for="installation">Install</a> <a class="btn btn-small btn-info action-btns" data-id="<%= rm.id.to_s %>" href="/admin/admin_modules/install_site_list?id=<%= rm.id.to_s %>" for="installation">Install</a>